如何从iPhone中的SOAP Web服务响应访问XML数据?
问题描述:
我正在使用SOAP Web服务,如果Web服务返回,我可以读取字符串响应。但是,当Web服务返回一个字符串和一个XML,然后我不知道如何访问这个XML响应。例如。如何从iPhone中的SOAP Web服务响应访问XML数据?
HTTP/1.1 200 OK Content-Type:text/xml;字符集= UTF-8 的Content-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>`
在这我不知道如何访问XML代码和配置文件标签的响应这些。那么你能建议怎么做吗?
http://stackoverflow.com/questions/4705588/nsxmlparser-example检查此链接 – Rushabh 2013-02-16 10:27:54
谷歌'NSXMLParser'。 – 2013-02-16 10:30:11
从Web服务获取数据的最佳方式是“TouchXML” – 2013-12-11 06:03:05