Case Study Description

printer-friendly version of this section  Print  e-mail this section  E-Mail  add a public, group or private note  Add Note  add a bookmark about this section  Add Bookmark    

Java APIs for XML Kick Start
By Aoyon Chowdhury, Parag Choudhary

Table of Contents
Chapter 12.  Case Study: Deploying a Web Service Using JAX


Any business has three components: buyers, sellers, and a mechanism with which buyers can identify and contact sellers.

In our case study, the buyer is a company called I Need Car Parts Inc. The sellers are four companies that deal in bulk sales of car accessories: The Best Deals on Accessories Inc., Cool Accessories Inc., The Great Parts Supplier Inc., and We Supply Parts Inc. A UDDI-based registry is the mechanism with which the buyer discovers the sellers and starts the B2B communication process. You will use the JWSDP Registry Server that's available with the JWSDP download pack.

The interactions between the three business components is as follows: The procurement division at I Need Car Parts Inc. needs to purchase car stereos, so they ask the IT department to provide a solution by which they can programmatically identify companies that sell car stereos and obtain price lists from them.

The sellers decide on a standard interface, and use J2SE and JAX-RPC to create Web services that implement the interface. Next, using JAXR, they publish information about themselves and the Web services in a UDDI-based registry.

The application developers at I Need Car Parts Inc. create a J2SE application to get the prices of the car stereos from the different vendors. The application using JAXR queries the registry and obtains the Web service details of the companies that deal in car accessories. Next, using JAX-RPC, the application executes the Web services of the individual companies and gets information about the car accessories and parts in an XML format. Then, using JAXP, the XML data is parsed, and the car stereo prices quoted by the different suppliers are displayed for the procurement division to take appropriate action.


printer-friendly version of this section  Print  e-mail this section  E-Mail  add a public, group or private note  Add Note  add a bookmark about this section  Add Bookmark    
Top

[0672324342/ch12lev1sec1]

 
 


JavaT APIs for XML Kick Start
JAX: Java APIs for XML Kick Start
ISBN: 0672324342
EAN: 2147483647
Year: 2002
Pages: 133

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net