I'm trying to generate a web service call from my iphone app.
I'm working with web services for the the first time.
I realize that an SOAP request would something like this:
My actual web service is not on local.
POST /MyFirstWebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/HelloWorld"<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance>
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org
/soap/envelope/">
<soap:Body>
<HelloWorld xmlns="http://tempuri.org/" />
</soap:Body>
</soap:Envelope>
I want the string hello world returned from the web service.
What is the best way to do this?
I have also read about a framework called JSON.
Can that be useful here?