简体   繁体   中英

How can I Use WSDL Webservies in IOS SDK

I am trying to use WSDL Webservice in my IOS application. I have google it for several days and I am not able to fetch data from the server. My Service URL is similar to http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL .

I want to know how can I create soapMessage and soap Action. Whether the below code is must to create WSDL parsing

<?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>

If there is any sample please share me

For android we have used Ksoap2 and fetch the data successfully

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM