Layer7 API Management

  • 1.  How to customise the exception message?

    Posted Jun 21, 2018 10:51 PM

    Hi Support Team,

     

    Could you please suggest how we can customize below message through Policy Manager 9.3? We don't want to give below message to the end user as and when service fault. Instead we want to give more sensible business exception message.

     

     <soapenv:Fault>
             <faultcode>soapenv:Server</faultcode>
             <faultstring>Policy Falsified</faultstring>



  • 2.  Re: How to customise the exception message?
    Best Answer

    Posted Jun 22, 2018 12:45 AM

    You can use the Customize SOAP Fault or Customize Error Response assertions, depending on your specific needs. Here are the doc pages for them:

    Customize SOAP Fault Response Assertion - CA API Gateway - 9.3 - CA Technologies Documentation 

    Customize Error Response Assertion - CA API Gateway - 9.3 - CA Technologies Documentation