Chapter 7 Examples


We have included several Java programs to populate a private UDDI registry with BusinessEntity, BusinessService and TModel entries for WeMakeIt Inc., WheelsMadeHere and MakeCirclesInc.

These examples use UDDI4J as a client API from Java to a UDDI registry. UDDI4J is available from IBM's alphaWorks (http://www.ibm.com/alphaWorks).

All of the Java files are subclasses of Ch7Examples class, to share settings for userid/password and the URLs to the Inquiry and Publish APIs.

Set these variables to have values appropriate for your environment. The examples require these variables to be set properly.

UDDI4J and its pre reqs must be in the classPath for these examples to work.

Run the SaveBusinessXXX examples first, this saves businessEntity entries for the three suppliers to Skatestown.

Then run the SaveTModelXXX examples next, this saves tModels that the SaveBusinessXXX examples rely upon.

Run the SaveServiceWheelsXXX examples next, this sets up priceCheck, PO and RFQ services for WheelsMadeHere. RFQ service is not used in the examples, it is there for completeness.

Run the SaveServiceMakeXXX examples next, this sets up priceCheck, PO and RFQ services for WheelsMadeHere. RFQ service is not used in the examples, it is there for completeness.

Run the SaveServiceWeMakeItRFQ, SaveServiceWeMakeItPOPlacement and SaveServiceWeMakeItPriceCheckETorus. There are two other SaveServiceWeMakeItXXX examples, these have to do with an earlier Skatestown tModel and an update example to modify the service to point to the new e-Torus priceCheck service interface definition.

Now, run the DynamicFindSkateCity example. This example looks for all implementors of the e-Torus PriceCheck and POPlacement standards. It lists these out on the console, including the accessPoint of these priceChecks (instead of invoking the PriceCheck).

The winner chosen is WeMakeIt Inc., the code finds the POPlacement service for WeMakeIt Inc. and invokes it (not really invokes it, but rather prints out the accessPoint URL onto the console.