It could be difficult to access the wsdl if you don’t setup the http conduit for it.
You can setup the by setting the CxfEndpoint property like this CxfEndpoint cxfEndpoint = camelContext.getEndpoint(“cxf:xxx”); // set the authentication information Map<String, Object> properties = new HashMap<String, Object>(); org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy = new AuthorizationPolicy(); authPolicy.setUserName(username); authPolicy.setPassword(password); properties.put(AuthorizationPolicy.class.getName(), authPolicy); cxfEndpoint.setProperties(properties); from(“xxx”).to(cxfEndpoint); -- 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 7, 2014 at 7:10:44 PM, akshattandon (akshat....@gmail.com) wrote: > > Thanks Jiang for the response > > can you please provide the java dsl code to achieve the same as > we don't use > spring . > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-cxf-with-basic-authentication-tp5745620p5745666.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >