Hi,

Thank you for the response. Please find the log file along with Monitor 
snapshot (Monitor captures request before handover it to CXF rest service).

We are using camel 2.8.3 with servicemix 4.3 version.



Please suggest.



Regards,

pchakinala













From: Claus Ibsen-2 [via Camel] 
[mailto:ml-node+s465427n5693073...@n5.nabble.com]
Sent: Tuesday, May 08, 2012 2:56 PM
To: pchakinala
Subject: Re: camel restlet : Accept header



On Tue, May 8, 2012 at 9:47 AM, pchakinala
<[hidden email]> 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.
>


Do the CXF service see this header on the server side? eg the header
need to be sent over the wire, and the server must check this header
so it knows what the client can accept as response, and react
accordingly.

And as always its useful to tell us which versions of the products you
use. And you can try upgrading to newer releases to see if it fixes
your issues.


>
> 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.




--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/



  _____

If you reply to this email, your message will be added to the discussion below:

http://camel.465427.n5.nabble.com/camel-restlet-Accept-header-tp5692917p5693073.html

To unsubscribe from camel restlet : Accept header, click here 
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5692917&code=cHJhdmVlbi5jaGFraW5hbGFAcGxhbmV0c29mdC5jb218NTY5MjkxN3wtMjAwNDE3OTQwNg==>
 .
 
<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
 NAML



This message contains information that may be privileged or confidential and is 
the property of PlanetSoft Holdings Inc. It is
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this 
message.

--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-restlet-Accept-header-tp5692917p5693143.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to