I am trying to write applications for iPad which take advantage of web services. I know the concept of a web service and have used it in C#/.NET. I need to know how to do this on an iPad. Can anyone recommend a good book or reading material on webservices for iOS?
Asked
Active
Viewed 3.3k times
12
-
What type of web services are you trying to consume? REST based services or SOAP? – Dave Ferguson Jun 17 '11 at 16:41
-
Sorry, SOAP. I am not familiar with REST. – Saro Khatchatourian Jun 17 '11 at 16:46
-
I would recommend you look at RESTful services instead. The reason being is that they are much more lightweight and with the limited hardware and bandwidth of an iPhone/iPad, you'll probably get better results. – Dave Ferguson Jun 17 '11 at 16:52
-
This one : http://jayprakashdubey.blogspot.in/2014/09/invoke-soap-web-service.html – Jayprakash Dubey Sep 30 '14 at 12:54
1 Answers
21
If you're using iOS frameworks, your solution will involve using NSURLConnection or NSRLRequest. In-depth Apple documentation can be found here. In my experience, you want to wrap those API calls in your own client request that can build data transfer objects your application logic understands.
If you're looking at 3rd party frameworks to access a RESTful web service, take a peek at this answer for a number of iOS framework options.
For SOAP services, take a look here.
As for processing the data, it depends what kind of data your web service produces. There are several frameworks and libraries that can make it easy to consume XML or JSON.
In my experience, the best book on the subject is Advanced iOS Programming.

Community
- 1
- 1

retrodrone
- 5,850
- 9
- 39
- 65