9.8 A BASIC EXAMPLE

Consider a simple example of fetching a random quote, used perhaps for flashing Thought-for-the-day kind of service. This could be used independently or as part of a web application, but in this example, it is simplified to be standalone. The service is implemented in a Java environment (service provider). Let us use the same WSDL as explained in the previous paragraphs.

For demonstrating interoperability, the example shows the client (service requestor) in a different environment, in this case Ruby on Rails, that is, the rails application calls the service that is running in a Java environment. It is equally easy to have the client in a different environment like Microsoft.NET or PHP or even in Java itself, in which the service ...

Get Web Technology: Theory and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.