[英]How to access XML data from SOAP web-service response in iPhone?
我正在使用SOAP Web服务,如果Web服务返回,我可以在其中读取字符串响应。 但是,当Web服务返回字符串和XML时,我不知道如何访问此XML响应。 对于前。
HTTP / 1.1 200 OK内容类型:text / xml; charset = utf-8内容长度:长度
`
<?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访问代码和配置文件标记的这些响应。 那你能建议怎么做吗?
请参阅SOAP示例中的SOAP Turorial。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.