Johnny [Life & Code]

Semper Exploro!

Mono & Google APIs

with 3 comments

Not Complete. Page under construction [ETA AUG 26 2006]

I should confess that there is nothing new in this page. I you google more you will get better tutorial/articiles/code snipets. I just want to share whatever i learnt.

If you dont know what is webservice this should help you :

Tools :

I’m using

  • SUSE Linux Enterprise Desktop 10.
  • Mono version 1.1.18.

So everything below assumes that you have a similar setup. I dont have a M$ W1nd0w5 with me currently. i’ll try to add some info on that once i get it.

How it works :

AFAIK (which is very little). Webservices are exposed as WSDL files. Form this we create a local stub. Our application links to this stub. And the stub takes care of all the communication between the server and the client..

[Please correct me if i’m wrong]

AFAIK (ok. i use this often .. because i really know very little …. ) these are some simple steps

  1. Locate WSDL (there are better ways to locate these services… please fill in the missing information)
  2. Create stub source.
  3. Create stub.dll (library)
  4. Write our application
  5. Link both stub.dll and our applications

Eliza chat :

I was searching for something different and found “eliza“. Eliza is supposed to be a top class phyhcaitrist. So letz see how to talk to her.

Found a wsdl for eliza at .

The stub source can be created using ‘wsdl’ command.
the above command will output this file chat.cs

Letz compile chat.cs by
mcs /target:library chat.cs -r:System.Web.Services
chat.dll will be created.

Google Search Service :

For more fun letz play with google search. Quoting from google

“With the Google Web APIs service, software developers can query more than 8 billion web pages directly from their own computer programs. The Google web search API uses the SOAP and WSDL standards. ”
Google WSDL is at

The stub source can be created using ‘wsdl’ command.
the above command will output this file GoogleSearchService.cs

Letz compile GoogleSearchService.cs by
mcs /target:library GoogleSearchService.cs -r:System.Web.Services
GoogleSearchService.dll will be created.

To use GoogleSearchServices you need a API key. If you dont have one you can get it from

Once u get the key, we can use it in our application and consume google’s services.

Info Source :

[Thank you mono guyz for the info ^^ ]

Mono - Powered


Written by Johnny

August 19, 2006 at 8:29 am

3 Responses

Subscribe to comments with RSS.

  1. […] Around midnight yesterday, out of nowhere i got interesed in Mono and Webservices. I had a look at Google Search APIs ( i tried to use it before when it was launched but i just didnt know how to ).I just wrote down whatever i learnt in that 2 hours . Here it is [Mono and Webservices] […]

  2. it was integrated into tomboy . 🙂 and the code is on my page itself 🙂


    October 15, 2006 at 8:32 am

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: