Data mapping
Data mapping is a very common task when developing services. This task is performed with many integration patterns, some of them quite common, such as the following:
- Message Translator: http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageTranslator.html
- Normalizer: http://www.enterpriseintegrationpatterns.com/patterns/messaging/Normalizer.html
- Canonical Data Model: http://www.enterpriseintegrationpatterns.com/patterns/messaging/CanonicalDataModel.html
This task entails translating, transforming, or converting data from one data format to another, such as XML to JSON. For instance, we may receive a message in our service in the XML format, and we have to send the information within this XML payload to a JSON endpoint and to an XML endpoint in which the XML format is different from the XML format specified in our service contract.
In such situations, we will have to transform the message, or create a new one from the original. To achieve this task, WSO2EI has a mediator...