views:

77

answers:

1

I am developing an iPhone application that downloads data from a website. The website database is implemented in SQL and the site itself uses the classic ASP interface.

I am unsure as to which method would be best for transferring data to and from the server. Both JSON and SOAP require XML processing and I'm not sure how that affects performance or which of those two is best.

What would be the best method in general for data transfer given the server configuration we currently have?

I very new to this field and I'm a bit confused. Any help would be appreciated.

A: 

JSON is generally much simpler to use than SOAP (or any XML format), and SOAP support in objective-c is very limited. I'm not sure about performance, but JSON doesn't use any XML parsing. There are two good JSON libraries for iPhone, TouchJSON and json-framework--they're pretty similar, but I've heard that TouchJSON might be more actively maintained. I've never used ASP, but this question has some resources for JSON libraries.

eman