顯示具有 web service 標籤的文章。 顯示所有文章
顯示具有 web service 標籤的文章。 顯示所有文章

星期一, 11月 14, 2005

Web Services

References: Web Service

Extensive list
of web services

Examples
1. find the best rate of USD remission
2. Zip Code
key=eUhOTOJs9D2mcHU6SiL0CyMQvpJ3I3PqR2/fpRq4BOApWxzSzw7wD2FQ2mOmHEk+pq6iRBomQ4wuQl5EGOgfCitYgkQ3N4vl
3. Stock Quote

4. purchase a Hawaii tour with ait tkts, hotel, car rental and golf course


What is SOAP?

SOAP is the Simple Object Access Protocol. It is used for information exchange and RPC, usually (but not necessarily) over HTTP. More information can be found at:

Developmentor SOAP FAQ: http://www.soaprpc.com/faqs/SoapFAQ.html

W3C specifications: http://www.w3.org/TR/SOAP/



What is WSDL?

WSDL is the Web Service Description Language. It provides a formal description of a web service, much like CORBA's IDL. The WSDL file is all you need to know how to call the web service; toolkits can generate proxy code from a WSDL file directly. The official WSDL definition is at http://www.w3.org/TR/wsdl.

Lab Web Services: Test drive a web service with XML.

Lab 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.