Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在iPhone中从SOAP web服务响应访问XML数据?_Iphone_Ios_Objective C_Soap_Nsxmlparser - Fatal编程技术网

如何在iPhone中从SOAP web服务响应访问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"?

我正在使用SOAPWeb服务,在其中,如果web服务返回,我能够读取字符串响应。但当web服务返回字符串和XML时,我不知道如何访问这个XML响应。例如

HTTP/1.1200ok 内容类型:text/xml;字符集=utf-8 内容长度:长度

`

在其中,我不知道如何从XML访问这些代码和概要文件标记的响应。那么你能建议怎么做吗

请参见
它可能会帮助您检查此链接从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>`