- From: <elke.e.meier@daimlerchrysler.com>
- Date: Mon, 20 Aug 2001 12:18:20 +0200
- To: xml-dist-app@w3.org
SOAP Encoding rules says that null return values MAY be serialized the same as
void:
"A NULL value or a default value MAY be represented by omission of the accessor
element.
A NULL value MAY also be indicated by an accessor element containing the
attribute xsi:null
with value "1" or possibly other application-dependent attributes and values."
(it still uses an old schema version, the REC changed to xsi:nil)
I believe using <r:result xsi:nil="true"/> is a far better choice for null
return values:
"nothing expected" (void) is definitively different from "no value available"
(null, as used in SQL).
Besides, allowing both representations in the encoding rules is a source for
interoperability issues.
Elke Meier
--------------------------
Elke Meier
DaimlerChrysler Research and Technology Ulm (Germany)
MailTo:elke.e.meier@daimlerchrysler.com
jacek@idoox.com@w3.org am 18.08.2001 00:09:25
Bitte antworten an xml-dist-app@w3.org
Gesendet von: xml-dist-app-request@w3.org
An: soapbuilders@yahoogroups.com, SOAP@DISCUSS.DEVELOP.COM,
xml-dist-app@w3.org
Kopie: frankd@tibco.com
Thema: Proposal for naming the SOAP RPC return value
<snip/>
Please note that according to the SOAP Encoding rules [6], rule
no. 9 (the very last in section 5.1), a procedure with a void
return type is serialized equally to a procedure with a non-void
return type but with a NULL return value.
-------------------------- proposal ends
This proposal directly resolves issues #16 and #113.
We believe that this proposal is fully consistent with the
encoding rules of SOAP section 5.
The RPC Task force is likely to put this proposal forward to the
XMLP Working Group for decision, and so your feedback can make a
difference.
Please send your replies to the list xml-dist-app@w3.org.
As usual, we will take silence for assent after a reasonable
time so please voice your opinion soon.
Jacek Kopecky
Idoox
http://www.idoox.com/
[1] http://www.w3.org/2000/xp/Group/xmlp-issues.html#x16
[2] http://www.w3.org/2000/xp/Group/xmlp-issues.html#x113
[3] http://groups.yahoo.com/group/soapbuilders/message/4907
[4] http://lists.w3.org/Archives/Public/xml-dist-app/2001Aug/0131.html
[5] http://www.w3.org/TR/2001/WD-soap12-20010709/#_Toc478383533
[6] http://www.w3.org/2000/xp/Group/1/06/01/soap-02-infoset.html#encrules
Received on Monday, 20 August 2001 06:28:29 UTC