d5716dd9ed14cd684a0eb112fac58cf6f1238906
[aaf/authz.git] / authz-gw / src / main / xsd / gw_1_0.xsd
1 <!-- Used by gw (ATT 2015) -->
2 <xs:schema 
3         xmlns:xs="http://www.w3.org/2001/XMLSchema" 
4         xmlns:gw="urn:gw:v1_0" 
5         targetNamespace="urn:gw:v1_0" 
6         elementFormDefault="qualified">
7         
8
9 <!-- 
10         Requests
11  -->
12         <xs:complexType name="Request">
13                 <xs:sequence>
14                 </xs:sequence>
15         </xs:complexType>
16
17 <!-- 
18         In 
19 -->     
20         <xs:element name="inRequest">
21                 <xs:complexType>
22                         <xs:complexContent>
23                                 <xs:extension base="gw:Request">
24                                         <xs:sequence>
25                                                 <xs:element name="name" type="xs:string"/>
26                                                 <xs:element name="action" type="xs:string"/>
27                                         </xs:sequence>
28                                 </xs:extension>
29                         </xs:complexContent>
30                 </xs:complexType>
31         </xs:element>
32
33
34 <!-- 
35         Out 
36 -->     
37         <xs:element name="out">
38                 <xs:complexType>
39                         <xs:sequence>
40                                 <xs:element name="name" type="xs:string"/>
41                         </xs:sequence>
42                 </xs:complexType>
43         </xs:element>
44
45 <!--  **************** STANDARD ELEMENTS ******************* -->
46 <!--
47         Errors
48         Note: This Error Structure has been made to conform to the AT&T TSS Policies
49  -->
50         <xs:element name="error">
51                 <xs:complexType>
52                         <xs:sequence>
53                                 <!--
54                                 Unique message identifier of the format ‘ABCnnnn’ where ‘ABC’ is
55                                         either ‘SVC’ for Service Exceptions or ‘POL’ for Policy Exception.
56                                         Exception numbers may be in the range of 0001 to 9999 where :
57                                         * 0001 to 0199 are reserved for common exception messages
58                                         * 0200 to 0999 are reserved for Parlay Web Services specification use
59                                         * 1000-9999 are available for exceptions 
60                                  -->
61                                 <xs:element name="messageId" type="xs:string" minOccurs="1" maxOccurs="1"/>
62                                 
63                                 <!-- 
64                                 Message text, with replacement
65                                         variables marked with %n, where n is
66                                         an index into the list of <variables>
67                                         elements, starting at 1
68                                  -->
69                                 <xs:element name="text" type="xs:string" minOccurs="1" maxOccurs="1"/>
70                                 
71                                 <!-- 
72                                 List of zero or more strings that
73                                         represent the contents of the variables
74                                         used by the message text. -->
75                                 <xs:element name="variables" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
76                         </xs:sequence>
77                 </xs:complexType>
78         </xs:element>
79         
80 <!-- 
81         API 
82 -->     
83         <xs:element name="api">
84                 <xs:complexType>
85                         <xs:sequence>
86                                 <xs:element name="route" minOccurs="0" maxOccurs="unbounded">
87                                         <xs:complexType>
88                                                 <xs:sequence>
89                                                         <xs:element name="meth" type="xs:string" minOccurs="1" maxOccurs="1"/>
90                                                         <xs:element name="path" type="xs:string" minOccurs="1" maxOccurs="1"/>
91                                                         <xs:element name="param" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
92                                                         <xs:element name="desc" type="xs:string" minOccurs="1" maxOccurs="1"/>
93                                                         <xs:element name="comments" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
94                                                         <xs:element name="contentType" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
95                                                         <xs:element name="expected" type="xs:int" minOccurs="1" maxOccurs="1"/>
96                                                         <xs:element name="explicitErr" type="xs:int" minOccurs="0" maxOccurs="unbounded"/>
97                                                 </xs:sequence>  
98                                         </xs:complexType>
99                                 </xs:element>
100                         </xs:sequence>
101                 </xs:complexType>
102         </xs:element>
103 </xs:schema>