Does anybody know is there any good library for iPhone SDK to call REST web service. I want to have something simple like Heroku rest client
Using REST based services really doesn't need a "good library."
NSURLConnection and NSURLRequest, included in the SDK, are all you really need.
Hope Andrian Kosmaczewski's work can save your time from reinventing the wheels:
http://github.com/akosma/iphonerestwrapper/tree/master
And, it's Public Domain.
In case your REST service is implemented in Ruby on Rails, the open source ObjectiveResource project is looking very promising. It has been working great for me in a relatively complex project of mine, and I've even contributed some code back to them.
I suggest using the excellent ASIHTTPRequest source from All-Seeing Interactive: http://allseeing-i.com/ASIHTTPRequest. I'm doing this, and so are several released iPhone apps, so you can be sure the code is pretty solid.
This is a wrapper around the CFNetwork API that makes some of the more tedious aspects of communicating with web servers easier. It is written in Objective-C and works in both Mac OS X and iPhone applications.
It is suitable for performing basic HTTP requests and interacting with REST-based services (GET / POST / PUT / DELETE). The ASIFormDataRequest subclass makes it easy to submit POST data and files using multipart/form-data.
Thx everybody for help.
My server side is on Rails so looks like ObjectiveResource feet best of my needs.
I created a blog article about doing this.
http://www.dreamfreeze.net/weblog/restful%5Fwebservices.html
ASIHTTPRequest looks really promising to me as an NOOB iPhone developer but has anyone got an example project that uses it that I can look at? Something like the Andrian Kosmaczewski wrapper?
[akosma / iphonerestwrappert] try this wrapper from github
Caged / httpriot this is a very Simple HTTP Rest Library for iPhone and Cocoa projects.