Sorry this didnt work: I get the annotation:

cvc-complex-type.2.4.a: Invalid content was found starting with element
'setHeader'. One of 
 '{"http://activemq.apache.org/camel/schema/spring":from,
"http://activemq.apache.org/camel/
 schema/spring":aggregator,
"http://activemq.apache.org/camel/schema/spring":bean, "http://
 activemq.apache.org/camel/schema/spring":catch,
"http://activemq.apache.org/camel/schema/
 spring":choice, "http://activemq.apache.org/camel/schema/spring":when,
"http://
 activemq.apache.org/camel/schema/spring":otherwise,
"http://activemq.apache.org/camel/
 schema/spring":delayer,
"http://activemq.apache.org/camel/schema/spring":onException, "http://
 activemq.apache.org/camel/schema/spring":filter,
"http://activemq.apache.org/camel/schema/
 spring":finally,
"http://activemq.apache.org/camel/schema/spring":idempotentConsumer,
"http://
 activemq.apache.org/camel/schema/spring":intercept,
"http://activemq.apache.org/camel/schema/
 spring":interceptor,
"http://activemq.apache.org/camel/schema/spring":loadBalance, "http://
 activemq.apache.org/camel/schema/spring":marshal,
"http://activemq.apache.org/camel/schema/
 spring":multicast, "http://activemq.apache.org/camel/schema/spring":policy,
"http://
 activemq.apache.org/camel/schema/spring":proceed,
"http://activemq.apache.org/camel/schema/
 spring":process,
"http://activemq.apache.org/camel/schema/spring":recipientList, "http://
 activemq.apache.org/camel/schema/spring":resequencer,
"http://activemq.apache.org/camel/
 schema/spring":route,
"http://activemq.apache.org/camel/schema/spring":routingSlip, "http://
 activemq.apache.org/camel/schema/spring":splitter,
"http://activemq.apache.org/camel/schema/
 spring":thread, "http://activemq.apache.org/camel/schema/spring":throttler,
"http://
 activemq.apache.org/camel/schema/spring":throwFault,
"http://activemq.apache.org/camel/
 schema/spring":to, "http://activemq.apache.org/camel/schema/spring":try,
"http://
 activemq.apache.org/camel/schema/spring":unmarshal}' is expected.

Need help on this thanks max


buchnerm wrote:
> 
> this is the example on the camel site how to create a HTTP component:
> 
> new RouteBuilder() {
>     public void configure() {
>         from("direct:start")
>            
> .setHeader(org.apache.camel.component.http.HttpMethods.HTTP_METHOD,
> org.apache.camel.component.http.HttpMethods.POST)
>           .to("http://www.google.com";);
>     }            
> };
> 
> How to do the same in spring???
> 
> <route>
>       <from uri="direct:in" />
>       <to uri="http:localhost:8080/test.jsp" /> 
> </route>
> 
> How to tell him to send it via post?? 
> 
> Thanks Max
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-define-a-HTTP-Post-destination-in-a-route-in-spring-tp18506233s22882p18506676.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to