1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Matt Pritchard (NERC Earth Observation Data Centre) -->
|
---|
3 | <wsdl:definitions xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:tns1="urn:DiscoveryServiceAPI" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:DiscoveryServiceAPI">
|
---|
4 | <wsdl:types>
|
---|
5 | <xsd:schema targetNamespace="urn:DiscoveryServiceAPI" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:DiscoveryServiceAPI">
|
---|
6 | <!-- Request types -->
|
---|
7 | <xs:element name="doFullTextSearch" type="tns:FullTextSearchType"/>
|
---|
8 | <xs:element name="doPresent" type="tns:PresentType"/>
|
---|
9 | <!-- Response types -->
|
---|
10 | <xs:element name="doFullTextSearchReturn" type="tns:SearchReturnType"/>
|
---|
11 | <xs:element name="doPresentReturn" type="tns:PresentReturnType"/>
|
---|
12 | <!-- Define globals -->
|
---|
13 | <xs:complexType name="FullTextSearchType">
|
---|
14 | <xs:sequence>
|
---|
15 | <xs:element name="term" type="xs:string"/>
|
---|
16 | <xs:element name="start" type="xs:int" minOccurs="0"/>
|
---|
17 | <xs:element name="howMany" type="xs:int" minOccurs="0"/>
|
---|
18 | <xs:element name="orderBy" type="tns:orderByType" minOccurs="0"/>
|
---|
19 | </xs:sequence>
|
---|
20 | </xs:complexType>
|
---|
21 | <xs:complexType name="PresentType">
|
---|
22 | <xs:sequence>
|
---|
23 | <xs:element name="document" type="xs:string"/>
|
---|
24 | </xs:sequence>
|
---|
25 | </xs:complexType>
|
---|
26 | <xs:complexType name="PresentReturnType">
|
---|
27 | <xs:sequence>
|
---|
28 | <xs:element name="document" type="xs:anyType"/>
|
---|
29 | </xs:sequence>
|
---|
30 | </xs:complexType>
|
---|
31 | <xs:complexType name="SearchReturnType">
|
---|
32 | <xs:sequence>
|
---|
33 | <xs:element name="status" type="xs:boolean"/>
|
---|
34 | <xs:element name="statusMessage" type="xs:string"/>
|
---|
35 | <xs:element name="resultId" type="xs:int"/>
|
---|
36 | <xs:element name="hits" type="xs:int"/>
|
---|
37 | <xs:element name="documents" type="tns:DocumentsType"/>
|
---|
38 | </xs:sequence>
|
---|
39 | </xs:complexType>
|
---|
40 | <xs:complexType name="DocumentsType">
|
---|
41 | <xs:sequence>
|
---|
42 | <xs:element name="document" type="xs:string" maxOccurs="unbounded"/>
|
---|
43 | </xs:sequence>
|
---|
44 | </xs:complexType>
|
---|
45 | <xs:simpleType name="orderByType">
|
---|
46 | <xs:restriction base="xs:string">
|
---|
47 | <xs:enumeration value="date"/>
|
---|
48 | <xs:enumeration value="dataCentre"/>
|
---|
49 | </xs:restriction>
|
---|
50 | </xs:simpleType>
|
---|
51 | </xsd:schema>
|
---|
52 | </wsdl:types>
|
---|
53 | <wsdl:message name="doFullTextSearchRequest">
|
---|
54 | <wsdl:part name="part" element="tns1:doFullTextSearch"/>
|
---|
55 | </wsdl:message>
|
---|
56 | <wsdl:message name="doFullTextSearchResponse">
|
---|
57 | <wsdl:part name="part" element="tns1:doFullTextSearchReturn"/>
|
---|
58 | </wsdl:message>
|
---|
59 | <wsdl:message name="doPresentRequest">
|
---|
60 | <wsdl:part name="part" element="tns1:doPresent"/>
|
---|
61 | </wsdl:message>
|
---|
62 | <wsdl:message name="doPresentResponse">
|
---|
63 | <wsdl:part name="part" element="tns1:doPresentReturn"/>
|
---|
64 | </wsdl:message>
|
---|
65 | <wsdl:portType name="Discovery">
|
---|
66 | <wsdl:operation name="doFullTextSearch">
|
---|
67 | <wsdl:input name="doFullTextSearchRequest" message="tns1:doFullTextSearchRequest"/>
|
---|
68 | <wsdl:output name="doFullTextSearchResponse" message="tns1:doFullTextSearchResponse"/>
|
---|
69 | </wsdl:operation>
|
---|
70 | <wsdl:operation name="doPresent">
|
---|
71 | <wsdl:input name="doPresentRequest" message="tns1:doPresentRequest"/>
|
---|
72 | <wsdl:output name="doPresentResponse" message="tns1:doPresentResponse"/>
|
---|
73 | </wsdl:operation>
|
---|
74 | </wsdl:portType>
|
---|
75 | <wsdl:binding name="DiscoverySoapBinding" type="tns1:Discovery">
|
---|
76 | <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
---|
77 | <wsdl:operation name="doFullTextSearch">
|
---|
78 | <wsdlsoap:operation/>
|
---|
79 | <wsdl:input>
|
---|
80 | <wsdlsoap:body use="literal"/>
|
---|
81 | </wsdl:input>
|
---|
82 | <wsdl:output>
|
---|
83 | <wsdlsoap:body use="literal"/>
|
---|
84 | </wsdl:output>
|
---|
85 | </wsdl:operation>
|
---|
86 | <wsdl:operation name="doPresent">
|
---|
87 | <wsdlsoap:operation/>
|
---|
88 | <wsdl:input>
|
---|
89 | <wsdlsoap:body use="literal"/>
|
---|
90 | </wsdl:input>
|
---|
91 | <wsdl:output>
|
---|
92 | <wsdlsoap:body use="literal"/>
|
---|
93 | </wsdl:output>
|
---|
94 | </wsdl:operation>
|
---|
95 | </wsdl:binding>
|
---|
96 | <wsdl:service name="DiscoveryService">
|
---|
97 | <wsdl:port name="Discovery" binding="tns1:DiscoverySoapBinding">
|
---|
98 | <wsdlsoap:address location="http://localhost:8080/axis2/services/DiscoveryService"/>
|
---|
99 | </wsdl:port>
|
---|
100 | </wsdl:service>
|
---|
101 | </wsdl:definitions>
|
---|