Hi.
I'm developing a web service client with Apache CXF 3.1.0 (also test
with 2.7.16). When the soap message validation fails on server I get a
soap fault like this:
Payload: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>wsse:InvalidSecurityToken</faultcode><faultstring>Se
ha proporcionado un token de seguridad
erróneo</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
But when my client tries to unmarshall the fault I get this exception:
java.lang.RuntimeException: Invalid QName in mapping:
wsse:InvalidSecurityToken
at
org.apache.cxf.staxutils.StaxUtils.readQName(StaxUtils.java:1839)
~[cxf-api-2.7.16.jar:2.7.16]
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:64)
~[cxf-rt-bindings-soap-2.7.16.jar:2.7.16]
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51)
~[cxf-rt-bindings-soap-2.7.16.jar:2.7.16]
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40)
~[cxf-rt-bindings-soap-2.7.16.jar:2.7.16]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
[cxf-api-2.7.16.jar:2.7.16]
at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
[cxf-api-2.7.16.jar:2.7.16]
at
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
[cxf-rt-bindings-soap-2.7.16.jar:2.7.16]
at
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
[cxf-rt-bindings-soap-2.7.16.jar:2.7.16]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
[cxf-api-2.7.16.jar:2.7.16]
at
org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:849)
[cxf-api-2.7.16.jar:2.7.16]
............
How to get around this error?
Thanks and best regards.