File: buildPortalWSDL

package info (click to toggle)
lemonldap-ng 0.9.4.1-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,840 kB
  • ctags: 1,187
  • sloc: perl: 10,032; makefile: 478; xml: 93; sh: 73; sql: 69
file content (149 lines) | stat: -rw-r--r-- 6,821 bytes parent folder | download
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/usr/bin/perl

use Lemonldap::NG::Common::BuildWSDL;

print Lemonldap::NG::Common::BuildWSDL->new->buildWSDL(<<EOT);
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:Lemonldap/NG/Common/CGI/SOAPService" xmlns:impl="urn:Lemonldap/NG/Common/CGI/SOAPService" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns1="urn:Lemonldap/NG/Common/CGI/SOAPService">
 <wsdl:types>
  <schema targetNamespace="urn:Lemonldap/NG/Common/CGI/SOAPService" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
   <complexType name="CookiesSequence">
    <sequence>
     __XMLCOOKIELIST__
    </sequence>
   </complexType>
   <complexType name="AttributesSequence">
    <sequence>
     __ATTRLIST__
    </sequence>
   </complexType>
   <complexType name="GetCookieResponse">
    <sequence>
     <element name="errorCode" type="xsd:int"></element>
     <element name="cookies" type="tns1:CookiesSequence"></element>
    </sequence>
   </complexType>
   <complexType name="GetAttributesResponse">
    <sequence>
     <element name="errorCode" type="xsd:int"></element>
     <element name="attributes" type="tns1:AttributesSequence"></element>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>


 <wsdl:service name="authenticationHandlerService">
  <wsdl:port binding="impl:authenticationSoapBinding" name="authentication">
   <wsdlsoap:address location="__PORTAL__" />
  </wsdl:port>
 </wsdl:service>
 <wsdl:binding name="authenticationSoapBinding" type="impl:authenticationHandler">
  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
  <wsdl:operation name="error">
   <wsdlsoap:operation soapAction="" />
   <wsdl:input name="errorRequest">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Lemonldap/NG/Common/CGI/SOAPService" use="encoded" />
   </wsdl:input>
   <wsdl:output name="errorResponse">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Lemonldap/NG/Common/CGI/SOAPService" use="encoded" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="getCookies">
   <wsdlsoap:operation soapAction="" />
   <wsdl:input name="getCookiesRequest">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Lemonldap/NG/Common/CGI/SOAPService" use="encoded" />
   </wsdl:input>
   <wsdl:output name="getCookiesResponse">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Lemonldap/NG/Common/CGI/SOAPService" use="encoded" />
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>
 <wsdl:portType name="authenticationHandler">
  <wsdl:operation name="error" parameterOrder="lang code">
   <wsdl:input message="impl:errorRequest" name="errorRequest" />
   <wsdl:output message="impl:errorResponse" name="errorResponse" />
  </wsdl:operation>
  <wsdl:operation name="getCookies" parameterOrder="user password">
   <wsdl:input message="impl:getCookiesRequest" name="getCookiesRequest" />
   <wsdl:output message="impl:getCookiesResponse" name="getCookiesResponse" />
  </wsdl:operation>
 </wsdl:portType>
 <wsdl:message name="errorRequest">
  <wsdl:part name="lang" type="xsd:string" />
  <wsdl:part name="code" type="xsd:int" />
 </wsdl:message>
  <wsdl:message name="errorResponse">
  <wsdl:part name="result" type="xsd:string" />
 </wsdl:message>
 <wsdl:message name="getCookiesRequest">
  <wsdl:part name="user" type="xsd:string" />
  <wsdl:part name="password" type="xsd:string" />
 </wsdl:message>
 <wsdl:message name="getCookiesResponse">
  <wsdl:part name="session" type="tns1:GetCookieResponse" />
 </wsdl:message>

 <wsdl:service name="notificationPostHandlerService">
  <wsdl:port binding="impl:notificationPostSoapBinding" name="notificationPost">
   <wsdlsoap:address location="__PORTAL__/notification" />
  </wsdl:port>
 </wsdl:service>
 <wsdl:binding name="notificationPostSoapBinding" type="impl:notificationPostHandler">
  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
  <wsdl:operation name="newNotification">
   <wsdlsoap:operation soapAction="" />
   <wsdl:input name="newNotificationRequest">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Lemonldap/NG/Common/CGI/SOAPService" use="encoded" />
   </wsdl:input>
   <wsdl:output name="newNotificationResponse">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Lemonldap/NG/Common/CGI/SOAPService" use="encoded" />
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>
 <wsdl:portType name="notificationPostHandler">
  <wsdl:operation name="newNotification" parameterOrder="notification">
   <wsdl:input message="impl:newNotificationRequest" name="newNotificationRequest" />
   <wsdl:output message="impl:newNotificationResponse" name="newNotificationResponse" />
  </wsdl:operation>
 </wsdl:portType>
 <wsdl:message name="newNotificationRequest">
  <wsdl:part name="notification" type="xsd:string" />
 </wsdl:message>
  <wsdl:message name="newNotificationResponse">
  <wsdl:part name="result" type="xsd:string" />
 </wsdl:message>

 <wsdl:service name="sessionsHandlerService">
  <wsdl:port binding="impl:sessionsSoapBinding" name="sessionsHandler">
   <wsdlsoap:address location="__PORTAL__/sessions" />
  </wsdl:port>
 </wsdl:service>
 <wsdl:binding name="sessionsSoapBinding" type="impl:sessionsHandler">
  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
  <wsdl:operation name="getAttributes">
   <wsdlsoap:operation soapAction="" />
   <wsdl:input name="getAttributesRequest">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Lemonldap/NG/Common/CGI/SOAPService" use="encoded" />
   </wsdl:input>
   <wsdl:output name="getAttributesResponse">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Lemonldap/NG/Common/CGI/SOAPService" use="encoded" />
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>
 <wsdl:portType name="sessionsHandler">
  <wsdl:operation name="getAttributes" parameterOrder="id">
   <wsdl:input message="impl:getAttributesRequest" name="getAttributesRequest" />
   <wsdl:output message="impl:getAttributesResponse" name="getAttributesResponse" />
  </wsdl:operation>
 </wsdl:portType>
 <wsdl:message name="getAttributesRequest">
  <wsdl:part name="id" type="xsd:string" />
 </wsdl:message>
  <wsdl:message name="getAttributesResponse">
  <wsdl:part name="session" type="tns1:GetAttributesResponse" />
 </wsdl:message>
</wsdl:definitions>
EOT