none
Receiving an XML message in Logic Apps RRS feed

  • Question

  • Hi all,

    Is there a way for Logic Apps to receive an inbound XML message please?  I noticed that you can create an integration account in Azure but this appears to be quite costly.  Is there another way to do this please?

    Thanks.

    Tuesday, October 22, 2019 1:19 AM

Answers

  • Hi,
    an integration account is not necessarily needed for the mere reception of an xml message in Logic Apps. 
    The same applies to routing the xml message within your Logic Apps.

    Yet, an integration account with Logic Apps is needed in the following cases:

    1. Validation of the xml message against a given xml schema with the XML action inside Logic Apps.
    2. Mapping / Transformation of the xml message with the XML action inside Logic Apps.

    hth

    Paul Endras |  ENDRAS IT CONSULTING

    If this answers your question and is a helpful post, please click Vote As Helpful, Propose As Answer, and/orMark As Answer.
    • Marked as answer by TRX123456 Wednesday, November 13, 2019 1:41 AM
    Tuesday, October 22, 2019 2:40 PM

All replies

  • You should be able to nest a Function App in a Logic App. Use NewtonSoft (In Function App) to support the parsing XML>JSON, JSON>XML. You can certainly accept a POST containing XML content.

    public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
    {
        string body = await req.Content.ReadAsStringAsync();    
        XmlDocument doc = new XmlDocument();
        doc.LoadXml(body);
    }

    You can also follow the below blogs which discuss about this.

    Creating an XML JSON Converter in Azure Functions

    Or 

     As you alreadymentioned about the Integration account . https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-enterprise-integration-xml

    Tuesday, October 22, 2019 3:53 AM
    Moderator
  • Hi,
    an integration account is not necessarily needed for the mere reception of an xml message in Logic Apps. 
    The same applies to routing the xml message within your Logic Apps.

    Yet, an integration account with Logic Apps is needed in the following cases:

    1. Validation of the xml message against a given xml schema with the XML action inside Logic Apps.
    2. Mapping / Transformation of the xml message with the XML action inside Logic Apps.

    hth

    Paul Endras |  ENDRAS IT CONSULTING

    If this answers your question and is a helpful post, please click Vote As Helpful, Propose As Answer, and/orMark As Answer.
    • Marked as answer by TRX123456 Wednesday, November 13, 2019 1:41 AM
    Tuesday, October 22, 2019 2:40 PM