You can add below lines into the spring configuration file <conduit name=“*.http-conduit" xmlns:sec="http://cxf.apache.org/configuration/security" xmlns="http://cxf.apache.org/transports/http/configuration"> <authorization> <sec:UserName>myuser</sec:UserName> <sec:Password>mypasswd</sec:Password> <sec:AuthorizationType>Basic</sec:AuthorizationType> </authorization> </conduit>
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On January 6, 2014 at 6:50:52 PM, Akshat Tandon (akshat....@gmail.com) wrote: > > Hi All, > > I'm new to Apache Camel and CXF, > > I'm trying to create a route for querying a remote WS which requires > Basic > Authentication and to specify the SoapAction header. > > I was able to achieve the same using camel http component but i > needed the > same with camel cxf in java dsl . > > > Example the sample url is > > https://demo017.service-now.com/u_ntq001.do?WSDL > > username/password ==> admin/admin > > Can anyone guide us in fixing the same > > > *Thanks and RegardsAkshat Tandon* >