W3C home > Mailing lists > Public > xml-dist-app@w3.org > March 2003

RE: Null return values from rpc calls

From: Martin Gudgin <mgudgin@microsoft.com>
Date: Thu, 6 Mar 2003 04:47:41 -0800
Message-ID: <92456F6B84D1324C943905BEEAE0278E02D30D68@RED-MSG-10.redmond.corp.microsoft.com>
To: "Yasser Shohoud" <yassers@microsoft.com>, <xml-dist-app@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:13 GMT