Hi Ivan,

It would be great if you can create a jira and append your patch there.
Thanks
Freeman

Ivan Stojic wrote:
Hi,

I tried using JAX-RS services on SMX4 based on this article:

http://rjrojas.blogspot.com/2008/09/restful-web-services-using-iona-fuse.html

It works, but it seems that CXF is ignoring HTTP request's Accept header
(I'm using it to choose between XML and JSON representations). It seems that
OsgiServlet in the cxf-transport-osgi module isn't forwarding the header. I
tried adding this to the invokeDestination method:

inMessage.put(Message.ACCEPT_CONTENT_TYPE, request.getHeader("Accept"));

and that fixed the problem.


Regards,
Ivan




Reply via email to