Forum Home » Fuse Distributions » Fuse Services Framework

Thread: JSON and XML response based on Content-Type

 

Permlink Replies: 0 Threads: [ Previous | Next ]
subodh.gupta

Posts: 13
Registered: 05/12/09
JSON and XML response based on Content-Type
Posted: Feb 10, 2012 7:51 AM
  Click to reply to this thread Reply
Hi,

I am using the cxf and configured as follows:

<jaxrs:extensionMappings>
<entry key="json" value="application/json" />
<entry key="xml" value="application/xml" />
</jaxrs:extensionMappings>

So, i have verified that the content headers are right and the response to the interceptor is returned as the xml but after that client always getting the JSON response irrespective of header...

Any help?