Defining the GetInventoryAvailability mediation flow

The connections are created to define the mediation flow between the GetInventoryAvailability operation of WebSphere Commerce and the getInventory operation of the External OMS Simulator.

Procedure

  1. In the mediation flow diagram for Request: GetInventoryAvailability, add an XSL Transformation primitive named GetInventoryAvailability_getInventoryRequest.
  2. Connect the following terminals:
    Terminal connections to create
    From To
    GetInventoryAvailability : InventoryServicesPortType – out GetInventoryAvailability_getInventoryRequest – in
    GetInventoryAvailability_getInventoryRequest – out getInventory : ExtOMSSimPartner – in

    Terminal connections to create

  3. Create the XML Map for the GetInventoryAvailability_getInventoryRequest XSL Transformation primitive.
  4. In the XML Map, create a custom transformation between the body elements using the custom ExtOMSSimMediationModule > xslt > custom > GetInventoryAvailability_getInventoryRequest.xsl XSL file.
    1. Select the BodyToBody template and select body as the value of the body parameter.
    2. Select File > Save.
    3. Close the XML Map Editor.
  5. In the mediation flow diagram for Response: GetInventoryAvailability, add an XSL Transformation primitive named getInventoryResponse_ShowInventoryAvailability.
  6. Add a Fail primitive named getInventoryFailed and connect the following terminals:
    Terminal connections to create
    From To
    getInventory : ExtOMSSimPartner – out getInventoryResponse_ShowInventoryAvailability – in
    getInventoryResponse_ShowInventoryAvailability – out GetInventoryAvailability : InventoryServicesPortType – in
    getInventory : ExtOMSSimPartner – fail getInventoryFailed – in

    Terminal connections to create

  7. Create the XML Map for the getInventoryResponse_ShowInventoryAvailability XSL Transformation primitive.
  8. In the XML Map, create a custom transformation between the body elements using the custom ExtOMSSimMediationModule > xslt > custom > getInventoryResponse_ShowInventoryAvailability.xsl XSL file.
    1. Select the BodyToBody template and select body as the value of the body parameter.
    2. Select File > Save.
    3. Close the XML Map Editor.