Lathering with SOAP, Domino and the GoogleAPI
Thursday, January 16th 2003
Some time last year, Google released a public GoogleAPI. This meant that, from a script we could now query the Google search engine as if it were running locally. Quite a few applications have been created around these services for e.g. : GoogleFight and GoogleSmackdown.
So how does the GoogleAPI work?
The Google API set is a public SOAP 1.1 interface to the google search engine that can be queried by any registered user. In very simple terms this means, the Google API allows users to programmatically query Google, and recieve the response locally (for e.g. search results) in a standard, machine readable format (you guessed it, XML). In addition to Google, Amazon also allows querying of its products via SOAP web service.
So what exactly is SOAP?
SOAP is kinda like the big brother of the XML-RPC protocol (I discussed XML-RPC earlier, it might be a good idea to read that, if you are wondering what XML-RPC is about).
To get a quick 5 minute overview of SOAP and how it works, I would recommend "A Busy developers guide to SOAP 1.1" and if you have the patience, the SOAP 1.1 specification (Note that SOAP 1.1 is not a ratified w3c standard). While in principle SOAP and XML-RPC try to do the same thing, in reality
they are quite different. You can read about the major differences over
here.
Fine, so how do I access the Google API? And how do I do it from Domino?
To get started, you need:
- To get access to the GoogleAPI you need to obtain a license key
- You need to download the GoogleAPI toolkit (a small 600KB download)
All the above can be obtained from http://www.google.com/apis/
The API toolkit comes with an API reference, and a GoogleAPI.JAR file. This file is a Java wrapper library provided by Google that makes it very easy to query the GoogleAPI by hiding the mechanics of creating a SOAP connection and recieving the response from the google server.
Unfortunately....(Yeah! I knew it wasn't gonna be that easy...), I couldn't get this library to work on my trusty old Domino 5.05 server. The GoogleAPI.JAR file uses a version of the xml-apache-soap library, which is incompatible with the version of the Java virtual machine (JVM) and JDK shipped with the Domino 5 versions.
I was looking for a method that would be backward compatible between Domino 5 and 6.
Fortunately, the beauty of technologies like XML-RPC and SOAP lies in their simplicity and non-proprietary design (Ask me, I still can't understand what DCOM was about) . Using the standard java classes provided by Domino 5.05, it is fairly easy to query any of the Google web service APIs.
So here is a "How-To" article on querying Google via SOAP from Domino (of course, without surgically modifying the Domino JVM) . I have tested the method on Domino 5.05+ versions (haven't tested it on Domino 6 actually) , though it should work on 5.03+.
Read the Update
There is some more updated information on this post available
Comments
GoogleAPI
by Moudar on Monday, July 21st at 07:54 PMI have some problem withe using GoogleAPI
When I run My Project (Build in JBuilderx)
I have this exception
My Exception: com.google.soap.search.GoogleSearchFault: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: Connection timed out: connect; targetException=java.lang.IllegalArgumentException: Error opening socket: Connection timed out: connect]
no subject
by online blackjack on Wednesday, September 10th at 10:10 PMonline blackjack
no subject
by poker guide on Wednesday, September 10th at 10:17 PMpoker guide
no subject
by gambling horse racing on Wednesday, September 10th at 10:26 PMgambling horse racing
GoogleAPI
by 70-543 on Thursday, May 28th at 01:19 AMGoogle API has great potential to allow dispensation users to generate draft pieces supplemented by huge amount of data available through Google. Google API also needs a license key, which you can generate in account registration section. Once you get the license key, it works as a permission key especially for you.
Nice stuff..
by mcts dumps on Tuesday, July 21st at 02:46 AMGoogle has superior its Google Gears Geolocation API so that developers can construct applications that can track the location of laptop users within two hundred meters.
no subject
by RH202 exam on Thursday, October 22nd at 11:44 PMThanks for sharing and very helpful tutorial of Lathering with SOAP, Domino and the GoogleAPI. I found your post very useful.
no subject
by Lolrus on Thursday, June 24th at 02:45 AMThese will enable developing countries to give their children a digital education, and help close the digital divide across the world.
no subject
by coach on Sunday, July 4th at 04:19 AMhttp://coachbags.bravejournal.com/
http://coachbags02.bravejournal.com/
http://coachbag01.busythumbs.com/
http://coachhandbags.canalblog.com/
http://coachbags01.edublogs.org/
no subject
by Coupon Comrade on Tuesday, August 10th at 09:10 PMAs with any non-capitalist PW were the workers not from the work equipment (and therefore not get rid of the immediate political dependency ratios). Even immature fruits. Here, in the discussions clearly endorsed some concerns that the broad-based reforms have been initiated with educational standards actually reach their goal.
no subject
by steve on Tuesday, August 17th at 01:08 AM<a href="http://freedumps.diaryland.com/100614_85.html">000-839</a>
<a href="http://freedumps.diaryland.com/100614_69.html">000-966</a>
<a href="http://freedumps.diaryland.com/100614_88.html">1d0-442</a>
<a href="http://freedumps.diaryland.com/100614_6.html">1z0-032</a>
<a href="http://freedumps.diaryland.com/100614_1.html">1z0-040</a>
<a href="http://freedumps.diaryland.com/100614_47.html">4A0-103</a>
<a href="http://freedumps.diaryland.com/100614_38.html">642-813</a>
<a href="http://freedumps.diaryland.com/100614_94.html">642-832</a>
<a href="http://freedumps.diaryland.com/100614_18.html">642-902</a>
<a href="http://freedumps.diaryland.com/100614_78.html">646-046</a>
<a href="http://freedumps.diaryland.com/100614_90.html">646-223</a>
<a href="http://freedumps.diaryland.com/100614_63.html">646-276</a>
<a href="http://freedumps.diaryland.com/100614_53.html">646-563</a>
<a href="http://freedumps.diaryland.com/100614_51.html">646-656</a>
<a href="http://freedumps.diaryland.com/100614_74.html">646-671</a>
no subject
by steve on Tuesday, August 17th at 01:08 AM000-839 000-966 1d0-442 1z0-032 1z0-040 4A0-103 642-813 642-832 642-902 646-046 646-223 646-276 646-563 646-656 646-671
zx
by replica louis vuitton handbags on Thursday, September 16th at 02:16 AMI want to say very thank you for this great informations. now i understand about it. Thank you !
no subject
by nike shox on Tuesday, September 21st at 03:16 AMThank your for your articles. I learn more from here! Thank you !
http://www.buybagshere.com
by chanel handbags on Tuesday, September 21st at 05:10 AM3q
no subject
by yiwu agent on Sunday, October 10th at 11:18 PMI want to say very thank you for this great informations. now i understand about it. Thank you !
no subject
by quality research papers on Wednesday, December 15th at 03:19 AMi have read your all above post its really good and thanks to share it.....
Impactive
by Useful Tips For Repair An Xbox on Monday, January 17th at 12:05 AMI have read your all posts its a very nice.......
Osteopath In Sydney
by Osteopath In Sydney on Friday, June 17th at 06:25 AMWe provide osteopathy, Chiropractic, acupuncture, massage and nutrition services in the North Ryde, Lane Cove, Macquarie Park and Ryde areas of Sydney, NSW.
wangluo
by mbt shoes wholesale on Monday, June 20th at 12:59 AMI
wangluo
by mbt shoes wholesale on Monday, June 20th at 12:59 AMI
I
by cargo net on Saturday, June 25th at 01:00 AMI
123
by yiwu agent on Thursday, June 30th at 05:29 AMHope that comes from disappointment, worry began to rise, as one poet said: There are hungry people must feel good digestion, a sense of urgency by some people, high efficiency, there are people who feel the crisis will progress faster. Do not hover in the trees, do meditation in the rain, do not cry in the dark. Look forward, not back, as long as you looked up the courage to face, you will find scores of haze but a short rainy season. Looking ahead, there are a bright day, will not make people feel anxious.<a href="http://www.yiwuen.com/services/yiwu-agent" rel="external nofollow">yiwu agent</a>
no subject
by small dog doors on Thursday, July 28th at 02:51 AMSave 20% now on all horse saddles storewide. Featuring the most popular brands and styles from Abetta, Fabtron, Big Horn, TexTan, American Saddlery, Saddlesmith of Texas and more!
plus size dresses
by white dresses on Friday, July 29th at 03:15 AMIt's just too bad that Wesabe support is so terrible. I have no idea how this company is still in business.
plus size dresses
by women dresses on Friday, July 29th at 03:16 AMWell, thanks for the feedback and concerns with this one buddy!
organic crib sheets
by organic crib sheets on Monday, August 1st at 01:46 AMSave 20% now on all horse saddles storewide. Featuring the most popular brands and styles from Abetta, Fabtron, Big Horn, TexTan, American Saddlery, Saddlesmith of Texas and more!
ATV Parts
by ATV Parts on Tuesday, September 13th at 05:56 AMATV Part Center is a full-service, online Atv parts catalog tailored to the needs of any Polaris ATV or Polaris Ranger owner.
jersey
by soccer jersey on Sunday, September 18th at 11:36 PMGood article more useful to me, I will continue to pay attention, I hope you lot just my site
Add your comment: