Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-09-06 Thread sayed_india
Hello, I am a newbie in Camel and need of some basic authentication for CXF SOAP and REST service. Added the shared code in route builder , but not getting authentication being cheked when accessing. Please share the complete code base . Thanks and Regards, Sayed -- View this message in

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-24 Thread Willem Jiang
FYI, I just add two new options (username, password)[1] to the CXF URI. You can setup URI for basic authentication information. [1]https://issues.apache.org/jira/browse/CAMEL-7145 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-23 Thread manchandap
Thanks Willem, As the CxfProducer is created during the camel context start the route, the cxfEndpoint’s property is not updated. That was my hunch, however i was not able to prove it concretely. I will try your suggestion of updating the property in Route Builder's configure method. Thanks

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-23 Thread manchandap
Looking at the CXF Component Documentation http://camel.apache.org/cxf.html , I notice that two new options (username and password) for Basic Authentication have been added in 2.12.3. http://camel.465427.n5.nabble.com/file/n5746426/Untitled.png However, from the download, I am not able to

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-23 Thread manchandap
Was able to get this working by adding the following code to the Route Builder. I am using Java DSL: MapString, Object properties = new HashMapString, Object(); AuthorizationPolicy authPolicy = new AuthorizationPolicy();

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-21 Thread Willem Jiang
Hi, If you set the cxfEndpoint property in a processor, it’s a setting of runtime. As the CxfProducer is created during the camel context start the route, the cxfEndpoint’s property is not updated. My suggestion is you set the cxfEndpoint property in the route builder configure method instead

Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-19 Thread P Manchanda
Respected Camel Experts, I am trying to access a web service that requires basic authentication. I am able to access using the CXF's JaxWsDynamicClientFactory. The code piece for auth looks like:            JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();