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

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

Adding getSessionStatus to enable SM clients to check a session is still valid.

python/ndg.security.server/ndg/security/server/SessionMgr/init.py:

  • new method getSessionStatus checks for a session's existence with given input sessID.

python/www/html/sessionMgr.wsdl,
python/ndg.security.server/ndg/security/server/SessionMgr/SessionMgr_services_server.py,
python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services.py:

  • added getSessionStatus operation to WSDL and regenerated the stubs

python/ndg.security.test/ndg/security/test/MyProxy/myProxyProperties.xml: replace refs to GLOBUS_LOCATION with NDGSEC_DIR for MyProxy? unit tests OpenSSL config file.

python/ndg.security.test/ndg/security/test/SessionMgr/SessionMgrTest.py: new unit test to test out ndg.security.server.SessionMgr?.SessionMgr? class. Previously, this required use of the SessionMgrClient? unit tests. ie. running over SOAP interface.

python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrProperties.xml,
python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrClientTest.cfg:

  • expt with settings to try twisted over http but run through proxy on 443 with Apache.
  • 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:sessionMgr"
10 targetNamespace="urn:ndg:security:sessionMgr">
11
12  <wsdl:types>
13    <xsd:schema targetNamespace="urn:ndg:security:sessionMgr">
14      <xsd:element name="getSessionStatus">
15        <xsd:complexType>
16          <xsd:sequence>
17            <xsd:element name="userDN" type="xsd:string" minOccurs="0" maxOccurs="1"/>
18            <xsd:element name="sessID" type="xsd:string" minOccurs="0" maxOccurs="1"/>
19          </xsd:sequence>
20        </xsd:complexType>
21      </xsd:element>
22     
23      <xsd:element name="getSessionStatusResponse">
24        <xsd:complexType>
25                    <xsd:element name="isAlive" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
26        </xsd:complexType>
27      </xsd:element>
28
29      <xsd:element name="connect">
30        <xsd:complexType>
31          <xsd:sequence>
32            <xsd:element name="username" type="xsd:string" minOccurs="1" maxOccurs="1"/>
33            <xsd:element name="passphrase" type="xsd:string" minOccurs="1" maxOccurs="1"/>
34                    <xsd:element name="createServerSess" 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="proxyCert" type="xsd:string" minOccurs="1" maxOccurs="1"/>
43                    <xsd:element name="proxyPriKey" type="xsd:string" minOccurs="1" maxOccurs="1"/>
44                    <xsd:element name="userCert" type="xsd:string" minOccurs="1" maxOccurs="1"/>
45                    <xsd:element name="sessID" type="xsd:string" minOccurs="0" maxOccurs="1"/>
46                  </xsd:sequence>
47                </xsd:complexType>
48      </xsd:element>
49
50      <xsd:element name="disconnect">
51        <xsd:complexType>
52                  <xsd:sequence>
53                    <xsd:element name="userCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
54                    <xsd:element name="sessID" type="xsd:string" minOccurs="0" maxOccurs="1"/>
55                  </xsd:sequence>
56                </xsd:complexType>
57      </xsd:element>
58
59      <xsd:element name="disconnectResponse">
60        <xsd:complexType/>
61      </xsd:element>
62           
63      <xsd:element name="getAttCert">
64        <xsd:complexType>
65                  <xsd:sequence>
66                    <xsd:element name="userCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
67                    <xsd:element name="sessID" type="xsd:string" minOccurs="0" maxOccurs="1"/>
68                    <xsd:element name="attAuthorityURI" type="xsd:string" minOccurs="1" maxOccurs="1"/>
69                    <xsd:element name="attAuthorityCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
70                    <xsd:element name="reqRole" type="xsd:string" minOccurs="0" maxOccurs="1"/>
71                    <xsd:element name="mapFromTrustedHosts" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
72                    <xsd:element name="rtnExtAttCertList" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
73                        <xsd:element name="extAttCert" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
74                        <xsd:element name="extTrustedHost" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
75                  </xsd:sequence>
76                </xsd:complexType>
77      </xsd:element>
78     
79      <xsd:element name="getAttCertResponse">
80        <xsd:complexType>
81              <xsd:sequence>
82                <xsd:element name="attCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
83                <xsd:element name="msg" type="xsd:string" minOccurs="0" maxOccurs="1"/>
84                        <xsd:element name="extAttCertOut" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
85              </xsd:sequence>
86            </xsd:complexType>
87      </xsd:element>
88
89      <xsd:element name="getX509Cert">
90        <xsd:complexType/>
91      </xsd:element>
92     
93      <xsd:element name="getX509CertResponse">
94        <xsd:complexType>
95                  <xsd:sequence>
96                    <xsd:element name="x509Cert" type="xsd:string" minOccurs="1" maxOccurs="1"/>
97                  </xsd:sequence>
98                </xsd:complexType>
99      </xsd:element>
100
101    </xsd:schema>
102  </wsdl:types>
103 
104  <wsdl:message name="getSessionStatusInputMsg">
105    <wsdl:part name="parameters" element="tns:getSessionStatus"/>
106  </wsdl:message>
107
108  <wsdl:message name="getSessionStatusOutputMsg">
109    <wsdl:part name="parameters" element="tns:getSessionStatusResponse"/>
110  </wsdl:message>
111 
112  <wsdl:message name="connectInputMsg">
113    <wsdl:part name="parameters" element="tns:connect"/>
114  </wsdl:message>
115
116  <wsdl:message name="connectOutputMsg">
117    <wsdl:part name="parameters" element="tns:connectResponse"/>
118  </wsdl:message>
119 
120  <wsdl:message name="disconnectInputMsg">
121    <wsdl:part name="parameters" element="tns:disconnect"/>
122  </wsdl:message>
123
124  <wsdl:message name="disconnectOutputMsg">
125    <wsdl:part name="parameters" element="tns:disconnectResponse"/>
126  </wsdl:message>
127
128  <wsdl:message name="getAttCertInputMsg">
129    <wsdl:part name="parameters" element="tns:getAttCert"/>
130  </wsdl:message>
131
132  <wsdl:message name="getAttCertOutputMsg">
133    <wsdl:part name="parameters" element="tns:getAttCertResponse"/>
134  </wsdl:message>
135
136  <wsdl:message name="getX509CertInputMsg">
137    <wsdl:part name="parameters" element="tns:getX509Cert"/>
138  </wsdl:message>
139
140  <wsdl:message name="getX509CertOutputMsg">
141    <wsdl:part name="parameters" element="tns:getX509CertResponse"/>
142  </wsdl:message>
143
144  <wsdl:portType name="SessionMgr">
145    <wsdl:operation name="getSessionStatus">
146      <wsdl:input message="tns:getSessionStatusInputMsg"/>
147      <wsdl:output message="tns:getSessionStatusOutputMsg"/>
148    </wsdl:operation>
149
150    <wsdl:operation name="connect">
151      <wsdl:input message="tns:connectInputMsg"/>
152      <wsdl:output message="tns:connectOutputMsg"/>
153    </wsdl:operation>
154
155    <wsdl:operation name="disconnect">
156      <wsdl:input message="tns:disconnectInputMsg"/>
157      <wsdl:output message="tns:disconnectOutputMsg"/>
158    </wsdl:operation>
159
160    <wsdl:operation name="getAttCert">
161      <wsdl:input message="tns:getAttCertInputMsg"/>
162      <wsdl:output message="tns:getAttCertOutputMsg"/>
163    </wsdl:operation>
164
165    <wsdl:operation name="getX509Cert">
166      <wsdl:input message="tns:getX509CertInputMsg"/>
167      <wsdl:output message="tns:getX509CertOutputMsg"/>
168    </wsdl:operation>
169  </wsdl:portType> 
170 
171  <wsdl:binding name="SessionMgrBinding" type="tns:SessionMgr">
172    <soap:binding
173     style="document"
174     transport="http://schemas.xmlsoap.org/soap/http"/>
175
176    <wsdl:operation name="getSessionStatus">
177      <soap:operation soapAction="getSessionStatus"/>
178      <wsdl:input>
179        <soap:body use="literal"/>
180      </wsdl:input>
181      <wsdl:output>
182        <soap:body use="literal"/>
183      </wsdl:output>
184    </wsdl:operation>
185   
186    <wsdl:operation name="connect">
187      <soap:operation soapAction="connect"/>
188      <wsdl:input>
189        <soap:body use="literal"/>
190      </wsdl:input>
191      <wsdl:output>
192        <soap:body use="literal"/>
193      </wsdl:output>
194    </wsdl:operation>
195   
196    <wsdl:operation name="disconnect">
197      <soap:operation soapAction="disconnect"/>
198      <wsdl:input>
199        <soap:body use="literal"/>
200      </wsdl:input>
201      <wsdl:output>
202        <soap:body use="literal"/>
203      </wsdl:output>
204    </wsdl:operation>
205   
206    <wsdl:operation name="getAttCert">
207      <soap:operation soapAction="getAttCert"/>
208      <wsdl:input>
209        <soap:body use="literal"/>
210      </wsdl:input>
211      <wsdl:output>
212        <soap:body use="literal"/>
213      </wsdl:output>
214    </wsdl:operation>
215
216    <wsdl:operation name="getX509Cert">
217      <soap:operation soapAction="getX509Cert"/>
218      <wsdl:input>
219        <soap:body use="literal"/>
220      </wsdl:input>
221      <wsdl:output>
222        <soap:body use="literal"/>
223      </wsdl:output>
224    </wsdl:operation>   
225 
226  </wsdl:binding>
227
228  <wsdl:service name="SessionMgrService">
229    <wsdl:documentation>NERC Data Grid Session Manager web service</wsdl:documentation>
230    <wsdl:port name="SessionMgr" binding="tns:SessionMgrBinding">
231      <soap:address location="http://localhost:5000"/>
232    </wsdl:port>
233  </wsdl:service>
234</wsdl:definitions>
Note: See TracBrowser for help on using the repository browser.