Service Translator is a service implementation pattern which allows a given service implementation to be made available with a different interface. Certain operations on the interface can be restructured or hidden for specific users of that interface.
You can use this pattern to:
The service provider is virtualized by deploying an Enterprise Service Bus (ESB) mediation which implements the proxy interface required by the service requester. The mediation transforms the request appropriately and then routes the request to the actual service provider. The mediation must also process the responses from the target service, transforming them back into the format expected by the client. Clients see only the virtual service provided by the mediation, which to them seems to be the actual provider of the service.
The service mediation can implement a number of additional features, including:
The following diagram illustrates an example of a Service Translation scenario:
The solution is to implement a mediation flow that contains the following:
The request flows map each inbound request to a pre-configured service provider endpoint.
In addition, you have the option to log and trace the request and response messages.