camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Set rest service headers for querying
Date Thu, 24 Apr 2014 13:45:25 GMT
With the help of spring or blueprint, you can setup your CxfRsEndpoint just like this

<cxf:rsClient id="rsClientProxy" address="http://localhost:${CXFTestSupport.port1}/CxfRsProducerTest/"
          <entry key="Accept" value="text/xml"/>

Willem Jiang

Red Hat, Inc.
Blog: (English) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On April 24, 2014 at 6:11:56 PM, Richa ( wrote:
> Hi,
> I have a camel route which makes a GET request to a rest service hosted on
> another server. I need to set a header for invoking the rest service. I am
> using CxfRsEndpoint in camel for it.
> I think the headers are set in the JAXRSClientFactoryBean. But I am not able
> to set the header there. I am able to set the query parameters but not the
> headers.
> Can someone please tell me how to set the headers in CxfRsEndpoint?
> Please help me with this problem.
> Thanks,
> Richa
> Amadeus Software Labs Pvt. Ltd.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message