You are designing a mediation module that retrieves a stock value from an external Stock Quote service. In addition, you want to persist the customer information throughout the request and response flows. The XSL Transformation primitive can be used to map from one message to another, or to change the content of a message. In this sample, we will do both. You will map the message between the requester and service provider, as well as persist a property in the message context.
You will be creating the XSL Transformation primitive to map the following operations:
source operation | attribute | target operation | attribute |
---|---|---|---|
StockQuoteRequester | symbol | StockQuoteService | stockSymbol |
StockQuoteRequester | value | StockQuoteService | stockValue |
This sample applies to mediation flows and can be run on WebSphere® ESB Server or WebSphere Process Server.
Mediation module
The diagram below shows the elements of the mediation module, named XSLTransform, in the Assembly Editor: