camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm O hEigeartaigh <cohei...@apache.org>
Subject Re: WSDoAllReceiver: Incoming message does not contain required Security header
Date Thu, 12 Sep 2013 08:48:56 GMT
"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 <279125393@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message