0

I am bit confused regarding SOAP and REST and JSON

I do not know what step and what is the right way to implement this in objective-C

I want to send json data to a web-service via SOAP.

I should use RESTful or SOAP.

Any document or link would be appreciated.

Praveen-K
  • 3,401
  • 1
  • 23
  • 31
  • you should refer http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone – Maulik Dec 14 '11 at 12:38
  • I think this link will really help u alot http://www.iphonedevsdk.com/forum/iphone-sdk-tutorials/76730-webservice-how.html – crazy2431 Dec 19 '11 at 05:11

1 Answers1

1

Let me give you some advise out of personal experience regarding this.

A few things first, if you are in control of the web service I would recommend going for RESTful and returning and sending JSON data as parsing it using Objective-C is very easy.

There is a class library called SBJson you can use for the parsing of JSON data returned by the web service.

If you are not in control of what the web service will be returning and receiving, i.e. you didn't program the web service you can still use the SBJson classes for JSON data but I would recommend finding a XML library which you are comfortable in using.

http://www.raywenderlich.com is a great source of iOS tutorials with a in depth tutorial on XML parsing, which is used with SOAP.

The SBJSson library can be found at https://github.com/stig/json-framework/

Does these help?

Armand
  • 9,847
  • 9
  • 42
  • 75