开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜