RE: Null return values from rpc calls

Hi Yasser!

I think that either of the following ( the first is your example ) would
be fine, per the 5th bullet at[1]:

<soap:Envelope xmlns:soap="http://www.w3.org/2002/12/soap-envelope" 
               xmlns:types="http://soapinterop.org/" 
               xmlns:rpc="http://www.w3.org/2002/12/soap-rpc" 
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
 <soap:Body>
  <types:echoStringResponse>
   <rpc:result xmlns="">return</rpc:result>
  </types:echoStringResponse>
 </soap:Body>
</soap:Envelope>
 
<soap:Envelope xmlns:soap="http://www.w3.org/2002/12/soap-envelope" 
               xmlns:types="http://soapinterop.org/" 
               xmlns:rpc="http://www.w3.org/2002/12/soap-rpc" 
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
 <soap:Body>
  <types:echoStringResponse>
   <rpc:result xmlns="">return</rpc:result>
   <return xsi:nil='true' />
  </types:echoStringResponse>
 </soap:Body>
</soap:Envelope>

Gudge

[1] http://www.w3.org/TR/soap12-part2/#complexenc


 


> -----Original Message-----
> From: Yasser Shohoud [mailto:yassers@microsoft.com] 
> Sent: 27 February 2003 16:09
> To: xml-dist-app@w3.org
> Subject: Null return values from rpc calls
> 
> 
> 
> 
> 
> 
> 
>  
> How are null rpc return values represented in a SOAP 1.2 
> response messages? Is the following response message 
> (indicating a null return) conformant? <soap:Envelope 
> xmlns:soap="http://www.w3.org/2002/12/soap-envelope" 
> xmlns:soapenc="http://www.w3.org/2002/12/soap-encoding" 
> xmlns:tns="http://soapinterop.org/" 
> xmlns:types="http://soapinterop.org/" 
> xmlns:rpc="http://www.w3.org/2002/12/soap-rpc" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <soap:Body>
>     <types:echoStringResponse>
>       <rpc:result xmlns="">return</rpc:result>
>     </types:echoStringResponse>
>   </soap:Body>
> </soap:Envelope>
> 
> 

Received on Thursday, 6 March 2003 07:47:49 UTC