Thursday, February 28, 2013
Tuesday, February 26, 2013
How to consume SOAP web service by passing parameters through Xcode 4.3
Im new to IOS programming. Can any one guide me "How to consume a simple parametarized dot net web service through Xcode. I have tried all the solutions which I found from the net but all are giving errors or returning NULL value from the web service."
Your help will be highly appreciated.
Thank u.
Saturday, February 23, 2013
Re: How to consume SOAP web service by passing parameters through Xcode 4.3
Hi,
i found this post very interesting and usefull.
Can I have the source code, too.
Thnx, in advance.
Re: consume wcf service
Xcode does not automatically create service client proxy classes like Visual Studio or other IDE's. Read my post (#2) in this thread, which includes an example using NSURLConnection.
https://discussions.apple.com/message/21319095#21319095
Details of your approach will depend on the specific WCF service contract. For example many WCF operations are not SOAP so instead of POSTing SOAP envelope XML as the body, you either GET (for WebGet operations) with querystring parameters or POST (for WebInvoke operations) a wrapped (WebMessageBodyStyle.WrappedRequest) or unwrapped (WebMessageBodyStyle.Bare) JSON body.
If you have invoked the WCF operations from JavaScript, Objective-C will be very similar. If you are currently using jQuery.ajax, you will need to programmatically perform some of the steps that .ajax handles automatically.
If you are the developer of the WCF service, you have some flexibility to make it easy for yourself.
Once you have a very good understanding how everything works, you can then survey 3rd-party libraries to see whether one fits your needs (RestKit, MKNetworkKit, etc.). Some libraries can declaratively bind request and response attributes to the model.










