简体   繁体   中英

How to access XML data from SOAP web-service response in iPhone?

I am using SOAP web service and in it I am able to read string response if web service return. But When web service return a string and an XML then I don't know how to access this XML response. For ex.

HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length

`

<?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>
    <GetCountriesResponse xmlns="http://www.myurl.com/">
      <GetCountriesResult>
        <code>string</code>
        <profile>xmlxml</profile>
      </GetCountriesResult>
    </GetCountriesResponse>
  </soap:Body>
</soap:Envelope>`

In it I don't know how to access these response of code and profile tag from XML. So can you suggest how to do it?

请参阅SOAP示例中的SOAP Turorial。

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