Re: SOAP W3C Recommendation
[email protected] Thu, 8 Nov 2007 09:35:32 -0500
| Newsgroups | gmane.text.xml.distributed |
|---|---|
| Message-ID | <OFEE13CEC6.D89C9861-ON0525738D.004FB591-8525738D.005004A2@lotus.com> |
SOAP messages must be serializable as XML (see [1]). From the XML
Recommendation [2]:
"[Definition: A Name is a token beginning with a letter or one of a few
punctuation characters, and continuing with letters, digits, hyphens,
underscores, colons, or full stops, together known as name characters.]
Names beginning with the string "xml", or with any string which would
match (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization in
this or future versions of this specification."
So, it's very clearly in the Recommendations if you know where to look.
Noah
[1] http://www.w3.org/TR/2007/REC-soap12-part1-20070427/#soapenv
[1] http://www.w3.org/TR/REC-xml/#sec-common-syn
--------------------------------------
Noah Mendelsohn
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
"Nicolas Fonnegra" <[email protected]>
Sent by: [email protected]
11/08/2007 04:10 AM
Please respond to "[email protected]"
To: "[email protected]" <[email protected]>
cc: (bcc: Noah Mendelsohn/Cambridge/IBM)
Subject: SOAP W3C Recommendation
Hello everyone,
I am trying to consume a webservice whose input parameters follow this
schema definition
<s:element name="Insert">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="dataObject"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="xmlPayload"
type="s:string" />
</s:sequence>
</s:complexType>
as I generate the correspondent SOAP message, I get an error saying that
my message isn't W3C conform, because tags beginning with "xml" aren't
allowed. I looked at the specification but I didn't find this restriction.
Is it really against the specification to have a tag beginning with "xml"
(in this case xmlPayload) in your SOAP message ?
Cheers Nicolas Fonnegra