I opened a Jira https://issues.apache.org/jira/browse/CAMEL-5268 to
track this issue.
Thanks.
On 05/08/2012 03:47 AM, pchakinala wrote:
Hi ,
We have restful service developed with CXF. Now we are planning to consume
it using camel-restlet component. We are setting below headers to return
response message in XML format.
Camel client Processor code:
exchange.getIn().getHeaders().put("Content-Type", "application/xml");
exchange.getIn().getHeaders().put("Accept", "application/xml");
<to
uri="restlet:http://localhost:8081/pss-ui-2.0.0/api/rest/pssrestservices/findPartyById/{restParam}?restletMethod=get"/>
However after setting the headers also we got response in json format
instead of xml.
Please update me is there any other way to set the Accept parameter in the
Restlet request header.
Regards,
pchakinala
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-restlet-Accept-header-tp5692917.html
Sent from the Camel - Users mailing list archive at Nabble.com.