]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - GoogleSearch.wsdl
Allow bold, italics or underlined for numbers
[SourceForge/phpwiki.git] / GoogleSearch.wsdl
1 <?xml version="1.0"?>
2
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. -->
7
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/">
16
17   <!-- Types for search - result elements, directory categories -->
18
19   <types>
20     <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" 
21                 targetNamespace="urn:GoogleSearch">
22             
23       <xsd:complexType name="GoogleSearchResult">
24         <xsd:all>
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"/>
36         </xsd:all>
37       </xsd:complexType>
38
39       <xsd:complexType name="ResultElement">
40         <xsd:all>
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"/>
50         </xsd:all>
51       </xsd:complexType>
52   
53       <xsd:complexType name="ResultElementArray">
54         <xsd:complexContent>
55           <xsd:restriction base="soapenc:Array">
56              <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/>
57           </xsd:restriction>
58         </xsd:complexContent>
59       </xsd:complexType>
60
61       <xsd:complexType name="DirectoryCategoryArray">
62         <xsd:complexContent>
63           <xsd:restriction base="soapenc:Array">
64              <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:DirectoryCategory[]"/>
65           </xsd:restriction>
66         </xsd:complexContent>
67       </xsd:complexType>
68
69       <xsd:complexType name="DirectoryCategory">
70         <xsd:all>
71           <xsd:element name="fullViewableName" type="xsd:string"/>
72           <xsd:element name="specialEncoding" type="xsd:string"/>
73         </xsd:all>
74       </xsd:complexType>
75
76     </xsd:schema>
77   </types> 
78
79   <!-- Messages for Google Web APIs - cached page, search, spelling. -->
80              
81   <message name="doGetCachedPage">
82     <part name="key"            type="xsd:string"/>
83     <part name="url"            type="xsd:string"/>
84   </message>
85
86   <message name="doGetCachedPageResponse">
87     <part name="return"         type="xsd:base64Binary"/>
88   </message>
89
90   <message name="doSpellingSuggestion">
91     <part name="key"            type="xsd:string"/>
92     <part name="phrase"         type="xsd:string"/>
93   </message>
94
95   <message name="doSpellingSuggestionResponse">
96     <part name="return"         type="xsd:string"/>
97   </message>
98
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"/>
110   </message>
111
112   <message name="doGoogleSearchResponse">
113     <part name="return"         type="typens:GoogleSearchResult"/>           
114   </message>
115
116   <!-- Port for Google Web APIs, "GoogleSearch" -->
117
118   <portType name="GoogleSearchPort">
119
120     <operation name="doGetCachedPage">
121       <input message="typens:doGetCachedPage"/>
122       <output message="typens:doGetCachedPageResponse"/>
123     </operation>
124
125     <operation name="doSpellingSuggestion">
126       <input message="typens:doSpellingSuggestion"/>
127       <output message="typens:doSpellingSuggestionResponse"/>
128     </operation>
129
130     <operation name="doGoogleSearch">
131       <input message="typens:doGoogleSearch"/>
132       <output message="typens:doGoogleSearchResponse"/>
133     </operation>
134
135   </portType>
136
137
138   <!-- Binding for Google Web APIs - RPC, SOAP over HTTP -->
139
140   <binding name="GoogleSearchBinding" type="typens:GoogleSearchPort">
141     <soap:binding style="rpc"
142                   transport="http://schemas.xmlsoap.org/soap/http"/>
143
144     <operation name="doGetCachedPage">
145       <soap:operation soapAction="urn:GoogleSearchAction"/>
146       <input>
147         <soap:body use="encoded"
148                    namespace="urn:GoogleSearch"
149                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
150       </input>
151       <output>
152         <soap:body use="encoded"
153                    namespace="urn:GoogleSearch"
154                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
155       </output>
156     </operation>
157
158     <operation name="doSpellingSuggestion">
159       <soap:operation soapAction="urn:GoogleSearchAction"/>
160       <input>
161         <soap:body use="encoded"
162                    namespace="urn:GoogleSearch"
163                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
164       </input>
165       <output>
166         <soap:body use="encoded"
167                    namespace="urn:GoogleSearch"
168                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
169       </output>
170     </operation>
171
172     <operation name="doGoogleSearch">
173       <soap:operation soapAction="urn:GoogleSearchAction"/>
174       <input>
175         <soap:body use="encoded"
176                    namespace="urn:GoogleSearch"
177                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
178       </input>
179       <output>
180         <soap:body use="encoded"
181                    namespace="urn:GoogleSearch"
182                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
183       </output>
184     </operation>
185   </binding>
186
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"/>
191     </port>
192   </service>
193
194 </definitions>