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 create a XSLT map by using the Visual Studio Enterprise Integration SDK or for example another XSLT tool like MapForce and XMLSpy from Altova.
When you are finished creating the XSLT transformation, you upload the XSLT file into your storage account with the File Web API.


In the following example is Postman used to Transform messages but you can also use other tools or languages.

Request URL
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