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 principal consultant and expertise lead 'Continuous Delivery'. His focus is on Oracle Fusion Middleware ADF and SOA development, Continuous Delivery, architecture, improving the software development proces and quality management. He is a frequent presenter at Oracle Open World, ODTUG Kaleidoscope, UKOUG Technology Conference and OUGN Vårseminar. He writes articles and publishes at the AMIS technology blog (http://technology.amis.nl/blog/).

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)