PDA

View Full Version : develop SOAP client in iphone




bpstylianos
Sep 8, 2008, 02:12 PM
hi all,

i'm a beginner with iphone SDK so i need your leniency if i say something wrong.

I saw that there is a way to call a web service with AJAX (http://www.ibm.com/developerworks/webservices/library/ws-wsajax/), additionally
i saw that you can call javascript from objective C.
So my question is if you can develop a SOAP client in iphone using Ajax from objective C.

is it possible?
thanks



springframework
Sep 8, 2008, 09:19 PM
where did you read this?

i saw that you can call javascript from objective C

bpstylianos
Sep 9, 2008, 04:14 AM
http://www.ibm.com/developerworks/webservices/library/ws-wsajax/

that is the link

do you have any idea if we can develop a SOAP client by that way?

robbieduncan
Sep 9, 2008, 04:21 AM
http://www.ibm.com/developerworks/webservices/library/ws-wsajax/

that is the link

do you have any idea if we can develop a SOAP client by that way?

That's all javascript to run in a web browser. If you want to "pretend" to be a web browser it's possible via NSURLConnection and NSMutableHttpRequest. It's up to you as the programmer to do all the work in this case: you have to setup the headers/data payload to make the request.

And no: I'm not about to post code.

bpstylianos
Sep 9, 2008, 06:07 AM
what about this

http://www.tritsch.org/Blog/2008/04/apache-cxf-generates-client-side-soap.html

it says that you can generate javascript generate JavaScript client-side code for WebServices

could you please tell me your opinion?

thanks

robbieduncan
Sep 9, 2008, 06:15 AM
what about this

http://www.tritsch.org/Blog/2008/04/apache-cxf-generates-client-side-soap.html

it says that you can generate javascript generate JavaScript client-side code for WebServices

could you please tell me your opinion?

thanks

That appears to be talking about a tool that writes the javascript for you. This still runs in the browser. This has nothing to do with Objective-C.

springframework
Sep 9, 2008, 01:07 PM
And no: I'm not about to post code.

All the code for this is in the documentation anyways.


you just have to understand that a webservice is some headers with some xml data.