+

Search Tips   |   Advanced Search

Overview: Online garden retailer Web services scenarios


This set of scenarios is inspired by an online retailer called Plants by WebSphere. Plants by WebSphere uses Web services support in WAS to improve communications with its suppliers. The more advanced scenarios describe Web services support available only in particular editions of the appserver. Consult the product documentation to confirm what is supported by the edition.

We might recognize Plants by WebSphere as a sample application available in the Samples Gallery. These scenarios are loosely related. They describe how the fictional online retailer could use a variety of Web services technologies, some of which are beyond those currently demonstrated by the sample.

Web services are middleware. Using Web services we can connect applications together, no matter how each application is implemented or where it is located.

For example, Web services can connect retailers to wholesale suppliers. Middleware is not new. What is new in Web services is that this connectivity is based upon open standards and Web technologies. Web services operate at a level of abstraction that is similar to the Internet, and they can work with any operating system, hardware platform, or programming language that can be Web-enabled.

The Plants by WebSphere storefront sells plants and gardening supplies. As customers order merchandise, the site checks the merchandise availability in its inventory database. The scenarios show how the inventory system can grow in stages, using various Web services technologies to improve its capabilities.

At present, these scenarios provide descriptions rather than step by step instructions. To gain experience with Web services coding, see the Samples Gallery. It provides detailed instructions for building, configuring, and running the Plants by WebSphere sample application and others.

 

Before Web services

Suppose that the Plants by WebSphere storefront does not use Web services. The garden retailer has established an impressive Internet storefront enabling customers to shop and order merchandise. To determine whether a customer order can be filled, Web apps rely on enterprise beans to query the Plants by WebSphere inventory database. If the item is in stock, the site confirms the order to the customer.

If a customer orders an item that is out of stock, the site notifies the customer that the item is out of stock, and encourages the customer to place the item on backorder. Later, long after the customer has left the Plants by WebSphere site, the site administrator or inventory manager might call or fax the supplier to obtain more inventory.

 

Introducing Web services

Use Web services provides Plants by WebSphere an automated way to have out of stock items shipped to its warehouse or directly to customers. If suppliers can be contacted quickly enough, Plants by WebSphere does not have to inform its customers that the item was out of stock. Plants by WebSphere can begin to reduce its own inventory if doing so is a desirable business move.

Web services is built on the following core technologies:

The appserver supports Web services based on the JAX-WS and JAX-RPC models. JAX-WS is a new model that simplifies application development through support of a standard, annotation-based model to develop Web services applications and clients. A JAX-RPC client and JAX-WS client can be used in the same module; therefore, the online retailer is still able to use its JAX-RPC applications. The appserver makes it easy to configure and reuse configurations, so we can seamlessly incorporate new Web services profiles. The JAX-WS standards support interoperable and reliable Web services applications. The online retailer can send messages asynchronously, which means that the messages can communicate reliably even if one of the parties is temporarily offline, busy, or not available. By using these new technologies, the online retailer can be confident that its communication is reliable and reaches its destination while interoperating with other vendors.

Refer to the Samples Gallery for additional Samples that demonstrate JAX-WS and JAX-RPC Web services.

WebSphere software provides additional specifications and standards to help you get the most out of the Web services.

For a complete list of the supported standards and specifications, see the Web services specifications and API documentation.



Subtopics


Web services scenario: Static inquiry on supplier
Web services scenario: Dynamic inquiry on supplier
Web services scenario: Cross supplier inquiry

 

Related concepts


Accessing the Samples (Samples Gallery)

 

Related tasks


Example: Installing a Web Services Sample with the console

 

Related


Web services specifications and APIs

 

Related information


Samples page on IBM site
XML specification on www.w3.org
WSDL specification on www.w3.org
SOAP spec on www.w3.org