[jbossws-dev] [Design of JBoss Web Services] - Re: Text nodes in SOAP messages

alex.guizar@jboss.com do-not-reply at jboss.com
Wed Feb 7 22:02:12 EST 2007


The above extract allows me to complete the checklist:

SOAP-1.2
Envelope: whitespace only, insignificant
Header:  whitespace only, insignificant
HeaderElement: any character, significant
Body: whitespace only, significant
BodyElement: any character, significant
Fault: whitespace only, insignificant
Detail: whitespace only, significant
DetailEntry: any character, significant

SOAP 1.1 does not explicitly allow or disallow them. The BP 1.2 explicitly disallows DTDs and PIs, but not text nodes. The only source of information on text nodes is the schema. All SOAP-1.1-defined elements have an element-only content type. Considering the validation rules from the XML Schema Part 1 (see below), SOAP-1.1 elements allow text nodes in the same way as their 1.2 counterparts, except that whitespace is always insignificant.
anonymous wrote : 3.4.4 Complex Type Definition Validation Rules
  | [...]
  | If the {content type} is element-only, then the element information item has no character information item [children] other than those whose [character code] is defined as a white space in [XML 1.0 (Second Edition)].

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012781#4012781

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012781



More information about the jbossws-dev mailing list