Google api

0 0
Read Time:32 Second

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){}

About Post Author

Aino Andriessen

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/).
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

3 thoughts on “Google api

  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)

Comments are closed.

Next Post

Eclipse and java5

Use Eclipse with java5: Download a 3.1 Milestone Add java5 to the installed jre’s (Window > Preferences > Java > Installed JRE’s) Set the compiler compliance level to 5.0 (Window > Preferences > Java > Compiler) Although it is said that Eclipse must pick up java5 by starting it with […]
%d bloggers like this: