Doron Rosenberg (email@example.com)
With Mozilla 1.4beta, Gecko has WSDL (Web Service Description Language) capabilities that allows it to easily communicate with web services. In this example, the Amazon web services will be queried for books matching the string the user entered.
Note about Security
Since this example needs to call another domain (mozilla.org to amazon.com), it breaks the cross-domain security model that Mozilla has. There is a new model developed especially
for web services in Mozilla 1.4beta that allows a web service to grant the browser permission to call it. However, since it is very new, it hasn't reached yet the public web services out there. Therefore, as a workaround, you have to bypass it by setting the following user preference:
This will make Mozilla prompt you to allow it to access amazon.com.
The example allows the user to search the Amazon web service for books matching a given keyword. For example, typing in "Mozilla" will match books related to the infamous lizard. To run the example, click here.
How it Works
The example then takes this information and displays it by adding it to the page's DOM - no new page has to be loaded.
Mozilla.org's Web Services Project Page
SOAP In Gecko
Amazon Web Services