Message transformation is one of the key features expected from an ESB in enterprise integration. Here we will see how to transform a REST/JSON message into a SOAP message, and in the return path a SOAP message into a JSON message.
Let's use the same example we used in explaining the Content-Based Router pattern. There we had the proxy service
CreditCardPaymentService, which accepts payment-processing requests over HTTP, and delegates further processing to different other SOAP based services depending on the type of the credit card such as VISA, AMEX, or Master.
Here we will introduce a REST API from the WSO2 ESB, which will accept requests in JSON, and then ...