hburkule
hburkule

Reputation: 49

iPhone app and server communication

We have a web-based BI reporting product. We have exposed certain webservices which mainly return html content and do authentication. We are in a initial process of developing an iPhone App, which will interact with these services and get data on iPhone. There are couple of things we need to make sure before we start with the actual development process...

1) Should we use SOAP or REST (Will have to write the server part in Java) for the communication between iPhone and our web-application?

2) If we use SOAP, Can you suggest something, which will effectively create web services stubs in Objective-C.

3) In either case (SOAP or REST), what security mechanism is suggested by Apple?

We want to know your thoughts on the best and effective way communication could be done between iPhone app and backend servers (mostly written in Java)

Thanks in advance.

Upvotes: 1

Views: 1268

Answers (2)

vikingosegundo
vikingosegundo

Reputation: 52237

  1. If it is an option, I'd use REST
  2. Never did it, but may this will help: http://abhicodehelp.blogspot.com/2010/12/handling-soap-with-iphone.html
  3. I'd do any HTTP-Communication using ASIHttpRequest. It is SSL-capable

Upvotes: 1

Bogatyr
Bogatyr

Reputation: 19333

In my apps I use simple URL requests returning XML / Cocoa-touch plists over https. I guess that's called "REST" -- it's simple and quick to implement. There are long flame-fests over SOAP vs. REST -- I just use this technique and get my apps done :)

Upvotes: 0

Related Questions