Software AG Products 10.11 | Using CentraSite | Runtime Governance | Run-Time Policy Management | Built-In Run-Time Actions Reference (CentraSite Business UI) | Built-in Actions for Run-Time Policies (CentraSite Business UI) | Response Transformation
 
Response Transformation
This action specifies:
*The XSLT transformation file to transform response messages from native APIs into a format required by the client.
In some cases a message needs to be transformed prior to sending to the client.
For example, you may have to accommodate differences between the message content that a native API is capable of submitting and the message content that a client expects. For example, if the native API submits an order record using a slightly different structure than the structure expected by the client, you can use this action to transform the record submitted by the native API to the structure required by the client.
When this action is configured for a proxy API, the native API’s response messages are transformed into the format required by the client, before Mediator returns the responses to the clients.
Input Parameters
Transformation File
(File). Click Choose, select the XSL transformation file from your file system and click OK.
When you virtualize an API, the transformation file is validated. If there are no validation errors, the XSLT file is displayed as a download link in the same dialog. If the transformation file is invalid (for example, non-XSLT file), this is indicated by a warning icon.
Note:
If you make changes to the XSLT file in the future, you must republish the API.
Important:
The XSL file uploaded by the user should not contain the XML declaration in it (for example, xml version=1.0 encoding="UTF-8"). This is because when the API is published to Mediator, Mediator embeds the XSL file in the virtual service definition (VSD), and since the VSD itself is in XML format, there cannot be an XML declaration line in the middle of it. This can lead to unexpected deployment issues which can be avoided by making sure the XSL file does not contain the declaration line.