WSRR artifacts created in the SOA Policy Gateway Basic Runtime Sample

The WSRR artifacts created in the SOA Policy Gateway Basic Runtime Sample pattern, and how the sample uses them.

Table 1. WSRR artifacts created for the SOA Policy Gateway Basic Runtime Sample pattern
Object Description
Organization Bob's Warehouse.
Business Capability Warehouse, owned by the Bob's Warehouse organization.
Service Version Store 1.0 uses the Store Web Service, the Store Service Level Definition (SLD), and Warehouse Business Capability.
WSDL Store.wsdl
XSD Company.xsd
Policy
  • Validate.xml
  • RouteForGold.xml
  • LogEveryTime.xml
  • RejectAfter5MsgIn90Seconds.xml
Policy Attachments
  • Anonymous Users_GenericObject_Anonymous Users_LogEveryTime.xml - Attaches the LogEveryTime policy to the Anonymous Users Service Level Agreement (SLA).
  • Gold SLA_GenericObject_Gold SLA_RouteForGold.xml - Attaches the RouteForGold policy to the Gold SLA.
  • Store_GenericObject_Store_urn :RejectAfter5MsgIn90Seconds.xml - Attaches the RejectAfter5MsgIn90Seconds policy to the Store SLD.
  • Store_GenericObject_Store_urn:Validate.xml - Attaches the Validate policy to the Store SLD.
SLD Store SLD - Used by the Store 1.0 Service Version.
SLA Gold SLA - Routes to the Gold endpoint if the ContextId is Gold.
Anonymous SLA Anonymous Users - Uses the LogEveryTime policy notification and is performed if the ContextId is not Gold.

Sample application use of WSRR artifacts

The StoreWSP uses a WSRR Subscription to retrieve WSDL and policy artifacts. Whenever a request is processed through StoreWSP, the following actions are taken:
  1. The Store 1.0 service version is connected to the Store SLD, that has two direct policies attached, Validate and RejectAfter5MsgIn90Seconds. The order the policies are run is indeterminate.
    1. If 5 requests have occurred in the last 90 seconds the request is rejected.
    2. The request is validated against Store.wsdl with its associated Company.xsd.
  2. The Store 1.0 service uses the Store SLD, that has two SLAs; the Gold SLA for use with Gold users and the Anonymous Users SLA for all other users. If the ContextId attribute is Gold the request is routed to the StoreMockServiceAlternate XML Firewall, otherwise if it is Silver or any other value, the Anonymous Users SLA takes over and the LogEveryTime policy is run. This puts a notification in the default.log of the Sample domain. This notification can only be seen if the debug mode is enabled on the domain. The message is then routed to the StoreMockService XML firewall.

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_sample_wsrr_artifacts.htm