4 ms·
Ask HN: Is there an easy way to work with web services for iPhone dev?
We want to take XML data and convert it to an NSDictionary object, but we don't want to manually iterate over the XML. Is there an easy way to do this? How are you doing web services for your iPhone app?
- makecheck 18y agoI'm not quite sure I understand the question... If this is a coding question, look for the XML parser in the Core Foundation framework (I believe there are also examples for it): http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFXML/Concepts/CFXMLParser.html http://developer.apple.com/documentation/CoreFoundation/Conc... If you are asking specifically about Xcode (the IDE), I know it parses XML because it syntax-colors XML files that I open, and its code-folding brackets support hierarchies of open/close tags.
- aranganath 18y agoDo you control the web service? If so, throw XML out the window. The open source JSON Framework on Google Code kicks ass. My iPhone app, Graffitio (http://graffit.io http://graffit.io), uses Rails on the server side spitting out JSON to the iPhone app. Its awesome.
- jmtame 18y agoThat's cool, similar to something we're building. How many people are you working with? Do you have an e-mail I could reach you at?
- aranganath 18y agoi just sent an email to your .edu address.
- jjburka 18y agoIf its a restful web service you could try http://github.com/yfactorial/objectiveresource/tree/master http://github.com/yfactorial/objectiveresource/tree/master . It's basically a port of Active Resource to Obj C. You can use it if its not a restful service you just have to override some functions.
- deleted 18y ago[deleted]
- mhp 18y agoI stole your karma on stackoverflow :P http://stackoverflow.com/questions/400299/is-there-an-easy-way-to-work-with-web-services-for-iphone-dev http://stackoverflow.com/questions/400299/is-there-an-easy-w...