camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen">
Subject RE: How to define a HTTP Post destination in a route in spring
Date Thu, 17 Jul 2008 14:32:37 GMT

Ah looks like the header expects a sub element. You can either use this trick ( a bit ugly)

    <setHeader headerName="theHeader" value="a value">

Or use this one
   <setHeader headerName="oldBodyValue">

Med venlig hilsen
Claus Ibsen
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576

-----Original Message-----
From: buchnerm [] 
Sent: 17. juli 2008 16:26
Subject: Re: How to define a HTTP Post destination in a route in spring

Thanks for the help but I still have issues:

my code now:

			<from uri="direct:in" />
			<!-- write to a file  
			<to uri="file:c:\\tmp\\recMessage.txt?autoCreate=false" /> 
			<!-- write to http --> 
			<setHeader headerName="http.requestMethod" value="POST" /> 
			<to uri="http:localhost:8888/test.jsp" /> 

with this xsd:

Then I get this failure:

cvc-complex-type.2.4.b: The content of element 'setHeader' is not complete.
One of '{"http://":description,
 schema/spring":el, "":groovy,
"":javaScript, "http://":expression,
"":ognl, "http://":php,
 spring":python, "":ruby,
 spring":sql, "":xpath,
"http://":xquery}' is expected.
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message