According to the SOAP 1.2 section you quoted, text nodes are accepted in Body, but only if
they are whitespace. The CTS actually adds non-whitespace text to a Body in the 1.2
namespace.
SOAP 1.1 does not mention CIIs in Body, but that does not necessarily mean they are
disallowed. Comparing the two schemas, neither seems to allow text context, unless it is
white space for pretty-printing purposes. The CTS adds non-whitespace text to a Body in
the 1.1 namespace as well.
SOAP 1.1 Schema
<xs:element name="Body" type="tns:Body"/>
| <xs:complexType name="Body">
| <xs:sequence>
| <xs:any namespace="##any" minOccurs="0"
maxOccurs="unbounded" processContents="lax"/>
| </xs:sequence>
| <xs:anyAttribute namespace="##any" processContents="lax"/>
| </xs:complexType>
SOAP 1.2 Schema
<xs:element name="Body" type="tns:Body"/>
| <xs:complexType name="Body">
| <xs:sequence>
| <xs:any namespace="##any" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
| </xs:sequence>
| <xs:anyAttribute namespace="##other"
processContents="lax"/>
| </xs:complexType>
Do we want to validate that only whitespace text is added?
Furthermore, that SOAP 1.2 section specifies that unqualified elements and attributes are
invalid. We do not currently check for that. How far do we want to go with validation?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012743#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...