2005年3月27日 星期日

Lab Explore Google search web service.

"nothing builds self-esteem and self-confidence like accomplishment"

Explore Google search web service.

Developers write software programs that connect remotely to the Google Web APIs service. Communication is performed via the Simple Object Access Protocol (SOAP), an XML-based mechanism for exchanging typed information.

If you have questions, you can check into FAQ.

1. Take a close look at Web Service Description Language (WSDL 1.1) description of interface for Google searching

2. Download the web service API of Google search at http://www.google.com/apis/download.html
The download package includes
com.google.soap.search.*;
Google's own Java wrapper for the API SOAP calls
JAF 1.0.1 (activation.jar)

3. You need to create an account at Google to use the web service. Be sure to have an email box to receive the license key.
If you don't, just use this one nQ4ETIdQFHKlGxLZjj+2c8klYflwDzoK

4. Open the DOS command window and prepare to run Java.
Usage:
java -cp googleapi.jar com.google.soap.search.GoogleAPIDemo [key] search Foo

Where [key] is your registration key and Foo is the item you wish to
search for.

5. Take a close look at the XML output, which is the result of your search.

37 則留言:

  1. notice step 4,
    when running java, the dos command directory must in the same as the googleapi.jar,or it will fail to load .

    回覆刪除
  2. 網誌管理員已經移除這則留言。

    回覆刪除
  3. 網誌管理員已經移除這則留言。

    回覆刪除
  4. 網誌管理員已經移除這則留言。

    回覆刪除
  5. 8926366..done labVIII
    因為proxy的緣故..所以有動作但無法找到..

    回覆刪除
  6. s9026120 have done.有動作但結果是fail.

    回覆刪除
  7. s9126156
    跑出結果:
    The call to the Google Web APIs failed

    回覆刪除
  8. s9026161 have done
    因proxy關係,有動作但無法成功執行。

    回覆刪除
  9. 補PO因為被學校proxy擋掉,所以無法執行收尋

    回覆刪除
  10. s8926259 have done it
    有動作 但是無法找到..

    回覆刪除