You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by hutao1 <27...@qq.com> on 2013/09/11 12:10:59 UTC
WSDoAllReceiver: Incoming message does not contain required
Security header
camel-config.xml :
<bean id="logIn" class="org.apache.cxf.interceptor.LoggingInInterceptor" />
<bean id="logOut" class="org.apache.cxf.interceptor.LoggingOutInterceptor"
/>
<bean id="saajOut"
class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor" />
<bean id="wss4jOut"
class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
<constructor-arg>
<map>
<entry key="action" value="UsernameToken Timestamp" />
<entry key="mustUnderstand" value="0" />
<entry key="passwordType" value="PasswordDigest" />
<entry key="user" value="iloyal-web" />
<entry key="passwordCallbackRef">
<ref bean="clientPasswordCallback" />
</entry>
</map>
</constructor-arg>
</bean>
<bean id="clientPasswordCallback"
class="com.ibsplc.iloyal.ClientPasswordCallback">
<property name="passwords">
<map>
<entry key="iloyal-web" value="iloyal123" />
<entry key="travel-sky" value="CEAEMsky" />
</map>
</property>
</bean>
<bean id="enrichBean"
class="org.apache.camel.example.cxf.proxy.EnrichBean"/>
<cxf:cxfEndpoint id="reportAuthIncident"
address="http://172.21.127.200:${proxy.port}/camel-example-cxf-proxy/webservices/authMember"
endpointName="s:AuthenticateMember"
serviceName="s:AuthenticateMemberService"
wsdlURL="http://172.20.35.232:5220/cea-ws/services/AuthenticateMemberService?wsdl"
xmlns:s="http://www.ibsplc.com/iloyal/member/authenticatemember/wsdl" >
<cxf:inInterceptors>
<ref bean="logIn" />
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="saajOut" />
<ref bean="wss4jOut" />
<ref bean="logOut" />
</cxf:outInterceptors>
</cxf:cxfEndpoint>
<camel:camelContext xmlns="http://camel.apache.org/schema/spring"
id="context1">
property which contains port number -->
<propertyPlaceholder id="properties"
location="classpath:incident.properties,file:target/custom.properties"/>
<camel:endpoint id="callAuthRealWebService"
uri="http://172.20.35.232:5220/cea-ws/services/AuthenticateMemberService?throwExceptionOnFailure=false"/>
<camel:route>
<camel:from uri="cxf:bean:reportAuthIncident?dataFormat=MESSAGE"/>
<camel:to uri="log:input"/>
<camel:to uri="bean:enrichBean"/>
<camel:to ref="callAuthRealWebService"/>
<to uri="log:output"/>
</camel:route>
</camel:camelContext>
reqest soap info:
ID: 1
Address:
http://172.21.127.200:1101/camel-example-cxf-proxy/webservices/authMember?wsdl
Encoding: UTF-8
Content-Type: text/xml
Headers: {Accept=[*/*], SOAPAction=[""]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp wsu:Id="TS-2">
<wsu:Created>2013-09-10T04:40:29.257Z</wsu:Created>
<wsu:Expires>2013-09-10T04:45:29.257Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken wsu:Id="UsernameToken-1">
<wsse:Username>iloyal-web</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">K9Mq5YLweilnTkkt7NrS6R8m6MM=</wsse:Password>
<wsse:Nonce
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">JGVHyVcyfZ4eNzoJhR5Yww==</wsse:Nonce>
<wsu:Created>2013-09-10T04:40:29.255Z</wsu:Created>
</wsse:UsernameToken></wsse:Security>
</soap:Header>
<soap:Body><ns2:AuthenticateMemberRequest
xmlns:ns2="http://www.ibsplc.com/iloyal/member/authenticatemember/type/"><companyCode>MU</companyCode><programCode>CEAEM</programCode><membershipNumber>600260209668</membershipNumber><txnHeader><transactionID>ABF3DF2C805EEE88ABC39E4747832EEC</transactionID><userName>ADMIN</userName><timeStamp>2013-09-10T00:40:28.974+08:00</timeStamp></txnHeader></ns2:AuthenticateMemberRequest></soap:Body></soap:Envelope>
-------------------------------------------------------------------------
request soap error:
ID: 1
Response-Code: 500
Encoding: ISO-8859-1
Content-Type: text/xml
Headers: {Accept=[*/*], breadcrumbId=[ID-hut-55891-1378861098504-0-2],
content-type=[text/xml], Host=[172.21.127.200:1101],
Server=[Jetty(7.5.4.v20111024)], Set-Cookie=[FFP_BALANCER_ROUTEID=.5022;
path=/], transfer-encoding=[chunked], User-Agent=[Apache CXF 2.6.9],
X-Powered-By=[Servlet/2.5 JSP/2.1]}
Payload: <faultstring>WSDoAllReceiver: Incoming message does not contain
required Security header</faultstring>
please why?
--
View this message in context: http://camel.465427.n5.nabble.com/WSDoAllReceiver-Incoming-message-does-not-contain-required-Security-header-tp5739114.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: WSDoAllReceiver: Incoming message does not contain required
Security header
Posted by hutao1 <27...@qq.com>.
but server service is cxf ,now error stack is:
ID: 1
Response-Code: 500
Encoding: UTF-8
Content-Type: text/xml;charset=UTF-8
Headers: {Content-Length=[1393], content-type=[text/xml;charset=UTF-8],
Server=[Jetty(7.5.4.v20111024)]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Exception
occurred during execution on the exchange: Exchange[Message:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Timestamp
wsu:Id="TS-2"><wsu:Created>2013-09-12T10:10:47.464Z</wsu:Created><wsu:Expires>2013-09-12T10:15:47.464Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken
wsu:Id="UsernameToken-1"><wsse:Username>iloyal-web</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">BgE1gaaq1o6pEo5r87csdeNT2iE=</wsse:Password><wsse:Nonce
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">Xo2b4frXr6eItwBcXdF2Qw==</wsse:Nonce><wsu:Created>2013-09-12T10:10:47.463Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns2:AuthenticateMemberRequest
xmlns:ns2="h... [Body clipped after 1000 chars, total length is
1414]]</faultstring></soap:Fault></soap:Body></soap:Envelope>
--------------------------------------
javax.xml.ws.soap.SOAPFaultException: Exception occurred during execution on
the exchange: Exchange[Message: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Timestamp
wsu:Id="TS-2"><wsu:Created>2013-09-12T10:10:47.464Z</wsu:Created><wsu:Expires>2013-09-12T10:15:47.464Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken
wsu:Id="UsernameToken-1"><wsse:Username>iloyal-web</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">BgE1gaaq1o6pEo5r87csdeNT2iE=</wsse:Password><wsse:Nonce
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">Xo2b4frXr6eItwBcXdF2Qw==</wsse:Nonce><wsu:Created>2013-09-12T10:10:47.463Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns2:AuthenticateMemberRequest
xmlns:ns2="h... [Body clipped after 1000 chars, total length is 1414]]
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156)
at $Proxy72.authenticateMember(Unknown Source)
at
org.apache.camel.example.reportincident.MyReportIncidentRoutesTest.runTest(MyReportIncidentRoutesTest.java:184)
at
org.apache.camel.example.reportincident.MyReportIncidentRoutesTest.testReportIncident(MyReportIncidentRoutesTest.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.cxf.binding.soap.SoapFault: Exception occurred during
execution on the exchange: Exchange[Message: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Timestamp
wsu:Id="TS-2"><wsu:Created>2013-09-12T10:10:47.464Z</wsu:Created><wsu:Expires>2013-09-12T10:15:47.464Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken
wsu:Id="UsernameToken-1"><wsse:Username>iloyal-web</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">BgE1gaaq1o6pEo5r87csdeNT2iE=</wsse:Password><wsse:Nonce
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">Xo2b4frXr6eItwBcXdF2Qw==</wsse:Nonce><wsu:Created>2013-09-12T10:10:47.463Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns2:AuthenticateMemberRequest
xmlns:ns2="h... [Body clipped after 1000 chars, total length is 1414]]
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
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:262)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:811)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1694)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1530)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1438)
at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:50)
at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:229)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:660)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:541)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
... 27 more
--
View this message in context: http://camel.465427.n5.nabble.com/WSDoAllReceiver-Incoming-message-does-not-contain-required-Security-header-tp5739114p5739250.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: WSDoAllReceiver: Incoming message does not contain required
Security header
Posted by Colm O hEigeartaigh <co...@apache.org>.
Right, but the error message indicates an Axis error, so you must not be
using CXF on the recipient side.
Colm.
On Thu, Sep 12, 2013 at 10:34 AM, hutao1 <27...@qq.com> wrote:
> hi,Colm
>
> use cxf 2.6.9 version
>
> error:
> Stacktrace
>
> ---------------------------------------------------------------------------------------------------------------------------------------
> org.apache.camel.CamelExecutionException: Exception occurred during
> execution on the exchange: Exchange[Message: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
> "><soap:Header><wsse:Security
> xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> "
> xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "><wsu:Timestamp
>
> wsu:Id="TS-2"><wsu:Created>2013-09-12T09:04:19.842Z</wsu:Created><wsu:Expires>2013-09-12T09:09:19.842Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken
>
> wsu:Id="UsernameToken-1"><wsse:Username>iloyal-web</wsse:Username><wsse:Password
> Type="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest
> ">MgAqAFHtbnYbQxSucZKsvssi2QU=</wsse:Password><wsse:Nonce
> EncodingType="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary
> ">rtFaCVGcBvCyi38ysiYmxQ==</wsse:Nonce><wsu:Created>2013-09-12T09:04:19.841Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns2:AuthenticateMemberRequest
> xmlns:ns2="h... [Body clipped after 1000 chars, total length is 1414]]
> at
>
> org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1360)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.builder.ExpressionBuilder$38.evaluate(ExpressionBuilder.java:938)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.component.bean.MethodInfo$2.evaluateParameterBinding(MethodInfo.java:571)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:466)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:239)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:278)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:180)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:143)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:67)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:103)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:71)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[camel-core-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:92)[camel-cxf-2.12.0.jar:2.12.0]
> at
>
> org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:72)[camel-cxf-2.12.0.jar:2.12.0]
> at
>
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)[cxf-2.6.9.jar:2.6.9]
> at
>
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_21]
> at
>
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_21]
> at
> java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_21]
> at
>
> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[cxf-2.6.9.jar:2.6.9]
> at
>
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)[cxf-2.6.9.jar:2.6.9]
> at
>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[cxf-2.6.9.jar:2.6.9]
> at
>
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[cxf-2.6.9.jar:2.6.9]
> at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)[cxf-rt-transports-http-jetty-2.6.2.jar:2.6.2]
> at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)[cxf-rt-transports-http-jetty-2.6.2.jar:2.6.2]
> at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[cxf-rt-transports-http-jetty-2.6.2.jar:2.6.2]
> at
>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.server.Server.handle(Server.java:349)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)[jetty-http-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)[jetty-http-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[jetty-io-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[jetty-io-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
> at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
> at java.lang.Thread.run(Thread.java:619)[:1.6.0_21]
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/WSDoAllReceiver-Incoming-message-does-not-contain-required-Security-header-tp5739114p5739243.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com
Re: WSDoAllReceiver: Incoming message does not contain required
Security header
Posted by hutao1 <27...@qq.com>.
hi,Colm
use cxf 2.6.9 version
error:
Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: Exchange[Message: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Timestamp
wsu:Id="TS-2"><wsu:Created>2013-09-12T09:04:19.842Z</wsu:Created><wsu:Expires>2013-09-12T09:09:19.842Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken
wsu:Id="UsernameToken-1"><wsse:Username>iloyal-web</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">MgAqAFHtbnYbQxSucZKsvssi2QU=</wsse:Password><wsse:Nonce
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">rtFaCVGcBvCyi38ysiYmxQ==</wsse:Nonce><wsu:Created>2013-09-12T09:04:19.841Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns2:AuthenticateMemberRequest
xmlns:ns2="h... [Body clipped after 1000 chars, total length is 1414]]
at
org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1360)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.builder.ExpressionBuilder$38.evaluate(ExpressionBuilder.java:938)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.component.bean.MethodInfo$2.evaluateParameterBinding(MethodInfo.java:571)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:466)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:239)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:278)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:180)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:143)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:67)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:103)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:71)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[camel-core-2.12.0.jar:2.12.0]
at
org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:92)[camel-cxf-2.12.0.jar:2.12.0]
at
org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:72)[camel-cxf-2.12.0.jar:2.12.0]
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)[cxf-2.6.9.jar:2.6.9]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_21]
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_21]
at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_21]
at
org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[cxf-2.6.9.jar:2.6.9]
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)[cxf-2.6.9.jar:2.6.9]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[cxf-2.6.9.jar:2.6.9]
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[cxf-2.6.9.jar:2.6.9]
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)[cxf-rt-transports-http-jetty-2.6.2.jar:2.6.2]
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)[cxf-rt-transports-http-jetty-2.6.2.jar:2.6.2]
at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[cxf-rt-transports-http-jetty-2.6.2.jar:2.6.2]
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.server.Server.handle(Server.java:349)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)[jetty-http-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)[jetty-http-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[jetty-io-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[jetty-io-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
at java.lang.Thread.run(Thread.java:619)[:1.6.0_21]
--
View this message in context: http://camel.465427.n5.nabble.com/WSDoAllReceiver-Incoming-message-does-not-contain-required-Security-header-tp5739114p5739243.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: WSDoAllReceiver: Incoming message does not contain required
Security header
Posted by Colm O hEigeartaigh <co...@apache.org>.
"WSDoAllReceiver" is an old WSS4J class used by Axis. Could you post the
stacktrace on the Axis side or at least the configuration that the service
is using?
Colm.
On Wed, Sep 11, 2013 at 11:10 AM, hutao1 <27...@qq.com> wrote:
> camel-config.xml :
>
> <bean id="logIn" class="org.apache.cxf.interceptor.LoggingInInterceptor" />
> <bean id="logOut"
> class="org.apache.cxf.interceptor.LoggingOutInterceptor"
> />
> <bean id="saajOut"
> class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor" />
> <bean id="wss4jOut"
> class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
> <constructor-arg>
> <map>
> <entry key="action" value="UsernameToken
> Timestamp" />
> <entry key="mustUnderstand" value="0" />
> <entry key="passwordType"
> value="PasswordDigest" />
> <entry key="user" value="iloyal-web" />
> <entry key="passwordCallbackRef">
> <ref bean="clientPasswordCallback"
> />
> </entry>
> </map>
> </constructor-arg>
> </bean>
> <bean id="clientPasswordCallback"
> class="com.ibsplc.iloyal.ClientPasswordCallback">
> <property name="passwords">
> <map>
> <entry key="iloyal-web"
> value="iloyal123" />
> <entry key="travel-sky"
> value="CEAEMsky" />
> </map>
> </property>
> </bean>
>
> <bean id="enrichBean"
> class="org.apache.camel.example.cxf.proxy.EnrichBean"/>
> <cxf:cxfEndpoint id="reportAuthIncident"
>
> address="http://172.21.127.200:
> ${proxy.port}/camel-example-cxf-proxy/webservices/authMember"
> endpointName="s:AuthenticateMember"
> serviceName="s:AuthenticateMemberService"
>
> wsdlURL="
> http://172.20.35.232:5220/cea-ws/services/AuthenticateMemberService?wsdl"
>
> xmlns:s="http://www.ibsplc.com/iloyal/member/authenticatemember/wsdl" >
>
> <cxf:inInterceptors>
> <ref bean="logIn" />
> </cxf:inInterceptors>
> <cxf:outInterceptors>
> <ref bean="saajOut" />
> <ref bean="wss4jOut" />
> <ref bean="logOut" />
> </cxf:outInterceptors>
>
> </cxf:cxfEndpoint>
>
>
> <camel:camelContext xmlns="http://camel.apache.org/schema/spring"
> id="context1">
> property which contains port number -->
> <propertyPlaceholder id="properties"
> location="classpath:incident.properties,file:target/custom.properties"/>
> <camel:endpoint id="callAuthRealWebService"
> uri="
> http://172.20.35.232:5220/cea-ws/services/AuthenticateMemberService?throwExceptionOnFailure=false
> "/>
> <camel:route>
>
> <camel:from uri="cxf:bean:reportAuthIncident?dataFormat=MESSAGE"/>
>
> <camel:to uri="log:input"/>
> <camel:to uri="bean:enrichBean"/>
> <camel:to ref="callAuthRealWebService"/>
> <to uri="log:output"/>
> </camel:route>
> </camel:camelContext>
>
> reqest soap info:
>
> ID: 1
> Address:
>
> http://172.21.127.200:1101/camel-example-cxf-proxy/webservices/authMember?wsdl
> Encoding: UTF-8
> Content-Type: text/xml
> Headers: {Accept=[*/*], SOAPAction=[""]}
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Header>
> <wsse:Security
> xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> "
> xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> ">
> <wsu:Timestamp wsu:Id="TS-2">
> <wsu:Created>2013-09-10T04:40:29.257Z</wsu:Created>
> <wsu:Expires>2013-09-10T04:45:29.257Z</wsu:Expires>
> </wsu:Timestamp>
> <wsse:UsernameToken wsu:Id="UsernameToken-1">
> <wsse:Username>iloyal-web</wsse:Username>
> <wsse:Password
> Type="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest
> ">K9Mq5YLweilnTkkt7NrS6R8m6MM=</wsse:Password>
> <wsse:Nonce
> EncodingType="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary
> ">JGVHyVcyfZ4eNzoJhR5Yww==</wsse:Nonce>
> <wsu:Created>2013-09-10T04:40:29.255Z</wsu:Created>
> </wsse:UsernameToken></wsse:Security>
> </soap:Header>
> <soap:Body><ns2:AuthenticateMemberRequest
> xmlns:ns2="http://www.ibsplc.com/iloyal/member/authenticatemember/type/
> "><companyCode>MU</companyCode><programCode>CEAEM</programCode><membershipNumber>600260209668</membershipNumber><txnHeader><transactionID>ABF3DF2C805EEE88ABC39E4747832EEC</transactionID><userName>ADMIN</userName><timeStamp>2013-09-10T00:40:28.974+08:00</timeStamp></txnHeader></ns2:AuthenticateMemberRequest></soap:Body></soap:Envelope>
>
> -------------------------------------------------------------------------
>
> request soap error:
> ID: 1
> Response-Code: 500
> Encoding: ISO-8859-1
> Content-Type: text/xml
> Headers: {Accept=[*/*], breadcrumbId=[ID-hut-55891-1378861098504-0-2],
> content-type=[text/xml], Host=[172.21.127.200:1101],
> Server=[Jetty(7.5.4.v20111024)], Set-Cookie=[FFP_BALANCER_ROUTEID=.5022;
> path=/], transfer-encoding=[chunked], User-Agent=[Apache CXF 2.6.9],
> X-Powered-By=[Servlet/2.5 JSP/2.1]}
> Payload: <faultstring>WSDoAllReceiver: Incoming message does not contain
> required Security header</faultstring>
>
>
> please why?
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/WSDoAllReceiver-Incoming-message-does-not-contain-required-Security-header-tp5739114.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com