Google api

3
Share this on .. Tweet about this on Twitter0Share on LinkedIn0Share on Facebook0Share on Google+0Email this to someoneShare on TumblrBuffer this page

Like many others, Google provides access to some of it’s services by means of webservices. Just follow the instructions at the Google web api’s site:

  • download the developer’s kit
  • create an account and get a licence key
  • create a program

The developer’s kit contains a wsdl, webservice client libraries and some code examples for .NET and java.

For java, all you need to do is:

import com.google.soap.search.GoogleSearch;
import com.google.soap.search.GoogleSearchFault;
import com.google.soap.search.GoogleSearchResult;
import com.google.soap.search.GoogleSearchResultElement;
...
GoogleSearch search = new GoogleSearch();
search.setKey("key");
try {
    search.setQueryString("sql pathetic");
    GoogleSearchResult googleResults = search.doSearch();
} catch (GoogleSearchFault f){}
Share this on .. Tweet about this on Twitter0Share on LinkedIn0Share on Facebook0Share on Google+0Email this to someoneShare on TumblrBuffer this page

About Author

Aino Andriessen is a consultant on Enterprise Java, ADF, PL/SQL, XML, and SOA development and is Expertise Lead on Application Lifecycle Management (ALM). He has a strong interest in ADF, SOA, Maven, architecture, quality management, delivery and application lifecycle management. Aino publishes on the AMIS technology blog and has been a presenter at the ODTUG Kaleidoscope, Oracle Open World and UKOUG TechEbs.

3 Comments

  1. Hey. I am new to using Oracle BPEL Engine. How can I integrate Google APIs into a bpel process to search for an item, let say an ISBN number of a book from Nobles or Amazon. Hope to hear from you. Thanx.

  2. Try at orablogs themselves.
    Orablogs contains a ranking already (on the left side of the orablogs page)