如何在iPhone中从SOAP web服务响应访问XML数据?
我正在使用SOAPWeb服务,在其中,如果web服务返回,我能够读取字符串响应。但当web服务返回字符串和XML时,我不知道如何访问这个XML响应。例如 HTTP/1.1200ok 内容类型:text/xml;字符集=utf-8 内容长度:长度 ` 在其中,我不知道如何从XML访问这些代码和概要文件标记的响应。那么你能建议怎么做吗 请参见如何在iPhone中从SOAP web服务响应访问XML数据?,iphone,ios,objective-c,soap,nsxmlparser,Iphone,Ios,Objective C,Soap,Nsxmlparser,我正在使用SOAPWeb服务,在其中,如果web服务返回,我能够读取字符串响应。但当web服务返回字符串和XML时,我不知道如何访问这个XML响应。例如 HTTP/1.1200ok 内容类型:text/xml;字符集=utf-8 内容长度:长度 ` 在其中,我不知道如何从XML访问这些代码和概要文件标记的响应。那么你能建议怎么做吗 请参见 它可能会帮助您检查此链接从web服务获取数据的最佳方法是“TouchXML” <?xml version="1.0" encoding="utf-8"?
它可能会帮助您检查此链接从web服务获取数据的最佳方法是“TouchXML”
<?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>`