Announcement Announcement Module
Collapse
No announcement yet.
Configuring fault messages from WsSecurityInterceptor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configuring fault messages from WsSecurityInterceptor

    Is it possible to customise the fault generated by the WsSecurityInterceptor? At the moment it generates a fault that reveals a little too much of the internal implementation. I know you can set a default fault in the exception resolver, but those don't seem to be called for the security interceptors.

    Code:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP-ENV:Header/>
       <SOAP-ENV:Body>
          <SOAP-ENV:Fault>
             <faultcode>SOAP-ENV:Client</faultcode>
             <faultstring xml:lang="en">com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed</faultstring>
          </SOAP-ENV:Fault>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

  • #2
    Hi Bigdan,

    were you able to find any solution for this issue?

    thanks,
    Muein

    Comment

    Working...
    X