Hi,

This is how my route looks like

 from("direct:start").routeId("start")
            
                .bean(Processor1.class, "prepareRequestMessage")
                .to("cxfrs:bean:rsClient?synchronous=true")
                .bean(Processor1.class, "processResponseMessage")

prepareRequestMessage method in class Processor1 is used to set headers 

       
exchange.getOut().setHeader(CxfConstants.CAMEL_CXF_RS_USING_HTTP_API,
Boolean.TRUE);
        exchange.getOut().setHeader(Exchange.HTTP_METHOD, "GET");
        exchange.getOut().setHeader("QueryParam1", "QueryParam1-value");
        exchange.getOut().setHeader("QueryParam2", "QueryParam2-value");

Below is the declaration for the bean rsClient
 <cxf:rsClient id="rsClient"
address="http://providerservices-sys3.regence.com/ProviderApi/api/Provider"/>


Any help is appreciated.

Thanks





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-cxf-rs-client-bean-tp5749587p5749637.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to