Layer7 API Management

  • 1.  How to display the contents of a soap message context variable?

    Posted Jul 06, 2015 09:14 AM

    I have saved the request.mainpart in a context variable and the encrypted it. Now I wish to send the same as response to the requestor. But all I could see is com.17tech.message.Message@7b90e043. Also, is there any way to copy this context variable contents to response as we do in "Copy request to response"?

     

    Message was edited by: Leif Bildoy Removing Categories for OTK and MAG



  • 2.  Re: How to display the contents of a soap message context variable?
    Best Answer

    Broadcom Employee
    Posted Jul 08, 2015 12:47 PM

    To display the contents of the message context variable you made, just call upon it in similar fashion to the request, ${request.mainpart}. For example: ${<variablename>.mainpart}. Although if you encrypted it, you may need to decrypt first depending on the use case.

     

    Also you can select a custom response to be sent to an endpoint in your route assertion. (Example below)

    Capture.JPG