how to receive object (on iphone side)returned by webservice?
in xcode i want to call webservice whose return value is object ?
1. what will be the SOAP message to call this web service ? 2. how xcode receive this object and use?right now i have one method which return only string and i know how to call t开发者_如何学JAVAhat by use of SOAP, but i dont know if it is change in case of object..
thank you in advance
Generally a webservice has to return any kind of standard XML.
If your webservice conforms strictly to SOAP it will return SOAP-XML message like:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetStockPrice xmlns:m="http://www.example.org/stock">
<m:StockName>IBM</m:StockName>
</m:GetStockPrice>
</soap:Body>
</soap:Envelope>
for more information see SOAP on Wikipedia
ok, i figure out, if array is returned from web service than i dont have to change my SOAP message
精彩评论