Data Format Transformation


Service API Patterns, Protocols, Coupling Types, Metrics > Service API Proxy and Gateway Patterns > Data Format Transformation

 

Data Format Transformation

How can services interact with programs that communicate with different data formats?

A service may be incompatible with resources it needs to access due to data format disparity. Furthermore, a service consumer that communicates using a data format different from a target service will be incompatible and therefore unable to invoke the service. The Data Format Transformation pattern provides a design solution that introduces intermediary processing logic required to convert one data format to another.

 

 

 

 

 

 

 

 

 

The service consumer sends a message wherein data is formatted using XML. Service A is designed to receive messages with data formatted using JSON. The data format transformation logic invoked by the service API proxy converts the XML message into a JSON message, without making changes to the required data itself.

Module 12: Fundamental Service API Design & Management

This pattern is covered in Module 12: Fundamental Service API Design & Management..

For more information regarding service API design & management courses and accreditation, visit the Service API Specialist program page.