Spanky
Spanky

Reputation: 5000

Data server to iPhone and back

Web services -> core data -> controller -> view and then reverse...

Sound right?

Or is there a better way, one that avoids the complexity of SOAP? Additionally can core Data recognize XML coming from SOAP?

Thanks // :)

Upvotes: 2

Views: 567

Answers (1)

Hunter
Hunter

Reputation: 4371

There are several good REST libraries that work on the iPhone if you want to avoid SOAP.

HTTPRiot - http://labratrevenge.com/httpriot/

ASIHTTPRequest - http://allseeing-i.com/ASIHTTPRequest/

ObjectiveResource - http://iphoneonrails.com/

I've used the first and last and between those two, I really like HTTPRiot - really easy to use, doesn't get in your way and converts both XML and JSON responses into NSArrays and NSDictionaries.

Core Data doesn't have any relation to Web services natively but you can easily populate managed objects from the data you receive from one of the above libraries.

Upvotes: 2

Related Questions