Azure Logic Apps - XSLT with parameters

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Deploy To Azure Deploy To Azure US Gov Visualize

This template creates a request-response Logic App which performs XSLT based transformation. The XSLT map takes primitives (integer, string etc.) as input parameters as uses them during XML transformation.

Deployment steps

You can click the "Deploy to Azure" button at the beginning of this document or follow the instructions for command line deployment using the scripts in the root of this repo.

Usage

Once the deployment is completed, you can perform below steps to test your Logic App:

  • Open the Logic App in the designer to get the HTTP Request endpoint url. ![Image of HTTP request trigger](images/http-request-trigger.png"HTTP request trigger")
  • (Optional) Modify the values for parameters X and Y in the Transform XML action. ![Image of Transform XML action](images/transform-xml-action.png"Transform XML action")
  • Perform HTTP POST operation on the http endpoint obtained from #1 using your favorite HTTP client.
    • Set content-type header to application/xml.
    • Set request body to the content of sample-input.xml (it is present under artifacts folder in this template).
  • On successful execution, the logic app will respond with the transformed message in response body. ![Image of sample request-response](images/request-response.png"Sample request-response")

Notes

Learn more about: Azure Logic Apps

Tags: Logic Apps, Enterprise Integration, XSLT, XML Transform, Microsoft.Logic/integrationAccounts, Microsoft.Logic/integrationAccounts/maps, Microsoft.Logic/workflows, Response, Request