05-04-2011 04:14 PM
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.
05-04-2011 04:18 PM - edited 05-04-2011 04:25 PM
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....
05-04-2011 04:23 PM
05-04-2011 04:25 PM
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.
05-04-2011 04:34 PM - edited 05-04-2011 04:38 PM
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.
05-04-2011 04:43 PM - edited 05-04-2011 04:44 PM
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+'&MD5pass
word='+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
05-04-2011 06:08 PM
05-04-2011 10:08 PM
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.
05-09-2011 02:30 AM
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,