The back end of the uBike application is written in C++ on the Tuxedo platform. The system emulates a bicycle inventory application that provides a search capability using business logic that is contained within Tuxedo services.
The searchBike service is defined and its service contract information is stored in the Tuxedo metadata repository, then that data is used to generate WSDL artifacts to provide loosely-coupled access to the service through the SALT SOAP gateway, which automatically converts Web service SOAP and XML payloads to and from the parameter types of the corresponding Tuxedo service.
The Tuxedo services implemented for the uBike application are described in the table below:
Service Name |
Input |
Output |
Description |
|---|---|---|---|
searchBike |
COLOR - string
|
0-n records of:
SERIALNO - string
SKU - string NAME - string TYPE - string PRICE - float SIZE - long INSTOCK - string ORDERDATE - string COLOR - string |
Search for bicycle records based on COLOR field |
The uBike inventory database is not using a real database. It is implemented as an in-memory data set so it can be manipulated in memory. When the uBikeSCASvr server starts, then it will generate a new list of 100 bicycles using random data. To reset the database, simply restart the uBikeSCASvr server again.
The inventory of bicycles contained in the uBike database comprises the following data:
The SERIALNO field is the primary ID key for the bicycle record. Its uniqueness is generated and managed by the uBike services.
All bicycles come in the following colors: YELLOW, ORANGE, RED, GREEN, BLUE, WHITE, BLACK, SILVER
TYPE 'M' bicycles are considered mountain bikes, and come in a size range of 14-21" in 1" increments.
TYPE 'R' bicycles are considered road bikes, and come in a size range of 46-60cm in 2cm increments.
Bicycles that have an ORDERDATE of >= 7 days are considered INSTOCK=Y; otherwise, INSTOCK=N.
| Image | Data |
|---|---|
SKU - C800 NAME - Carver 800 TYPE - R PRICE - $800 |
|
SKU - F1200 NAME - Flyer 1200 TYPE - R PRICE - $1200 |
|
SKU - I1600 NAME - Infinity 1600 TYPE - R PRICE - $1750 |
|
SKU - A2500 NAME - Americana 2500 TYPE - R PRICE - $2000 |
|
SKU - C5200 NAME - Cutter 5200 TYPE - R PRICE - $3000 |
|
SKU - LS900 NAME - Led Sled 900 TYPE - M PRICE - $6800 |
|
SKU - S1100 NAME - Steeler 1100 TYPE - M PRICE - $900 |
|
SKU - RJ4500 NAME - RockJumper 4500 TYPE - M PRICE - $1400 |
|
SKU - M4S6000 NAME - M4 Sport 6000 TYPE - M PRICE - $1800 |
|
| SKU - SLP8800 NAME - StumpLeaper Pro 8800 TYPE - M PRICE - $2400 |
Now that you have seen how the uBike back-end services work, you have the context needed to continue with the tutorial.
Click here to go back to previous page