开发者

how to receive object (on iphone side)returned by webservice?

开发者 https://www.devze.com 2023-02-06 08:29 出处:网络
in xcode i want to call webservice whose return value is object ? 1. what will be the SOAP message to call this web service ?

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

精彩评论

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