+3  A: 

Parsing XML Files

mcandre
+2  A: 

To retrieve data from the webservice you can use NSURLREquest/NSMutableURLRequest, heres a reference http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest%5FClass/Reference/Reference.html#//apple%5Fref/doc/c%5Fref/NSURLRequest, along with NSURLConnection http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection%5FClass/Reference/Reference.html#//apple%5Fref/occ/clm/NSURLConnection/sendSynchronousRequest:returningResponse:error:, where you can use methods such as + sendSynchronousRequest:returningResponse:error: or sendAsynchronousRequest. If you are simply doing a get, you can retrieve your xml or json in a very easy way using [NSString s tringWithContentOfURL:url] this will read in the r esponse into the string you assign it to.

Daniel
+1  A: 

I developed some REST services using ASP.NET MVC to return XML documents that were created using Apple's native plist schema. The iphone can very naturally parse plists into their native types. plist is a little verbose compared to JSON, but I don't think it's that much more payload overhead.

If you already have some SOAP web services, then you will have to build your own custom, domain-specific XML parser.

-MrB

Matthew Belk