Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
chrisandrewca
Posts: 11
Registered: ‎05-04-2011
My Device: None

Question About Authentication & Consuming SOAP Services

I have a WCF service that I am creating and it serves up data through SOAP and will require user authentication. The service uses the WS-* stack. I'm new to both WCF development and mobile/tablet development. Since I use WS-Trust/Security etc I need a language that can support sending and recieving SOAP messages using these technologies.

 

If I do not have time to wait for the Playbook native SDK, what are my options for using a hosted web applcation and making it feel like a native application, i.e. no browser chrome etc.

 

I really appreciate any help, thank you.

Please use plain text.
Developer
tensioncore
Posts: 323
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition

Re: Question About Authentication & Consuming SOAP Services

[ Edited ]

Hi! and welcome to the forums!

 

We have many options on having an app feel native with using the AIR sdk. it all depends on how you develop it. You've dfinitely come to the right place for advice...

 

Do you absolutely have to use SOAP? We haven't seen a lot of people using SOAP (or I haven't anyways)..


EDIT: I did a quick google for working with WS-Trust/Security and Actionscript (because I feel it will be your best bet to use AS3 rather than MXML...) and I found a lot of spuratic results, but many which may be able to help you....

 

CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.
Contributor
chrisandrewca
Posts: 11
Registered: ‎05-04-2011
My Device: None

Re: Question About Authentication & Consuming SOAP Services

I'm integrating with another service that already uses SOAP so it most likely will be the only option for this service. I may be able to have the integration side communicate via SOAP and the client accessible side communication via another method but that would be very cumbersome.
Please use plain text.
Developer
tensioncore
Posts: 323
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition

Re: Question About Authentication & Consuming SOAP Services

If this service supports POST or GET then you could easily pass information through URLRequest/URLLoader and pass the results into a function with a switch statement to parse the login information and act accordingly.

CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.
Contributor
chrisandrewca
Posts: 11
Registered: ‎05-04-2011
My Device: None

Re: Question About Authentication & Consuming SOAP Services

[ Edited ]

I believe it does support POST and GET... I will have to do more research into this. Could you go over some options I have for making a web application feel native, if you have time?

 

Edit: Actually... I think I am not thinking clearly about how WCF actually works. I believe I can just expose a restful endpoint if that is easier for creating a native feeling application.

Please use plain text.
Developer
tensioncore
Posts: 323
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition

Re: Question About Authentication & Consuming SOAP Services

[ Edited ]

Well firstly you need to decide how you will write your code.

Are you going to right this as an Actionscript app?

 

or Webworks? if you are using Webworks, then you might want to head over to the WebWorks forum.

 

if you are going to right an Actionscript app with QNXStageWebview then stay here and we can help.

 

If you can send your auth using Get then try this:

 

var Login:URLRequest = new URLRequest('http://someservice.com/?username='+Login+'&MD5password='+password); //Login and MD5password would be the names of the textfields you use to collect user information - probably after some MD5 hashing...?
var Loader:URLLoader = new URLLoader();
Loader.addEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler); //Throw error if no connection
Loader.addEventListener(Event.COMPLETE, loaderCompleteHandler); //what to do when the connection and Load works
Loader.load(Login); //run the loader

Obviously substitue the URLRequest with whatever information you need to send

 

CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.
Contributor
chrisandrewca
Posts: 11
Registered: ‎05-04-2011
My Device: None

Re: Question About Authentication & Consuming SOAP Services

Alright, thank you the information. I think creating a new endpoint for tablet development would work. Still a lot of learning ahead. Does RIM have a release date for the native SDK or is it "sometime soon" still?
Please use plain text.
Developer
tensioncore
Posts: 323
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition

Re: Question About Authentication & Consuming SOAP Services

tomorrow we might see something as its an intended topicof blackberry world which ends tomorrow.

 

it will be early beta though. summer is best bet for something solid to work with, if our experiences with the AIR sdk are any indication.

 

I would however, suggest that you experiment with the AIR SDK though, to get you comfortable with the tablets abilities.

CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.
Super Contributor
Meghasanghvi
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Question About Authentication & Consuming SOAP Services

hi

i have same question in my application i want to use SOPA webserive so is it physible to devlop in SOAP in MXML

 

as i search on google i find it that in Flash u need LiveCycle database to implement webservice in MXML  so is it neccessary to implement LiveCycle or not?.my confusion is how to implement SOAP in mxml.

 

my server is remotly hosted and it gives soap response it accepted 3 to 4 parameter when we call webservice

 

 

please any one hava any experiance in MXML webservice call using SOAP

 

 

hope for positive response

thanks & Regars,

Megha

Please use plain text.