-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUserManagement.wsdl
95 lines (78 loc) · 4.28 KB
/
UserManagement.wsdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<wsdl2:description xmlns:wsdl2="http://www.w3.org/ns/wsdl"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc"
xmlns:wsoap="http://www.w3.org/ns/wsdl/soap"
xmlns:tns="http://usermanagement.t3.sos.fi.upm.es"
xmlns:wsdlx="http://www.w3.org/ns/wsdl-extensions"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:whttp="http://www.w3.org/ns/wsdl/http"
targetNamespace="http://usermanagement.t3.sos.fi.upm.es">
<wsdl2:types>
<xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://usermanagement.t3.sos.fi.upm.es">
<xs:element name="username" type="xs:string" />
<xs:element name="password" type="xs:string" />
<xs:element name="user">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" name="name" nillable="false" type="xs:string" />
<xs:element minOccurs="1" name="pwd" nillable="false" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="passwordPair">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" name="oldpwd" nillable="false" type="xs:string" />
<xs:element minOccurs="1" name="newpwd" nillable="false" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="response" minOccurs="1" nillable="false" type="xs:boolean" />
</xs:schema>
</wsdl2:types>
<wsdl2:interface name="userManagementInterface">
<!-- the RPC style makes easier to map operations to single Java (or C#
or whatever) methods, only applicable to in-out or in-only MEPs -->
<wsdl2:operation name="login"
style="http://www.w3.org/ns/wsdl/style/rpc" pattern="http://www.w3.org/ns/wsdl/in-out">
<wsdl2:input element="tns:user" wsaw:Action="urn:login" />
<wsdl2:output element="tns:response" wsaw:Action="urn:loginResponse" />
</wsdl2:operation>
<wsdl2:operation name="logout"
pattern="http://www.w3.org/ns/wsdl/robust-in-only">
<wsdl2:input element="#none" wsaw:Action="urn:logout" />
</wsdl2:operation>
<wsdl2:operation name="changePassword"
style="http://www.w3.org/ns/wsdl/style/rpc" pattern="http://www.w3.org/ns/wsdl/in-out">
<wsdl2:input element="tns:passwordPair" wsaw:Action="urn:changePassword" />
<wsdl2:output element="tns:response" wsaw:Action="urn:changePasswordResponse" />
</wsdl2:operation>
<wsdl2:operation name="addUser"
style="http://www.w3.org/ns/wsdl/style/rpc" pattern="http://www.w3.org/ns/wsdl/in-out">
<wsdl2:input element="tns:user" wsaw:Action="urn:addUser" />
<wsdl2:output element="tns:response" wsaw:Action="urn:addUserResponse" />
</wsdl2:operation>
<wsdl2:operation name="removeUser"
style="http://www.w3.org/ns/wsdl/style/rpc" pattern="http://www.w3.org/ns/wsdl/in-out">
<wsdl2:input element="tns:username" wsaw:Action="urn:removeUser" />
<wsdl2:output element="tns:response" wsaw:Action="urn:removeUserResponse" />
</wsdl2:operation>
</wsdl2:interface>
<!-- Binding with SOAP (1.2, which is a W3C recommendation) -->
<wsdl2:binding name="userManagementSOAP12Binding"
interface="tns:userManagementInterface" type="http://www.w3.org/ns/wsdl/soap" wsoap:version="1.2">
<!-- With whttp:mep we specify how to map the in-out WSDL MEP to a SOAP MEP (request-response in this case) -->
<!-- The whttp:action will be added as a header in the HTTP message -->
<wsdl2:operation ref="tns:login" wsoap:action="urn:login"/>
<wsdl2:operation ref="tns:logout" wsoap:action="urn:logout"/>
<wsdl2:operation ref="tns:changePassword" wsoap:action="urn:changePassword"/>
<wsdl2:operation ref="tns:addUser" wsoap:action="urn:addUser"/>
<wsdl2:operation ref="tns:removeUser" wsoap:action="urn:removeUser"/>
</wsdl2:binding>
<wsdl2:service name="UserManagementWS" interface="tns:userManagementInterface">
<wsdl2:endpoint name="userManagementEndPoint" binding="tns:userManagementSOAP12Binding" address="http://localhost:8080/axis2/services/UserManagementWS"/>
</wsdl2:service>
</wsdl2:description>