Transform Step (Outbound, REST Virtual Service)
Add this step if you need to invoke an XSLT transformation file to transform the native service's response messages into the format required by the consumer applications, before
CloudStreams returns the responses to the consumer applications. For more information about when to use the Transform step, see
Transform Step (REST Virtual Service).
To add the Transform step (outbound):
1. Click the virtual service name in the CloudStreams Governance view.
2. Right-click Out Sequence and click Transform.
The "Transform" step is added under the "Out Sequence" step. You cannot change the order of the steps.
3. Click Transform and complete the following fields in the Properties view.
Name
You can optionally change the step name to any other name. There are no naming convention restrictions.
XSLT Service
The XSLT file to transform the response message before it is returned to the consuming application. Click Browse to select a file from your file system and click Save.
The XSL file uploaded by the user should not contain the XML declaration in it (xml version="1.0" encoding="UTF-8"). This is because when the virtual service is deployed to CloudStreams, CloudStreams 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.
Note: If you make changes to the XSLT file in the future, you must re-deploy the virtual service.
Related Topics