Hi,
I have created a Camel Project and proxied a legacy WebService (running in WebSphere) using (blueprint.xml) that has a Basic Auth enabled. I have modified my blueprint.xml as follows so as to pass in the Auth Credentials. But I am still running into the below error
Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '401: Unauthorized' when communicating
Can somebody kindly point me in the right direct on how to pass the credentials in the blueprint.xml?
Blueprint configuration
<http:conduit name="{http://namespace/}EndpointPort.http-conduit">
<http:authorization>
<sec:UserName>username</sec:UserName>
<sec:Password>password</sec:Password>
</http:authorization>
</http:conduit>
<camelContext id="blueprintContext" trace="false" xmlns="http://camel.apache.org/schema/blueprint">
<route id="proxy">
<from uri="jetty:http://0.0.0.0:8282/cxf/PersonServiceCF?matchOnUriPrefix=true" />
<to uri="jetty:http://localhost:55044/webapp/webservices?bridgeEndpoint=true&throwExceptionOnFailure=false"/>
</route>
</camelContext>
Environment Details: JBoss Fuse 6.1
Hi,
The configuration http:conduit is for cxf endpoint only, but in your camel DSL, you use jetty endpoint
from uri="jetty
to uri="jetty:
So that the configuration for cxf won't take effect.
Freeman