Hi, I am having lot of issues invoking an external REST web service url from my Camel route. This is my code snippet:-
public class DocumentCountRouteBuilder extends RouteBuilder { public void configure() { ... from(documentServiceEndpoint) .routeId(documentRequestType) .unmarshal(format) .log(LoggingLevel.INFO, this.getClass().getCanonicalName(), "*** Starting document count retrieve for ${in.body.documentID} **" + "docUID:" + docUID) .setHeader(Exchange.HTTP_METHOD, constant("GET")) .setHeader(Exchange.HTTP_URI, simple("http://rq3l2hps1:9081/V5/ECM/Rest/content/filenet/ClaimsTargetOS/TempClaimCenterDocument/Count?GWCC_DocUID=" + docUID + "&authMethod=Basic&authUsername=" + username + "&authPassword=" + password + "&httpClient.authenticationPreemptive=true")) .toF("http://url") .transform(responseTransformer) .marshal(format); I see the following in my WAS logs:- [6/30/14 11:15:10:521 EDT] 00000022 AuthChallenge I org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme basic authentication scheme selected [6/30/14 11:15:10:531 EDT] 00000022 HttpMethodDir I org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge No credentials available for BASIC 'www.aoins.com'@rq3l2hps1:9081 and get back a 401 response from the server. What am I doing wrong? I tried all possible options. I need to be able to pass the value of GWCC_DocUID at runtime. -- View this message in context: http://camel.465427.n5.nabble.com/Issues-invoking-external-URL-with-Http-Basic-Auth-tp5753061.html Sent from the Camel - Users mailing list archive at Nabble.com.