Layer7 API Management

Expand all | Collapse all

The 2 inputs need to be a Message content type, so we can perform XPath() logic within the Apply XSL Transformation Assertion

  • 1.  The 2 inputs need to be a Message content type, so we can perform XPath() logic within the Apply XSL Transformation Assertion

    Posted 04-22-2019 04:49 PM

    How to send 2 messages to Apply xslt transform to perform lookup and xpath.

    The solution we are using is below.

    1) concatenate the two XML context(type message) variables into one context variable and use the concatenated context variable as the Target Message.



  • 2.  Re: The 2 inputs need to be a Message content type, so we can perform XPath() logic within the Apply XSL Transformation Assertion

    Posted 04-22-2019 07:36 PM

    Dear Anwesh.elisetty ,

    You can set a new context variable as message, and input the body as,

    ${<message1>.mainpart}

    ${<message2>.mainpart}

     

    But you need to ensure the new body has correct xml format. 

     

    Regards,

    Mark