Reputation: 51
I am making an iPhone app using WSDL
Web-Services, but I have no idea how to call it from iPhone.
Help is appreciated.
Upvotes: 1
Views: 964
Reputation: 1804
Although there are some tools that would generate code for you. I don't like using them as customizing,debugging it would be painful. So here is what I do: Download SOAP UI ( google search it ) and then give it your wsdl and endpoint it will generate sample request for you. You can get response as well. In your XCode project View controller ( usually I do this in my Model separated from View Controller) Construct your POST using NSURLConnection Asynchronous connection,then in your didFinishLoading you have gotten the data. If response is XML then parse the XML using NSXML or libxml parser.
This will get you started.
Upvotes: 0
Reputation: 17445
Take a look at wsdl2objc: http://code.google.com/p/wsdl2objc/
There are a couple other tools that help create a SOAP interop layer for iOS apps, but I would suggest only using them if you have to. Take a look at using JSON to communicate with your web service.
Upvotes: 2