Search code examples
iphoneweb-serviceswsdl

How to use WSDL for iPhone app?


I am trying to use a public web service in my iPhone app and I am not sure how to use WSDL. For example I have this WSDL. Now what XML or SOAP do I have to send to use this service?

Something similar to what I used in a demo SOAP msg:

<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
    "<soap:Envelope \n"
    "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" \n"
    "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n" 
    "xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" \n"
    "soap:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" \n"
    "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"> \n"
    "<soap:Body> \n"
                       "<CelsiusToFahrenheit xmlns=\"http://tempuri.org/\">\n"
                       "<Celsius>23</Celsius>\n"
                       "</CelsiusToFahrenheit>\n"
    "</soap:Body> \n"
                       "</soap:Envelope>

Solution

  • This may help you

    http://www.icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-web-services/

    Here you find tutorial to make envelope for making request and send this envelop to server