javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the <wsse:Security> header ---------------------------------------------------------------------------------------------------
Key: CXF-1814 URL: https://issues.apache.org/jira/browse/CXF-1814 Project: CXF Issue Type: Bug Affects Versions: 2.1.2 Environment: Win2K/Tomcat 5/JDK 6 Reporter: Charles Moulliard Here is the error returned when I call the web service from my client. This error occurs when ws-security through interceptors is activated. I have implmented the following tutorial (http://www.lumidant.com/blog/apache-cxf-tutorial-ws-security-with-spring/) INFO: Outbound Message --------------------------- Encoding: UTF-8 Headers: {SOAPAction=[""], Accept=[*]} Messages: Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getEmployee xmlns:ns2="http://service.auth.xpectis.com/"><gid>0123456</gid></ns2:getEmployee></soap:Body></soap:Envelope> -------------------------------------- 23-sept.-2008 12:46:57 org.apache.cxf.interceptor.LoggingInInterceptor logging INFO: Inbound Message ---------------------------- Encoding: UTF-8 Headers: {content-type=[text/xml;charset=UTF-8], connection=[close], Date=[Tue, 23 Sep 2008 10:46:57 GMT], Content-Length=[361], Server=[Apache-Coyote/1.1]} Messages: Message: Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:InvalidSecurity</faultcode><faultstring>An error was discovered processing the <wsse:Security> header</faultstring></soap:Fault></soap:Body></soap:Envelope> -------------------------------------- Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the <wsse:Security> header at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:199) at $Proxy43.getEmployee(Unknown Source) at com.xpectis.auth.client.Client.main(Client.java:25) Caused by: org.apache.cxf.binding.soap.SoapFault: An error was discovered processing the <wsse:Security> header at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70) at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69) at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2029) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1865) at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47) at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:170) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:593) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.