Layer7 API Management

 View Only
  • 1.  Re: Response message trim

    Posted Dec 04, 2019 03:18 PM
    Hello Everyone,

    For one of the interface we are making a outbound request to external client and getting response with some additional characters added in start and end of xml. Is there any option in Gateway to remove the additional characters pass it to backend application and how we can get it done in gateway. Could anyone please help me with that. 

    <string><![CDATA[<?xml version="1.0" encoding="utf-8"?><rfs-pmbc:****************8</rfs-pmbc:Message>]]></string>

    Thanks!
    Prem.


  • 2.  RE: Re: Response message trim
    Best Answer

    Broadcom Employee
    Posted Dec 04, 2019 03:23 PM
    Hi Prem,

    Are the characters always the same? ie: <string><![CDATA[
    If so you can use our RegEx assertion to remove/replace the data.




  • 3.  RE: Re: Response message trim

    Posted Dec 04, 2019 05:56 PM
    Hi Joe,

    Yes, Characters are always same. 

    Thanks!
    Prem.


  • 4.  RE: Re: Response message trim

    Posted Dec 11, 2019 12:42 PM
    Thanks Joe helping us on that.

    Regards,
    Prem.