camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pilgrim08 <>
Subject Re: Http Component Post Parameters
Date Fri, 20 Mar 2015 12:27:09 GMT
Thank you Willem.  I did try this solution but still it still doesn't work. 
In this case it sends the parameters in the request body but they aren't
POST parameters.  The web service I am calling is unable to access the
parameters.  When I make this call with a Straight, it works fine but I would like to get this
working with Camel.  If there are other options for accomplishing this, I
would love to hear.     	 from("timer://runOnce?repeatCount=1")            
.onException(Exception.class)            .handled(true)           
.process(new GenericExceptionProcessor())            .end()           
.log("Requesting a claim ID from SDS.")           
.setHeader(Exchange.HTTP_METHOD, constant("POST"))           
+ "&authMethod=Basic&authUsername=********&authPassword=********"            

+ "&httpClient.soTimeout=5000")           
.to("file:{{sf.archive.dir}}?fileName=sds-response.xml")			.log("Completed
web service call to SDS for file ${file:name}.")            .end();Regards,

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message