source: TI12-security/trunk/python/www/html/sessionMgr.wsdl @ 1777

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/www/html/sessionMgr.wsdl@1777
Revision 1777, 8.4 KB checked in by pjkersha, 15 years ago (diff)

Working version of Session Manager stubs with reqAuthorisation, connect and getX509Cert calls.

server/SessionMgr/server-config.tac: added stubs for reqAuthorisation - TODO: hook up *real* SessionMgr?
backend.
server/SessionMgr/SessionMgr_services_server.py, common/SessionMgr/SessionMgr_services.py,
common/SessionMgr/SessionMgr_services_types.py, www/html/sessionMgr.wsdl: changes to WSDL to support
reqAuthorisation operations including list elements (by setting maxOccurs="unbounded")

test/SessionMgrClientTest.py: Session Manager unit tests updated for the above.

test/SessionCookieTest.py: new unit test for SessionCookie? module.

common/SessionCookie.py: fixes including ability to pass a cookie string to initialise and create
a new object.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<wsdl:definitions name="SessionMgr"
3 xmlns="http://schemas.xmlsoap.org/wsdl/"
4 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
5 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
6 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
7 xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
8 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9 xmlns:tns="urn:ndg:security"
10 xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
11 targetNamespace="urn:ndg:security">
12
13  <wsdl:types>
14    <xsd:schema>
15      <xsd:element name="addUser">
16        <xsd:complexType>
17          <xsd:sequence>
18            <xsd:element name="username" type="xsd:string" minOccurs="1" maxOccurs="1"/>
19            <xsd:element name="passPhrase" type="xsd:string" minOccurs="1" maxOccurs="1"/>
20          </xsd:sequence>
21        </xsd:complexType>
22      </xsd:element>
23     
24      <xsd:element name="addUserResponse">
25        <xsd:complexType/>
26      </xsd:element>
27
28      <xsd:element name="connect">
29        <xsd:complexType>
30          <xsd:sequence>
31            <xsd:element name="username" type="xsd:string" minOccurs="1" maxOccurs="1"/>
32            <xsd:element name="passPhrase" type="xsd:string" minOccurs="1" maxOccurs="1"/>
33                    <xsd:element name="createServerSess" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
34                    <xsd:element name="getCookie" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
35          </xsd:sequence>
36        </xsd:complexType>
37      </xsd:element>
38     
39      <xsd:element name="connectResponse">
40        <xsd:complexType>
41                  <xsd:sequence>
42                    <xsd:element name="cookie" type="xsd:string" minOccurs="0" maxOccurs="1"/>
43                    <xsd:element name="proxyCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
44                  </xsd:sequence>
45                </xsd:complexType>
46      </xsd:element>
47
48      <xsd:element name="disconnect">
49        <xsd:complexType>
50                  <xsd:sequence>
51                    <xsd:element name="cookie" type="xsd:string" minOccurs="0" maxOccurs="1"/>
52                    <xsd:element name="proxyCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
53                  </xsd:sequence>
54                </xsd:complexType>
55      </xsd:element>
56
57      <xsd:element name="disconnectResponse">
58        <xsd:complexType/>
59      </xsd:element>
60
61          <xsd:element name="attCert" type="xsd:string"/>
62          <xsd:element name="trustedHost" type="xsd:string"/>
63     
64      <xsd:simpleType name="attCertList">
65        <xsd:list itemType="tns:attCert"/>
66      </xsd:simpleType>
67
68      <xsd:simpleType name="trustedHostList">
69                <xsd:list itemType="tns:trustedHost"/>
70      </xsd:simpleType>
71     
72      <xsd:element name="reqAuthorisation">
73        <xsd:complexType>
74                  <xsd:sequence>
75                    <xsd:element name="proxyCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
76                    <xsd:element name="sessID" type="xsd:string" minOccurs="0" maxOccurs="1"/>
77                    <xsd:element name="encrSessionMgrURI" type="xsd:string" minOccurs="0" maxOccurs="1"/>
78                    <xsd:element name="attAuthorityURI" type="xsd:string" minOccurs="1" maxOccurs="1"/>
79                    <xsd:element name="attAuthorityCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
80                    <xsd:element name="reqRole" type="xsd:string" minOccurs="0" maxOccurs="1"/>
81                    <xsd:element name="mapFromTrustedHosts" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
82                    <xsd:element name="rtnExtAttCertList" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
83                        <xsd:element name="extAttCert" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
84                        <xsd:element name="extTrustedHost" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
85
86<!-- Leave out list handling for now - use maxOccurs="unbounded" instead
87                        <xsd:element name="extAttCertList" type="tns:attCertList" minOccurs="0" maxOccurs="1"/>
88                        <xsd:element name="extTrustedHostList" type="tns:trustedHostList" minOccurs="0" maxOccurs="1"/>
89-->
90                  </xsd:sequence>
91                </xsd:complexType>
92      </xsd:element>
93     
94      <xsd:element name="reqAuthorisationResponse">
95        <xsd:complexType>
96              <xsd:sequence>
97                <xsd:element name="attCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
98                <xsd:element name="statusCode" type="xsd:string" minOccurs="1" maxOccurs="1"/>
99                        <xsd:element name="extAttCert" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
100<!-- Leave out list handling for now - use maxOccurs="unbounded" instead
101                        <xsd:element name="extAttCertList" type="tns:attCertList" minOccurs="0" maxOccurs="1"/>
102-->
103              </xsd:sequence>
104            </xsd:complexType>
105      </xsd:element>
106
107      <xsd:element name="getX509Cert">
108        <xsd:complexType/>
109      </xsd:element>
110     
111      <xsd:element name="getX509CertResponse">
112        <xsd:complexType>
113                  <xsd:sequence>
114                    <xsd:element name="x509Cert" type="xsd:string" minOccurs="1" maxOccurs="1"/>
115                  </xsd:sequence>
116                </xsd:complexType>
117      </xsd:element>
118
119    </xsd:schema>
120  </wsdl:types>
121 
122  <message name="addUserInputMsg">
123    <part name="parameters" element="tns:addUser"/>
124  </message>
125
126  <message name="addUserOutputMsg">
127    <part name="parameters" element="tns:addUserResponse"/>
128  </message>
129 
130  <message name="connectInputMsg">
131    <part name="parameters" element="tns:connect"/>
132  </message>
133
134  <message name="connectOutputMsg">
135    <part name="parameters" element="tns:connectResponse"/>
136  </message>
137 
138  <message name="disconnectInputMsg">
139    <part name="parameters" element="tns:disconnect"/>
140  </message>
141
142  <message name="disconnectOutputMsg">
143    <part name="parameters" element="tns:disconnectResponse"/>
144  </message>
145
146  <message name="reqAuthorisationInputMsg">
147    <part name="parameters" element="tns:reqAuthorisation"/>
148  </message>
149
150  <message name="reqAuthorisationOutputMsg">
151    <part name="parameters" element="tns:reqAuthorisationResponse"/>
152  </message>
153
154  <message name="getX509CertInputMsg">
155    <part name="parameters" element="tns:getX509Cert"/>
156  </message>
157
158  <message name="getX509CertOutputMsg">
159    <part name="parameters" element="tns:getX509CertResponse"/>
160  </message>
161
162  <wsdl:portType name="SessionMgr">
163    <wsdl:operation name="addUser">
164      <wsdl:input message="tns:addUserInputMsg"/>
165      <wsdl:output message="tns:addUserOutputMsg"/>
166    </wsdl:operation>
167
168    <operation name="connect">
169      <wsdl:input message="tns:connectInputMsg"/>
170      <wsdl:output message="tns:connectOutputMsg"/>
171    </operation>
172
173    <operation name="disconnect">
174      <wsdl:input message="tns:disconnectInputMsg"/>
175      <wsdl:output message="tns:disconnectOutputMsg"/>
176    </operation>
177
178    <operation name="reqAuthorisation">
179      <wsdl:input message="tns:reqAuthorisationInputMsg"/>
180      <wsdl:output message="tns:reqAuthorisationOutputMsg"/>
181    </operation>
182
183    <operation name="getX509Cert">
184      <wsdl:input message="tns:getX509CertInputMsg"/>
185      <wsdl:output message="tns:getX509CertOutputMsg"/>
186    </operation>
187  </wsdl:portType> 
188 
189  <wsdl:binding name="SessionMgrBinding" type="tns:SessionMgr">
190    <soap:binding
191     style="document"
192     transport="http://schemas.xmlsoap.org/soap/http"/>
193
194    <operation name="addUser">
195      <soap:operation soapAction="addUser"/>
196      <wsdl:input>
197        <soap:body use="literal"/>
198      </wsdl:input>
199      <wsdl:output>
200        <soap:body use="literal"/>
201      </wsdl:output>
202    </operation>
203   
204    <operation name="connect">
205      <soap:operation soapAction="connect"/>
206      <wsdl:input>
207        <soap:body use="literal"/>
208      </wsdl:input>
209      <wsdl:output>
210        <soap:body use="literal"/>
211      </wsdl:output>
212    </operation>
213   
214    <operation name="disconnect">
215      <soap:operation soapAction="disconnect"/>
216      <wsdl:input>
217        <soap:body use="literal"/>
218      </wsdl:input>
219      <wsdl:output>
220        <soap:body use="literal"/>
221      </wsdl:output>
222    </operation>
223   
224    <operation name="reqAuthorisation">
225      <soap:operation soapAction="reqAuthorisation"/>
226      <wsdl:input>
227        <soap:body use="literal"/>
228      </wsdl:input>
229      <wsdl:output>
230        <soap:body use="literal"/>
231      </wsdl:output>
232    </operation>
233
234    <operation name="getX509Cert">
235      <soap:operation soapAction="getX509Cert"/>
236      <wsdl:input>
237        <soap:body use="literal"/>
238      </wsdl:input>
239      <wsdl:output>
240        <soap:body use="literal"/>
241      </wsdl:output>
242    </operation>   
243 
244  </wsdl:binding>
245
246  <wsdl:service name="SessionMgrService">
247    <wsdl:documentation>NERC Data Grid Session Manager web service</wsdl:documentation>
248    <wsdl:port name="SessionMgr" binding="tns:SessionMgrBinding">
249      <soap:address location="http://localhost:5000"/>
250    </wsdl:port>
251  </wsdl:service>
252</wsdl:definitions>
Note: See TracBrowser for help on using the repository browser.