The sample application

The sample application is a configurable DataPower® Domain and a set of WSRR Artifacts that can be used to demonstrate the capabilities of the pattern.

The basic scenario in the sample application is an inventory application for a store (Warehouse). There is a Store web service that has three operations:
The basic service level definition (SLD) contains two mediation policies:

The consumers of this service currently have two Service Level Agreements (SLAs), Gold and Anonymous. If the customer context in the HTTP header is Gold, they are routed to the Alternate endpoint immediately. If they are anonymous, that is currently not gold, they go to the Store Mock Service endpoint, which has a different price value for the item.

The scenario also performs authorization for the findInventory operation, based upon user group membership. Figure 1 shows the flow of the application with each box representing a different DataPower gateway.

Figure 1. The sample application flow diagramThe incoming request has a SKU ID and Basic authentication, security goes to the StoreAddLTPA then StoreWSP where the request is authenticated using the LTPA token. If the user is a Gold user the request is sent to the StoreAlternateMockService, and if not the request is sent to the StoreMockService. If the user is a manager the response contains all of the data, and if not the response is the redacted price data.

Concept Concept

Feedback

Timestamp icon Last updated: Thursday, 3 July 2014
http://publib.boulder.ibm.com/infocenter/prodconn/v1r0m0/topic/com.ibm.scenarios.soawdpwsrr.doc/topics/csoa2_samples.htm