PSICQUIC: psiquic0.08.wsdl

File psiquic0.08.wsdl, 13.8 KB (added by lukasz, 11 years ago)

data type choice added

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
4             xmlns:apachesoap="http://xml.apache.org/xml-soap"
5             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
6             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
7
8             xmlns:psq="http://psi.hupo.org/mi/psicquic"
9             xmlns:mif="http://psi.hupo.org/mi/mif"
10
11             targetNamespace="http://psi.hupo.org/mi/psicquic">
12
13    <types>
14
15        <xsd:schema elementFormDefault="qualified"
16                    targetNamespace="http://psi.hupo.org/mi/psicquic"
17                    xmlns="http://www.w3.org/2001/XMLSchema"
18                    xmlns:mif="http://psi.hupo.org/mi/mif">
19
20            <xsd:import namespace="http://psi.hupo.org/mi/mif"
21                        schemaLocation="MIF254.xsd"/>
22
23            <!-- types -->
24
25            <xsd:complexType name="dbRefType">
26                <xsd:sequence>
27                    <xsd:element name="db" type="xsd:string" default=""/>
28                    <xsd:element name="ac" type="xsd:string" default=""/>
29                </xsd:sequence>
30            </xsd:complexType>
31
32            <xsd:complexType name="dbRefListType">
33              <xsd:sequence>
34                <xsd:element name="dbRef" type="psq:dbRefType" minOccurs="1" maxOccurs="unbounded"/>
35              </xsd:sequence>
36            </xsd:complexType>
37
38            <xsd:complexType name="queryType">
39              <xsd:sequence>
40                <xsd:element name="queryFormat" type="xsd:string"/>
41                <xsd:element name="queryString" type="xsd:string"/>
42              </xsd:sequence>
43            </xsd:complexType>
44             
45            <xsd:complexType name="resultInfoType">
46              <xsd:sequence>
47                <xsd:element name="firstResult" type="xsd:int"/>
48                <xsd:element name="maxResult"   type="xsd:int"/>
49                <xsd:element name="blockSize"   type="xsd:int"/>
50                <xsd:element name="expirationDate" type="xsd:dateTime"/>
51              </xsd:sequence>
52            </xsd:complexType>
53         
54            <!-- elements -->
55 
56              <xsd:complexType name="dbRefRequestType">
57                <xsd:sequence>
58                  <xsd:element name="dbRef" type="psq:dbRefType"/>
59                  <xsd:element name="resultType" type="xsd:string"/>
60                </xsd:sequence>
61              </xsd:complexType>
62
63            <xsd:complexType name="dbRefListRequestType">
64              <xsd:sequence>
65                <xsd:element name="dbRefList" type="psq:dbRefType"/>
66                <xsd:element name="resultType" type="xsd:string"/>
67              </xsd:sequence>
68            </xsd:complexType>
69
70          <xsd:complexType name="queryRequestType">
71            <xsd:sequence>
72              <xsd:element name="query" type="psq:queryType"/>
73              <xsd:element name="resultType" type="xsd:string"/>
74            </xsd:sequence>
75          </xsd:complexType>
76
77          <xsd:complexType name="versionResponseType">
78            <xsd:sequence>
79              <xsd:element name="version" type="xsd:string"/>
80              <xsd:element name="supportedDataTypeList">
81                <xsd:complexType>
82                  <xsd:sequence>
83                    <xsd:element name="dataType" type="xd:string"/>
84                  </xsd:sequence>
85                </xsd:complexType>
86              </xsd:element>
87            </xsd:sequence>
88          </xsd:complexType>
89
90          <xsd:element name="getByInteractorRequest" type="psq:dbRefRequestType"/>
91          <xsd:element name="getByInteractionRequest" type="psq:dbRefRequestType"/>
92          <xsd:element name="getByInteractorListRequest" type="psq:dbRefListRequestType"/>
93          <xsd:element name="getByInteractionListRequest" type="psq:dbRefListType"/>
94          <xsd:element name="getBetweenListRequest" type="psq:dbRefListRequestType"/>
95          <xsd:element name="getByQueryStringRequest" type="psq:queryRequestType"/>
96       
97          <xsd:element name="versionResponse" type="psq:versionResponseType"/>
98
99            <xsd:element name="queryResponse">
100              <xsd:complexType>
101                <xsd:sequence>
102                  <xsd:element name="resultSet">
103                    <xsd:complexType>
104                      <xsd:sequence>
105                        <xsd:element name="entrySet"   type="mif:entrySetType"  minOccurs="0" maxOccurs="1"/>
106                        <xsd:element name="mitab"      type="psq:mitabType"     minOccurs="0" maxOccurs="1"/>
107                      </xsd:sequence>
108                    </xsd:complexType>
109                  </xsd:element>
110                  <xsd:element name="resultInfo" type="psq:resultInfoType"/>
111                </xsd:sequence>
112              </xsd:complexType>
113            </xsd:element>
114           
115            <!-- faults -->
116
117            <xsd:element name="psicquicFault">
118              <xsd:complexType>
119                <xsd:sequence>
120                  <xsd:element name="code" type="xsd:int"/>
121                  <xsd:element name="message" type="xsd:string"/>
122                </xsd:sequence>
123              </xsd:complexType>
124            </xsd:element>
125
126        </xsd:schema>
127
128    </types>
129
130    <!-- MESSAGES -->
131
132    <message name="getByInteractorRequestMessage">
133        <part name="dbRef" element="psq:getByInteractorRequest"/>
134    </message>
135
136    <message name="getByInteractorResponseMessage">
137        <part name="queryResponse" element="psq:psicquicQueryReponse"/>
138    </message>
139
140    <message name="getByInteractionRequestMessage">
141        <part name="dbRef" element="psq:getByInteractionRequest"/>
142    </message>
143
144    <message name="getByInteractionResponseMessage">
145      <part name="queryResponse" element="psq:psicquicQueryReponse"/>
146    </message>
147
148    <message name="getByInteractorListRequestMessage">
149        <part name="dbRefList" element="psq:getByInteractorListRequest"/>
150    </message>
151
152    <message name="getByInteractorListResponseMessage">
153      <part name="queryResponse" element="psq:psicquicQueryReponse"/>
154    </message>
155
156    <message name="getBetweenListRequestMessage">
157      <part name="dbRefList" element="psq:getBetweenListRequest"/>
158
159    </message>
160
161    <message name="getBetweenListResponseMessage">
162      <part name="queryResponse" element="psq:psicquicQueryReponse"/>
163    </message>
164
165    <message name="getByInteractionListRequestMessage">
166        <part name="dbRefList" element="psq:getByInteractionListRequest"/>
167    </message>
168
169    <message name="getByInteractionListResponseMessage">
170      <part name="queryResponse" element="psq:psicquicQueryReponse"/>
171    </message>
172
173    <message name="getByQueryRequestMessage">
174        <part name="query" element="psq:getByQueryRequest"/>
175    </message>
176
177    <message name="getByQueryResponseMessage">
178      <part name="queryResponse" element="psq:psicquicQueryReponse"/>
179    </message>
180
181    <message name="getVersionRequestMessage">
182    </message>
183
184    <message name="getVersionResponseMessage">
185        <part name="output" element="psq:getVersionResponse"/>
186    </message>
187
188    <message name="psicquicServiceException">
189        <part name="fault" element="psq:psicquicFault"/>
190    </message>
191
192    <!-- Port type (operations) -->
193
194    <portType name="psicquicPortType">
195
196        <!-- get interactions by interactor ref -->
197
198        <operation name="getByInteractor" parameterOrder="dbRef">
199
200            <input name="getByInteractorRequestMessage" message="psq:getByInteractorRequestMessage"/>
201            <output name="getByInteractorResponseMessage" message="psq:getByInteractorResponseMessage"/>
202            <fault name="getByInteractorException" message="psq:psicquicServiceException"/>
203        </operation>
204
205        <!-- get interactions by interaction ref -->
206
207        <operation name="getByInteraction" parameterOrder="dbRef">
208            <input name="getByInteractionRequestMessage" message="psq:getByInteractionRequestMessage"/>
209            <output name="getbyInteractionResponseMessage" message="psq:getByInteractionResponseMessage"/>
210
211            <fault name="getByInteractionException" message="psq:psicquicServiceException"/>
212        </operation>
213
214        <!-- get interactions by interactor ref list -->
215
216        <operation name="getByInteractorList" parameterOrder="dbRefList">
217            <input name="getByInteractorListRequestMessage" message="psq:getByInteractorListRequestMessage"/>
218            <output name="getByInteractorListResponseMessage" message="psq:getByInteractorListResponseMessage"/>
219            <fault name="getByInteractorListException" message="psq:psicquicServiceException"/>
220        </operation>
221
222        <!-- get interactions between interactor ref list -->
223
224        <operation name="getBetweenList" parameterOrder="dbRefList">
225            <input name="getBetweenListRequestMessage" message="psq:getBetweenListRequestMessage"/>
226            <output name="getBetweenListResponseMessage" message="psq:getBetweenListResponseMessage"/>
227            <fault name="getBetweenListException" message="psq:psicquicServiceException"/>
228        </operation>
229
230        <!-- get interactions by interaction ref list -->
231
232        <operation name="getByInteractionList" parameterOrder="dbRefList">
233            <input name="getByInteractionListRequestMessage" message="psq:getByInteractionListRequestMessage"/>
234            <output name="getByInteractionListResponseMessage" message="psq:getByInteractionListResponseMessage"/>
235            <fault name="getByInteractionListException" message="psq:psicquicServiceException"/>
236        </operation>
237
238        <!-- get interactions by query sring -->
239
240        <operation name="getByQuery" parameterOrder="query">
241
242            <input name="getByQueryRequestMessage" message="psq:getByQueryRequestMessage"/>
243            <output name="getByQueryResponseMessage" message="psq:getByQueryResponseMessage"/>
244            <fault name="getByQueryException" message="psq:psicquicServiceException"/>
245        </operation>
246
247        <!-- get version -->
248
249        <operation name="getVersion">
250            <input message="psq:getVersionRequestMessage"/>
251            <output name="getVersionResponseMessage" message="psq:getVersionResponseMessage"/>
252
253            <fault name="getVersionException" message="psq:psicquicServiceException"/>
254        </operation>
255
256    </portType>
257
258    <!-- BINDING (bind operations) -->
259
260    <binding name="psicquicSoapBinding" type="psq:psicquicPortType">
261        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
262
263        <operation name="getByInteractor">
264
265            <soap:operation soapAction="getByInteractor"/>
266            <input>
267                <soap:body use="literal"/>
268            </input>
269            <output>
270                <soap:body use="literal"/>
271            </output>
272            <fault name="getByInteractorException">
273                <soap:fault name="getByInteractorException" use="literal"/>
274
275            </fault>
276        </operation>
277
278        <operation name="getByInteraction">
279            <soap:operation soapAction="getByInteraction"/>
280            <input>
281                <soap:body use="literal"/>
282            </input>
283            <output>
284
285                <soap:body use="literal"/>
286            </output>
287            <fault name="getByInteractionException">
288                <soap:fault name="getByInteractionException" use="literal"/>
289            </fault>
290        </operation>
291
292        <operation name="getByInteractorList">
293            <soap:operation soapAction="getByInteractorList"/>
294
295            <input>
296                <soap:body use="literal"/>
297            </input>
298            <output>
299                <soap:body use="literal"/>
300            </output>
301            <fault name="getByInteractorListException">
302                <soap:fault name="getByInteractorListException" use="literal"/>
303            </fault>
304
305        </operation>
306
307        <operation name="getBetweenList">
308            <soap:operation soapAction="getBetweenList"/>
309            <input>
310                <soap:body use="literal"/>
311            </input>
312            <output>
313                <soap:body use="literal"/>
314
315            </output>
316            <fault name="getBetweenListException">
317                <soap:fault name="getBetweenListException" use="literal"/>
318            </fault>
319        </operation>
320
321        <operation name="getByInteractionList">
322            <soap:operation soapAction="getByInteractionList"/>
323            <input>
324
325                <soap:body use="literal"/>
326            </input>
327            <output>
328                <soap:body use="literal"/>
329            </output>
330            <fault name="getByInteractionListException">
331                <soap:fault name="getByInteractionListException" use="literal"/>
332            </fault>
333        </operation>
334
335        <operation name="getByQuery">
336            <soap:operation soapAction="getByQuery"/>
337            <input>
338                <soap:body use="literal"/>
339            </input>
340            <output>
341                <soap:body use="literal"/>
342            </output>
343
344            <fault name="getByQueryException">
345                <soap:fault name="getByQueryException" use="literal"/>
346            </fault>
347        </operation>
348
349        <operation name="getVersion">
350            <soap:operation soapAction=""/>
351            <input>
352                <soap:body use="literal"/>
353
354            </input>
355            <output>
356                <soap:body use="literal"/>
357            </output>
358        </operation>
359
360    </binding>
361
362    <!-- SERVICE -->
363    <service name="psicquic">
364        <port name="psicquic" binding="psq:psicquicSoapBinding">
365            <soap:address location="http://psi.hupo.org/mi/services/psicquic"/>
366        </port>
367    </service>
368</definitions>