trying to do a REST web service using PUT in objective c (iphone)? - iphone

I have been trying to do a REST web service using PUT in iphone for days but with no luck. i'm wondering if anyone can upload a sample of doing REST web service using PUT or the approach to do? it will be of great help. Thanks

I would recommend using ASIHTTPRequest. Read the PUT requests and custom POSTs section in the overview.

Related

practice web service calling from iPhone without having web service?

I want to practice Web Service Calling (both SOAP and REST) for iPhone App Development. Problem is i don't have any Web Service implemented for practicing the same.
Any mock URLs (web service) for learning? At which I can have response of all types (like strings, PDFs, images, etc).
I have only basic idea of Web Service Calling from iPhone App. So, purpose is to get good understanding of WebService calling.
I have Mac and Internet, only. Nothing else.
I know this isn't the right place to ask but I could find any help by googling it.
You can get some free opensource web services on the web for your practice. Urls for free webservices are mentioned below.
Note: I am not sure if any of these will give you PDF / IMAGE as an output response of the service.
http://free-web-services.com/
http://www.webservicex.net/ws/wscatlist.aspx
It might be helpfull
Go through the step-by-step tutorial from the below link:
http://www.devx.com/wireless/Article/43209
Create an app which uses the web service at the following link: http://www.webservicex.net/WeatherForecast.asmx?WSDL, to give the weather of a US city name entered by the user. Use the method "GetWeatherByPlaceName"

How to start use webservice

i want to read and write data to a website (server on web) and don't have any information about webservices and other things that related to it
Does anybody have any idea about how to start it (mean offer complete books,papers,tutorials,websites,… or what should i learn at first mean is it necessary to learn xml,soap,... and other things)
Thank you
I've used Google App Engine with great success. You would format your data to output as JSON and use an iPhone library to read it. I've used this one (though Touch JSON seems to be more popular).
Read about REST, ROA and AtomPub. Thats got me started. I'm about to implement some webservices in WCF (WCF now acts like a RESTFul webservice, but you can also use plain old SOAP). Before I got to WCF, I experimented with RoR. RoR uses REST "out-of-the-box".

How to user web service with help of soap method

Hi i am new in iphone development. i have task to develop the application to get the web service.
I try to find source but i found some source but it cant give me any output.
So please help me and provide any example if it is possible.
I use ASIHTTPRequest for most network needs. However, it does not directly support SOAP. I don't know of any iPhone library that does. If you can address your web service without the overhead of SOAP then ASIHTTPRequest will make it simple for XML or JSON. If you really have no choice but to use SOAP then the following may help
http://devmylife.com/?p=111

Client Program for RestFul WebService?

HI, i Have developed a restful webservice sample application, i want to create a client for the webservice, can anyone tell me how to do this? i was used Rest WebService explorer, but i want to know how to create a client and call the methods ?
Please help ?
Since REST is talking HTTP and is language-agnostic, you can use most any language/tooling available. Of course the simplest test bed available to you is the browser itself.
Have a look at these tools:
http://code.google.com/p/rest-client/
https://github.com/cloudhead/http-console
https://tcpmon.dev.java.net/ (proxying is helpful for debugging)
You can also use Resty, which should make accessing your webservices very easy.
https://github.com/beders/Resty
(see Readme for examples)

The best way to implement REST in CakePHP 1.3?

Does anyone know of any tutorials that explain clearly how to implement simple REST functionality with authorization.
I've seen a few plugins and got also got some basic REST functionality working but there seems no clear guidelines about how to build a secure REST service in Cake.
Any help appreciated.
Sounds like you need to look into OAuth which uses REST to connect to Web Sevices without sending usernames and passwords.
Try these tutorials for a start
http://code.42dh.com/oauth/
http://www.neilcrookes.com/2010/04/12/cakephp-oauth-extension-to-httpsocket/