camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madhu_online1 <madhu741...@gmail.com>
Subject Re: Issues invoking external URL with Http Basic Auth
Date Mon, 30 Jun 2014 16:37:45 GMT
I am wondering how that will take care of my authentication issue. So here is
my new code snippet:-

String docUID = "${in.body.documentID}";
		from(documentServiceEndpoint)				
			.routeId(documentRequestType)	
			.unmarshal(format)
			.log(LoggingLevel.INFO, this.getClass().getCanonicalName(), "*** Starting
document count retrieve for ${in.body.documentID} **" + "docUID:" + docUID)
			.setHeader("docUID", simple(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=${in.header.docUID}"
+ "&authMethod=Basic&authUsername=" + username + "&authPassword=" + password
+ "&httpClient.authenticationPreemptive=true"))
			.to("http://url")
			
			.transform(responseTransformer)	
			.marshal(format);	


I am wondering how this will solve my authentication issue? I also tried
using .recipientList().transform(transformer) but I am getting the request
in the transformer. Not sure how to fix this?






--
View this message in context: http://camel.465427.n5.nabble.com/Issues-invoking-external-URL-with-Http-Basic-Auth-tp5753061p5753067.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message