The XSLT Service Engine supports the following use cases:
Request-Reply
(requestReplyService) |
Invoke-Send
(filterOneWay) |
Request-Invoke-Reply Chain
(filterRequestReply) |
Request-Reply is a standard request-reply scenario. An XML message request is transformed and the result is sent back to the original consumer of the XSLT endpoint. The sequence of events includes:
XML message in
XSL transformation of message
Transformed result out
Invoke-Send is a standard one-way invocation. An XML message request is transformed, and the result is sent (not to the original consumer but rather) to another endpoint in the JBI environment. The sequence of events includes:
XML message in
XSL transformation of message
Transformed result out to third party
The Request-Invoke-Reply chain is a representation of the adapter pattern; it applies two separate XSL transformations. This scenario is useful when there are two existing web services which must be integrated even though they have incompatible input and output.
The first existing service acts as a consumer to the XSLT endpoint, sending a request. This message is transformed to match the input of the second service.
The second service is then invoked in an asynchronous manner. When the response from the second service arrives via the NMR, it is transformed to match the expected reply to the first (consuming) service. The sequence of events includes:
XML message in
XSL transformation of message using first XSL style sheet
Invoke service, sending transformed message as input
Receive response from invoked service endpoint
XSL transformation of response using second XSL style sheet
Reply to original sender with transformed third party response