Is there a way to output valid SOAP error messages for things like "Authentication Failed" error?

Solution Verified - Updated -

Issue

  • We have tried to put something like the following in the response but are only told that it is invalid:

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
       <s:Body>
          <s:Fault xmlns:w="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
             <faultcode>w:InvalidSecurity</faultcode>
             <faultstring/>
          </s:Fault>
       </s:Body>
    </s:Envelope>
    

    I see the field in the webui says the length is 255, and this is over. Even when I make a shorter version though it tells me it is invalid. Can we not put XML in this field? Is there a way we can make this work?

  • Is there a way to set HTML error messages in Gateway Response > each error definition > Response Body field?

Environment

  • Red Hat 3scale API Management Platform 2.x On-premises

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content