Slight improvement to MessageTest-5G

"Jonathan Marsh" <[email protected]>
Newsgroups gmane.comp.web.services.description
Message-ID <003901c73e07$87c9a1e0$d901640a@DELLICIOUS>
MessageTest-5G includes the definition of a test header.  I defined the
header simply as:

 

            <xs:element name="TestSOAPHeader"/>

 

Without a specified type, this is an instance of the ur-type, that is, there
are no constraints on the content model.  That's a little strange for a
header, and didn't express the original intention to define a "marker"
header.

 

A more realistic definition for an intentionally empty header, would be
this:

 

  <xs:element name="TestSOAPHeader">

    <xs:complexType>

      <xs:complexContent>

        <xs:restriction base="xs:anyType">

            <xs:anyAttribute namespace='##other' processContents='lax' />

        </xs:restriction>

      </xs:complexContent>

    </xs:complexType>

  </xs:element>

 

Allowing extension attributes (like soap:mustUnderstand) but no other
content.

 

I've made this change, but it doesn't affect the interchange results
(another case where it's limited to the schema.)

 

Jonathan Marsh -  <http://www.wso2.com> http://www.wso2.com -
<http://auburnmarshes.spaces.live.com> http://auburnmarshes.spaces.live.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.