Relax attribute wildcards for better interop.
[java-idp.git] / src / schemas / soap-envelope.xsd
1 <?xml version='1.0' encoding='UTF-8' ?>
2
3 <!-- Schema for the SOAP/1.1 envelope
4
5      This schema has been produced using W3C's SOAP Version 1.2 schema
6      found at:
7
8      http://www.w3.org/2001/06/soap-envelope
9
10      Copyright 2001 Martin Gudgin, Developmentor.
11
12      Changes made are the following:
13      - reverted namespace to http://schemas.xmlsoap.org/soap/envelope/
14      - reverted mustUnderstand to only allow 0 and 1 as lexical values
15          - made encodingStyle a global attribute 20020825
16
17          Further changes:
18
19          - removed default value from mustUnderstand attribute declaration - 20030314
20
21      Original copyright:
22      
23      Copyright 2001 W3C (Massachusetts Institute of Technology,
24      Institut National de Recherche en Informatique et en Automatique,
25      Keio University). All Rights Reserved.
26      http://www.w3.org/Consortium/Legal/
27
28      This document is governed by the W3C Software License [1] as
29      described in the FAQ [2].
30
31      [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
32      [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
33 -->
34 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
35            xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/"
36            targetNamespace="http://schemas.xmlsoap.org/soap/envelope/" >
37
38      
39   <!-- Envelope, header and body -->
40   <xs:element name="Envelope" type="tns:Envelope" />
41   <xs:complexType name="Envelope" >
42     <xs:sequence>
43       <xs:element ref="tns:Header" minOccurs="0" />
44       <xs:element ref="tns:Body" minOccurs="1" />
45       <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
46     </xs:sequence>
47     <xs:anyAttribute namespace="##any" processContents="lax" />
48   </xs:complexType>
49
50   <xs:element name="Header" type="tns:Header" />
51   <xs:complexType name="Header" >
52     <xs:sequence>
53       <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
54     </xs:sequence>
55     <xs:anyAttribute namespace="##any" processContents="lax" />
56   </xs:complexType>
57   
58   <xs:element name="Body" type="tns:Body" />
59   <xs:complexType name="Body" >
60     <xs:sequence>
61       <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
62     </xs:sequence>
63     <xs:anyAttribute namespace="##any" processContents="lax" >
64           <xs:annotation>
65             <xs:documentation>
66                   Prose in the spec does not specify that attributes are allowed on the Body element
67                 </xs:documentation>
68           </xs:annotation>
69         </xs:anyAttribute>
70   </xs:complexType>
71
72        
73   <!-- Global Attributes.  The following attributes are intended to be usable via qualified attribute names on any complex type referencing them.  -->
74   <xs:attribute name="mustUnderstand" > 
75      <xs:simpleType>
76      <xs:restriction base='xs:boolean'>
77            <xs:pattern value='0|1' />
78          </xs:restriction>
79    </xs:simpleType>
80   </xs:attribute>
81   <xs:attribute name="actor" type="xs:anyURI" />
82
83   <xs:simpleType name="encodingStyle" >
84     <xs:annotation>
85           <xs:documentation>
86             'encodingStyle' indicates any canonicalization conventions followed in the contents of the containing element.  For example, the value 'http://schemas.xmlsoap.org/soap/encoding/' indicates the pattern described in SOAP specification
87           </xs:documentation>
88         </xs:annotation>
89     <xs:list itemType="xs:anyURI" />
90   </xs:simpleType>
91
92   <xs:attribute name="encodingStyle" type="tns:encodingStyle" />
93   <xs:attributeGroup name="encodingStyle" >
94     <xs:attribute ref="tns:encodingStyle" />
95   </xs:attributeGroup>
96
97   <xs:element name="Fault" type="tns:Fault" />
98   <xs:complexType name="Fault" final="extension" >
99     <xs:annotation>
100           <xs:documentation>
101             Fault reporting structure
102           </xs:documentation>
103         </xs:annotation>
104     <xs:sequence>
105       <xs:element name="faultcode" type="xs:QName" />
106       <xs:element name="faultstring" type="xs:string" />
107       <xs:element name="faultactor" type="xs:anyURI" minOccurs="0" />
108       <xs:element name="detail" type="tns:detail" minOccurs="0" />      
109     </xs:sequence>
110   </xs:complexType>
111
112   <xs:complexType name="detail">
113     <xs:sequence>
114       <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
115     </xs:sequence>
116     <xs:anyAttribute namespace="##any" processContents="lax" /> 
117   </xs:complexType>
118
119 </xs:schema>
120