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 <definitions name="urn:GoogleSearch"
9 targetNamespace="urn:GoogleSearch"
10 xmlns:typens="urn:GoogleSearch"
11 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
12 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
13 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
14 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
15 xmlns="http://schemas.xmlsoap.org/wsdl/">
17 <!-- Types for search - result elements, directory categories -->
20 <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
21 targetNamespace="urn:GoogleSearch">
23 <xsd:complexType name="GoogleSearchResult">
25 <xsd:element name="documentFiltering" type="xsd:boolean"/>
26 <xsd:element name="searchComments" type="xsd:string"/>
27 <xsd:element name="estimatedTotalResultsCount" type="xsd:int"/>
28 <xsd:element name="estimateIsExact" type="xsd:boolean"/>
29 <xsd:element name="resultElements" type="typens:ResultElementArray"/>
30 <xsd:element name="searchQuery" type="xsd:string"/>
31 <xsd:element name="startIndex" type="xsd:int"/>
32 <xsd:element name="endIndex" type="xsd:int"/>
33 <xsd:element name="searchTips" type="xsd:string"/>
34 <xsd:element name="directoryCategories" type="typens:DirectoryCategoryArray"/>
35 <xsd:element name="searchTime" type="xsd:double"/>
39 <xsd:complexType name="ResultElement">
41 <xsd:element name="summary" type="xsd:string"/>
42 <xsd:element name="URL" type="xsd:string"/>
43 <xsd:element name="snippet" type="xsd:string"/>
44 <xsd:element name="title" type="xsd:string"/>
45 <xsd:element name="cachedSize" type="xsd:string"/>
46 <xsd:element name="relatedInformationPresent" type="xsd:boolean"/>
47 <xsd:element name="hostName" type="xsd:string"/>
48 <xsd:element name="directoryCategory" type="typens:DirectoryCategory"/>
49 <xsd:element name="directoryTitle" type="xsd:string"/>
53 <xsd:complexType name="ResultElementArray">
55 <xsd:restriction base="soapenc:Array">
56 <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/>
61 <xsd:complexType name="DirectoryCategoryArray">
63 <xsd:restriction base="soapenc:Array">
64 <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:DirectoryCategory[]"/>
69 <xsd:complexType name="DirectoryCategory">
71 <xsd:element name="fullViewableName" type="xsd:string"/>
72 <xsd:element name="specialEncoding" type="xsd:string"/>
79 <!-- Messages for Google Web APIs - cached page, search, spelling. -->
81 <message name="doGetCachedPage">
82 <part name="key" type="xsd:string"/>
83 <part name="url" type="xsd:string"/>
86 <message name="doGetCachedPageResponse">
87 <part name="return" type="xsd:base64Binary"/>
90 <message name="doSpellingSuggestion">
91 <part name="key" type="xsd:string"/>
92 <part name="phrase" type="xsd:string"/>
95 <message name="doSpellingSuggestionResponse">
96 <part name="return" type="xsd:string"/>
99 <message name="doGoogleSearch">
100 <part name="key" type="xsd:string"/>
101 <part name="q" type="xsd:string"/>
102 <part name="start" type="xsd:int"/>
103 <part name="maxResults" type="xsd:int"/>
104 <part name="filter" type="xsd:boolean"/>
105 <part name="restrict" type="xsd:string"/>
106 <part name="safeSearch" type="xsd:boolean"/>
107 <part name="lr" type="xsd:string"/>
108 <part name="ie" type="xsd:string"/>
109 <part name="oe" type="xsd:string"/>
112 <message name="doGoogleSearchResponse">
113 <part name="return" type="typens:GoogleSearchResult"/>
116 <!-- Port for Google Web APIs, "GoogleSearch" -->
118 <portType name="GoogleSearchPort">
120 <operation name="doGetCachedPage">
121 <input message="typens:doGetCachedPage"/>
122 <output message="typens:doGetCachedPageResponse"/>
125 <operation name="doSpellingSuggestion">
126 <input message="typens:doSpellingSuggestion"/>
127 <output message="typens:doSpellingSuggestionResponse"/>
130 <operation name="doGoogleSearch">
131 <input message="typens:doGoogleSearch"/>
132 <output message="typens:doGoogleSearchResponse"/>
138 <!-- Binding for Google Web APIs - RPC, SOAP over HTTP -->
140 <binding name="GoogleSearchBinding" type="typens:GoogleSearchPort">
141 <soap:binding style="rpc"
142 transport="http://schemas.xmlsoap.org/soap/http"/>
144 <operation name="doGetCachedPage">
145 <soap:operation soapAction="urn:GoogleSearchAction"/>
147 <soap:body use="encoded"
148 namespace="urn:GoogleSearch"
149 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
152 <soap:body use="encoded"
153 namespace="urn:GoogleSearch"
154 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
158 <operation name="doSpellingSuggestion">
159 <soap:operation soapAction="urn:GoogleSearchAction"/>
161 <soap:body use="encoded"
162 namespace="urn:GoogleSearch"
163 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
166 <soap:body use="encoded"
167 namespace="urn:GoogleSearch"
168 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
172 <operation name="doGoogleSearch">
173 <soap:operation soapAction="urn:GoogleSearchAction"/>
175 <soap:body use="encoded"
176 namespace="urn:GoogleSearch"
177 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
180 <soap:body use="encoded"
181 namespace="urn:GoogleSearch"
182 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
187 <!-- Endpoint for Google Web APIs -->
188 <service name="GoogleSearchService">
189 <port name="GoogleSearchPort" binding="typens:GoogleSearchBinding">
190 <soap:address location="http://api.google.com/search/beta2"/>