Transform messages with the XSLT Web API

It's really easy to transform an XML or JSON message using the XSLT Web API.
You only have to post a message to the Web API and specify the XSLT file you want to use.

You can use code to call the Web API but you can also use tool like Postman to test it for example.

Select POST and enter:{XSLT filename} in the Request URL.

You must authenticate every API request by including an "Ocp-Apim-Subscription-Key" header.
This header should include your API Key that has already been assigned the necessary permissions.
Click here for more information.

Content Headers
Use the Content-Type header to specify if you want to send an XML or JSON document.
Use the Accept header to specify if you want to retrieve an XML or JSON document.

Postman - Headers for XSLT API

Request Body
In the Body select the raw radio button and then enter the XML or JSON message that you want to transform.
Click on the Send button to transform the message.

Postman - Transform an XML message with XSLT API