Google SOAP example

 previous contents next

  • Google search engine can be invoked as a web service
  • search request can be packaged as a SOAP message, e.g. doGoogleSearch.xml, and sent to api.google.com/search/beta2 using HTTP POST
  • note that doGoogleSearch element name matches name of a message in WSDL specification
  • note that elements key, q etc. match names of parts of message in WSDL specification
  • Google returns doGoogleSearchResponse.xml containing the results
  • 3 results returned as item elements of array resultElements

Peter Wood

12 of 14