views:

29

answers:

1

I'm starting out with iPhone development and am struggling to find tutorials on handling service calls whether via SOAP or REST etc. As I understand it the SDK can't handle SOAP so is it best to look into REST?

+1  A: 

You can parse XML on the iPhone, therefore nothing stops you from using SOAP services from your iPhone apps. REST services are easier to consume, though, at least in my experience. It's just a matter of using an HTTP networking library and then parsing JSON or XML responses. I personally used ASIHTTPRequest and the json-framework in many apps, with good results.

Check out other similar questions in StackOverflow for more details. There's been a lot of questions about this.

Adrian Kosmaczewski
I would have to agree, I use both of those frameworks in all of my applications. JSON is much easier to deal with as its deserialized right into dictionaries and arrays. You don't necessarily need REST per se, as Adrian said just return JSON and you should be good.
cory.m.smith