Schema for the proposed (accepted?) faultcode structure

 Hello all, 8-)
 I took the action of creating the XML Schema schema for the new
structure of the env:Fault/faultcode element. Here it is
(disclaimer at [1]):

<xs:complexType name="faultcodeType">
  <xs:sequence>
    <xs:element name="value"
                type="tns:faultcodeEnum"/>
    <xs:element name="subcode"
                type="tns:subcodeType"
                minOccurs="0"/>
  </xs:sequence>
</xs:complexType>

<xs:simpleType name="faultcodeEnum">
  <xs:restriction base="xs:QName">
    <xs:enumeration value="tns:DataEncodingUnknown"/>
    <xs:enumeration value="tns:DTDNotSupported"/>
    <xs:enumeration value="tns:MustUnderstand"/>
    <xs:enumeration value="tns:Receiver"/>
    <xs:enumeration value="tns:Sender"/>
    <xs:enumeration value="tns:VersionMismatch"/>
  </xs:restriction>
</xs:simpleType>

<xs:complexType name="subcodeType">
  <xs:sequence>
    <xs:element name="value"
                type="xs:QName"/>
    <xs:element name="subcode"
                type="tns:subcodeType"
                minOccurs="0"/>
  </xs:sequence>
</xs:complexType>


Of course, I am not an XML Schema Expert so it may contain
mistakes.

                   Jacek Kopecky

                   Senior Architect, Systinet (formerly Idoox)
                   http://www.systinet.com/

[1] http://catalog.com/hopkins/text/disclaimers.html

Received on Thursday, 3 January 2002 10:53:29 UTC