No Description

GoogleSearch.wsdl 7.3KB

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