2013-02-16 46 views
0

我正在使用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代碼和配置文件標籤的響應這些。那麼你能建議怎麼做嗎?

+0

http://stackoverflow.com/questions/4705588/nsxmlparser-example檢查此鏈接 – Rushabh 2013-02-16 10:27:54

+0

谷歌'NSXMLParser'。 – 2013-02-16 10:30:11

+0

從Web服務獲取數據的最佳方式是「TouchXML」 – 2013-12-11 06:03:05

回答