SOAP with Corona?

Does anyone have an example on how to connect to a server via SOAP using the Corona SDK? [import]uid: 64538 topic_id: 32032 reply_id: 332032[/import]

In general terms, yes. In specifics no. I’m more of a REST person than SOAP, but the ideas are similar.

First SOAP uses XML to transfer data, where as REST can send XML or JSON. Corona SDK ships with a JSON encoder/decoder, but lacks an official XML processor. There may be one in the sample code. There is one in my RSS parser in the Community Code that was worked on by former Corona Labs employee Jonathan Beebe (and may be what he used in his blog post on XML)

http://www.coronalabs.com/blog/2011/07/29/how-to-use-xml-files-in-corona/

Now you should be able to use the network.request() API and retrieve XML data and parse it into a Lua table that your Corona SDK app can use (JSON maps to Lua tables a bit better than XML does, FWIW).

So really what’s left is how SOAP authenticates with the webserver and tracks session information, and that’s now getting out of my realm of experience to be able to answer that with any authority. [import]uid: 19626 topic_id: 32032 reply_id: 127711[/import]

Right, I need to be able to send XML (including security information) and whatever the soap request is to the web server in order to be able to get back data to parse. [import]uid: 64538 topic_id: 32032 reply_id: 127722[/import]

A friend of mine is working on that very thing but hasn’t solved it completely yet. Though in this thread comes some hint from another user:
http://developer.coronalabs.com/forum/2012/08/07/post-soap-webservice-issue
Please post if you get it working. [import]uid: 148323 topic_id: 32032 reply_id: 127817[/import]

In general terms, yes. In specifics no. I’m more of a REST person than SOAP, but the ideas are similar.

First SOAP uses XML to transfer data, where as REST can send XML or JSON. Corona SDK ships with a JSON encoder/decoder, but lacks an official XML processor. There may be one in the sample code. There is one in my RSS parser in the Community Code that was worked on by former Corona Labs employee Jonathan Beebe (and may be what he used in his blog post on XML)

http://www.coronalabs.com/blog/2011/07/29/how-to-use-xml-files-in-corona/

Now you should be able to use the network.request() API and retrieve XML data and parse it into a Lua table that your Corona SDK app can use (JSON maps to Lua tables a bit better than XML does, FWIW).

So really what’s left is how SOAP authenticates with the webserver and tracks session information, and that’s now getting out of my realm of experience to be able to answer that with any authority. [import]uid: 19626 topic_id: 32032 reply_id: 127711[/import]

Right, I need to be able to send XML (including security information) and whatever the soap request is to the web server in order to be able to get back data to parse. [import]uid: 64538 topic_id: 32032 reply_id: 127722[/import]

A friend of mine is working on that very thing but hasn’t solved it completely yet. Though in this thread comes some hint from another user:
http://developer.coronalabs.com/forum/2012/08/07/post-soap-webservice-issue
Please post if you get it working. [import]uid: 148323 topic_id: 32032 reply_id: 127817[/import]