3 <!-- WSDL description of the Google Web APIs.
4 The Google Web APIs are in beta release. All interfaces are subject to
5 change as we refine and extend our APIs. Please see the terms of use
6 for more information. -->
8 <!-- Revision 2002-08-16 -->
10 <definitions name=
"GoogleSearch"
11 targetNamespace=
"urn:GoogleSearch"
12 xmlns:
typens=
"urn:GoogleSearch"
13 xmlns:
xsd=
"http://www.w3.org/2001/XMLSchema"
14 xmlns:
soap=
"http://schemas.xmlsoap.org/wsdl/soap/"
15 xmlns:
soapenc=
"http://schemas.xmlsoap.org/soap/encoding/"
16 xmlns:
wsdl=
"http://schemas.xmlsoap.org/wsdl/"
17 xmlns=
"http://schemas.xmlsoap.org/wsdl/">
19 <!-- Types for search - result elements, directory categories -->
22 <xsd:schema xmlns=
"http://www.w3.org/2001/XMLSchema"
23 targetNamespace=
"urn:GoogleSearch">
25 <xsd:complexType name=
"GoogleSearchResult">
27 <xsd:element name=
"documentFiltering" type=
"xsd:boolean"/>
28 <xsd:element name=
"searchComments" type=
"xsd:string"/>
29 <xsd:element name=
"estimatedTotalResultsCount" type=
"xsd:int"/>
30 <xsd:element name=
"estimateIsExact" type=
"xsd:boolean"/>
31 <xsd:element name=
"resultElements" type=
"typens:ResultElementArray"/>
32 <xsd:element name=
"searchQuery" type=
"xsd:string"/>
33 <xsd:element name=
"startIndex" type=
"xsd:int"/>
34 <xsd:element name=
"endIndex" type=
"xsd:int"/>
35 <xsd:element name=
"searchTips" type=
"xsd:string"/>
36 <xsd:element name=
"directoryCategories" type=
"typens:DirectoryCategoryArray"/>
37 <xsd:element name=
"searchTime" type=
"xsd:double"/>
41 <xsd:complexType name=
"ResultElement">
43 <xsd:element name=
"summary" type=
"xsd:string"/>
44 <xsd:element name=
"URL" type=
"xsd:string"/>
45 <xsd:element name=
"snippet" type=
"xsd:string"/>
46 <xsd:element name=
"title" type=
"xsd:string"/>
47 <xsd:element name=
"cachedSize" type=
"xsd:string"/>
48 <xsd:element name=
"relatedInformationPresent" type=
"xsd:boolean"/>
49 <xsd:element name=
"hostName" type=
"xsd:string"/>
50 <xsd:element name=
"directoryCategory" type=
"typens:DirectoryCategory"/>
51 <xsd:element name=
"directoryTitle" type=
"xsd:string"/>
55 <xsd:complexType name=
"ResultElementArray">
57 <xsd:restriction base=
"soapenc:Array">
58 <xsd:attribute ref=
"soapenc:arrayType" wsdl:
arrayType=
"typens:ResultElement[]"/>
63 <xsd:complexType name=
"DirectoryCategoryArray">
65 <xsd:restriction base=
"soapenc:Array">
66 <xsd:attribute ref=
"soapenc:arrayType" wsdl:
arrayType=
"typens:DirectoryCategory[]"/>
71 <xsd:complexType name=
"DirectoryCategory">
73 <xsd:element name=
"fullViewableName" type=
"xsd:string"/>
74 <xsd:element name=
"specialEncoding" type=
"xsd:string"/>
81 <!-- Messages for Google Web APIs - cached page, search, spelling. -->
83 <message name=
"doGetCachedPage">
84 <part name=
"key" type=
"xsd:string"/>
85 <part name=
"url" type=
"xsd:string"/>
88 <message name=
"doGetCachedPageResponse">
89 <part name=
"return" type=
"xsd:base64Binary"/>
92 <message name=
"doSpellingSuggestion">
93 <part name=
"key" type=
"xsd:string"/>
94 <part name=
"phrase" type=
"xsd:string"/>
97 <message name=
"doSpellingSuggestionResponse">
98 <part name=
"return" type=
"xsd:string"/>
101 <!-- note, ie and oe are ignored by server; all traffic is UTF-8. -->
103 <message name=
"doGoogleSearch">
104 <part name=
"key" type=
"xsd:string"/>
105 <part name=
"q" type=
"xsd:string"/>
106 <part name=
"start" type=
"xsd:int"/>
107 <part name=
"maxResults" type=
"xsd:int"/>
108 <part name=
"filter" type=
"xsd:boolean"/>
109 <part name=
"restrict" type=
"xsd:string"/>
110 <part name=
"safeSearch" type=
"xsd:boolean"/>
111 <part name=
"lr" type=
"xsd:string"/>
112 <part name=
"ie" type=
"xsd:string"/>
113 <part name=
"oe" type=
"xsd:string"/>
116 <message name=
"doGoogleSearchResponse">
117 <part name=
"return" type=
"typens:GoogleSearchResult"/>
120 <!-- Port for Google Web APIs, "GoogleSearch" -->
122 <portType name=
"GoogleSearchPort">
124 <operation name=
"doGetCachedPage">
125 <input message=
"typens:doGetCachedPage"/>
126 <output message=
"typens:doGetCachedPageResponse"/>
129 <operation name=
"doSpellingSuggestion">
130 <input message=
"typens:doSpellingSuggestion"/>
131 <output message=
"typens:doSpellingSuggestionResponse"/>
134 <operation name=
"doGoogleSearch">
135 <input message=
"typens:doGoogleSearch"/>
136 <output message=
"typens:doGoogleSearchResponse"/>
142 <!-- Binding for Google Web APIs - RPC, SOAP over HTTP -->
144 <binding name=
"GoogleSearchBinding" type=
"typens:GoogleSearchPort">
145 <soap:binding style=
"rpc"
146 transport=
"http://schemas.xmlsoap.org/soap/http"/>
148 <operation name=
"doGetCachedPage">
149 <soap:operation soapAction=
"urn:GoogleSearchAction"/>
151 <soap:body use=
"encoded"
152 namespace=
"urn:GoogleSearch"
153 encodingStyle=
"http://schemas.xmlsoap.org/soap/encoding/"/>
156 <soap:body use=
"encoded"
157 namespace=
"urn:GoogleSearch"
158 encodingStyle=
"http://schemas.xmlsoap.org/soap/encoding/"/>
162 <operation name=
"doSpellingSuggestion">
163 <soap:operation soapAction=
"urn:GoogleSearchAction"/>
165 <soap:body use=
"encoded"
166 namespace=
"urn:GoogleSearch"
167 encodingStyle=
"http://schemas.xmlsoap.org/soap/encoding/"/>
170 <soap:body use=
"encoded"
171 namespace=
"urn:GoogleSearch"
172 encodingStyle=
"http://schemas.xmlsoap.org/soap/encoding/"/>
176 <operation name=
"doGoogleSearch">
177 <soap:operation soapAction=
"urn:GoogleSearchAction"/>
179 <soap:body use=
"encoded"
180 namespace=
"urn:GoogleSearch"
181 encodingStyle=
"http://schemas.xmlsoap.org/soap/encoding/"/>
184 <soap:body use=
"encoded"
185 namespace=
"urn:GoogleSearch"
186 encodingStyle=
"http://schemas.xmlsoap.org/soap/encoding/"/>
191 <!-- Endpoint for Google Web APIs -->
192 <service name=
"GoogleSearchService">
193 <port name=
"GoogleSearchPort" binding=
"typens:GoogleSearchBinding">
194 <soap:address location=
"http://api.google.com/search/beta2"/>