Chris@17
|
1 <?xml version="1.0"?>
|
Chris@17
|
2
|
Chris@17
|
3 <!-- WSDL description of the Google Web APIs.
|
Chris@17
|
4 The Google Web APIs are in beta release. All interfaces are subject to
|
Chris@17
|
5 change as we refine and extend our APIs. Please see the terms of use
|
Chris@17
|
6 for more information. -->
|
Chris@17
|
7
|
Chris@17
|
8 <!-- Revision 2002-08-16 -->
|
Chris@17
|
9
|
Chris@17
|
10 <definitions name="GoogleSearch"
|
Chris@17
|
11 targetNamespace="urn:GoogleSearch"
|
Chris@17
|
12 xmlns:typens="urn:GoogleSearch"
|
Chris@17
|
13 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
Chris@17
|
14 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
Chris@17
|
15 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
|
Chris@17
|
16 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
Chris@17
|
17 xmlns="http://schemas.xmlsoap.org/wsdl/">
|
Chris@17
|
18
|
Chris@17
|
19 <!-- Types for search - result elements, directory categories -->
|
Chris@17
|
20
|
Chris@17
|
21 <types>
|
Chris@17
|
22 <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
|
Chris@17
|
23 targetNamespace="urn:GoogleSearch">
|
Chris@17
|
24
|
Chris@17
|
25 <xsd:complexType name="GoogleSearchResult">
|
Chris@17
|
26 <xsd:all>
|
Chris@17
|
27 <xsd:element name="documentFiltering" type="xsd:boolean"/>
|
Chris@17
|
28 <xsd:element name="searchComments" type="xsd:string"/>
|
Chris@17
|
29 <xsd:element name="estimatedTotalResultsCount" type="xsd:int"/>
|
Chris@17
|
30 <xsd:element name="estimateIsExact" type="xsd:boolean"/>
|
Chris@17
|
31 <xsd:element name="resultElements" type="typens:ResultElementArray"/>
|
Chris@17
|
32 <xsd:element name="searchQuery" type="xsd:string"/>
|
Chris@17
|
33 <xsd:element name="startIndex" type="xsd:int"/>
|
Chris@17
|
34 <xsd:element name="endIndex" type="xsd:int"/>
|
Chris@17
|
35 <xsd:element name="searchTips" type="xsd:string"/>
|
Chris@17
|
36 <xsd:element name="directoryCategories" type="typens:DirectoryCategoryArray"/>
|
Chris@17
|
37 <xsd:element name="searchTime" type="xsd:double"/>
|
Chris@17
|
38 </xsd:all>
|
Chris@17
|
39 </xsd:complexType>
|
Chris@17
|
40
|
Chris@17
|
41 <xsd:complexType name="ResultElement">
|
Chris@17
|
42 <xsd:all>
|
Chris@17
|
43 <xsd:element name="summary" type="xsd:string"/>
|
Chris@17
|
44 <xsd:element name="URL" type="xsd:string"/>
|
Chris@17
|
45 <xsd:element name="snippet" type="xsd:string"/>
|
Chris@17
|
46 <xsd:element name="title" type="xsd:string"/>
|
Chris@17
|
47 <xsd:element name="cachedSize" type="xsd:string"/>
|
Chris@17
|
48 <xsd:element name="relatedInformationPresent" type="xsd:boolean"/>
|
Chris@17
|
49 <xsd:element name="hostName" type="xsd:string"/>
|
Chris@17
|
50 <xsd:element name="directoryCategory" type="typens:DirectoryCategory"/>
|
Chris@17
|
51 <xsd:element name="directoryTitle" type="xsd:string"/>
|
Chris@17
|
52 </xsd:all>
|
Chris@17
|
53 </xsd:complexType>
|
Chris@17
|
54
|
Chris@17
|
55 <xsd:complexType name="ResultElementArray">
|
Chris@17
|
56 <xsd:complexContent>
|
Chris@17
|
57 <xsd:restriction base="soapenc:Array">
|
Chris@17
|
58 <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/>
|
Chris@17
|
59 </xsd:restriction>
|
Chris@17
|
60 </xsd:complexContent>
|
Chris@17
|
61 </xsd:complexType>
|
Chris@17
|
62
|
Chris@17
|
63 <xsd:complexType name="DirectoryCategoryArray">
|
Chris@17
|
64 <xsd:complexContent>
|
Chris@17
|
65 <xsd:restriction base="soapenc:Array">
|
Chris@17
|
66 <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:DirectoryCategory[]"/>
|
Chris@17
|
67 </xsd:restriction>
|
Chris@17
|
68 </xsd:complexContent>
|
Chris@17
|
69 </xsd:complexType>
|
Chris@17
|
70
|
Chris@17
|
71 <xsd:complexType name="DirectoryCategory">
|
Chris@17
|
72 <xsd:all>
|
Chris@17
|
73 <xsd:element name="fullViewableName" type="xsd:string"/>
|
Chris@17
|
74 <xsd:element name="specialEncoding" type="xsd:string"/>
|
Chris@17
|
75 </xsd:all>
|
Chris@17
|
76 </xsd:complexType>
|
Chris@17
|
77
|
Chris@17
|
78 </xsd:schema>
|
Chris@17
|
79 </types>
|
Chris@17
|
80
|
Chris@17
|
81 <!-- Messages for Google Web APIs - cached page, search, spelling. -->
|
Chris@17
|
82
|
Chris@17
|
83 <message name="doGetCachedPage">
|
Chris@17
|
84 <part name="key" type="xsd:string"/>
|
Chris@17
|
85 <part name="url" type="xsd:string"/>
|
Chris@17
|
86 </message>
|
Chris@17
|
87
|
Chris@17
|
88 <message name="doGetCachedPageResponse">
|
Chris@17
|
89 <part name="return" type="xsd:base64Binary"/>
|
Chris@17
|
90 </message>
|
Chris@17
|
91
|
Chris@17
|
92 <message name="doSpellingSuggestion">
|
Chris@17
|
93 <part name="key" type="xsd:string"/>
|
Chris@17
|
94 <part name="phrase" type="xsd:string"/>
|
Chris@17
|
95 </message>
|
Chris@17
|
96
|
Chris@17
|
97 <message name="doSpellingSuggestionResponse">
|
Chris@17
|
98 <part name="return" type="xsd:string"/>
|
Chris@17
|
99 </message>
|
Chris@17
|
100
|
Chris@17
|
101 <!-- note, ie and oe are ignored by server; all traffic is UTF-8. -->
|
Chris@17
|
102
|
Chris@17
|
103 <message name="doGoogleSearch">
|
Chris@17
|
104 <part name="key" type="xsd:string"/>
|
Chris@17
|
105 <part name="q" type="xsd:string"/>
|
Chris@17
|
106 <part name="start" type="xsd:int"/>
|
Chris@17
|
107 <part name="maxResults" type="xsd:int"/>
|
Chris@17
|
108 <part name="filter" type="xsd:boolean"/>
|
Chris@17
|
109 <part name="restrict" type="xsd:string"/>
|
Chris@17
|
110 <part name="safeSearch" type="xsd:boolean"/>
|
Chris@17
|
111 <part name="lr" type="xsd:string"/>
|
Chris@17
|
112 <part name="ie" type="xsd:string"/>
|
Chris@17
|
113 <part name="oe" type="xsd:string"/>
|
Chris@17
|
114 </message>
|
Chris@17
|
115
|
Chris@17
|
116 <message name="doGoogleSearchResponse">
|
Chris@17
|
117 <part name="return" type="typens:GoogleSearchResult"/>
|
Chris@17
|
118 </message>
|
Chris@17
|
119
|
Chris@17
|
120 <!-- Port for Google Web APIs, "GoogleSearch" -->
|
Chris@17
|
121
|
Chris@17
|
122 <portType name="GoogleSearchPort">
|
Chris@17
|
123
|
Chris@17
|
124 <operation name="doGetCachedPage">
|
Chris@17
|
125 <input message="typens:doGetCachedPage"/>
|
Chris@17
|
126 <output message="typens:doGetCachedPageResponse"/>
|
Chris@17
|
127 </operation>
|
Chris@17
|
128
|
Chris@17
|
129 <operation name="doSpellingSuggestion">
|
Chris@17
|
130 <input message="typens:doSpellingSuggestion"/>
|
Chris@17
|
131 <output message="typens:doSpellingSuggestionResponse"/>
|
Chris@17
|
132 </operation>
|
Chris@17
|
133
|
Chris@17
|
134 <operation name="doGoogleSearch">
|
Chris@17
|
135 <input message="typens:doGoogleSearch"/>
|
Chris@17
|
136 <output message="typens:doGoogleSearchResponse"/>
|
Chris@17
|
137 </operation>
|
Chris@17
|
138
|
Chris@17
|
139 </portType>
|
Chris@17
|
140
|
Chris@17
|
141
|
Chris@17
|
142 <!-- Binding for Google Web APIs - RPC, SOAP over HTTP -->
|
Chris@17
|
143
|
Chris@17
|
144 <binding name="GoogleSearchBinding" type="typens:GoogleSearchPort">
|
Chris@17
|
145 <soap:binding style="rpc"
|
Chris@17
|
146 transport="http://schemas.xmlsoap.org/soap/http"/>
|
Chris@17
|
147
|
Chris@17
|
148 <operation name="doGetCachedPage">
|
Chris@17
|
149 <soap:operation soapAction="urn:GoogleSearchAction"/>
|
Chris@17
|
150 <input>
|
Chris@17
|
151 <soap:body use="encoded"
|
Chris@17
|
152 namespace="urn:GoogleSearch"
|
Chris@17
|
153 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
Chris@17
|
154 </input>
|
Chris@17
|
155 <output>
|
Chris@17
|
156 <soap:body use="encoded"
|
Chris@17
|
157 namespace="urn:GoogleSearch"
|
Chris@17
|
158 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
Chris@17
|
159 </output>
|
Chris@17
|
160 </operation>
|
Chris@17
|
161
|
Chris@17
|
162 <operation name="doSpellingSuggestion">
|
Chris@17
|
163 <soap:operation soapAction="urn:GoogleSearchAction"/>
|
Chris@17
|
164 <input>
|
Chris@17
|
165 <soap:body use="encoded"
|
Chris@17
|
166 namespace="urn:GoogleSearch"
|
Chris@17
|
167 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
Chris@17
|
168 </input>
|
Chris@17
|
169 <output>
|
Chris@17
|
170 <soap:body use="encoded"
|
Chris@17
|
171 namespace="urn:GoogleSearch"
|
Chris@17
|
172 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
Chris@17
|
173 </output>
|
Chris@17
|
174 </operation>
|
Chris@17
|
175
|
Chris@17
|
176 <operation name="doGoogleSearch">
|
Chris@17
|
177 <soap:operation soapAction="urn:GoogleSearchAction"/>
|
Chris@17
|
178 <input>
|
Chris@17
|
179 <soap:body use="encoded"
|
Chris@17
|
180 namespace="urn:GoogleSearch"
|
Chris@17
|
181 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
Chris@17
|
182 </input>
|
Chris@17
|
183 <output>
|
Chris@17
|
184 <soap:body use="encoded"
|
Chris@17
|
185 namespace="urn:GoogleSearch"
|
Chris@17
|
186 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
Chris@17
|
187 </output>
|
Chris@17
|
188 </operation>
|
Chris@17
|
189 </binding>
|
Chris@17
|
190
|
Chris@17
|
191 <!-- Endpoint for Google Web APIs -->
|
Chris@17
|
192 <service name="GoogleSearchService">
|
Chris@17
|
193 <port name="GoogleSearchPort" binding="typens:GoogleSearchBinding">
|
Chris@17
|
194 <soap:address location="http://api.google.com/search/beta2"/>
|
Chris@17
|
195 </port>
|
Chris@17
|
196 </service>
|
Chris@17
|
197
|
Chris@17
|
198 </definitions>
|