jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes CXF: JSON and XML response based on Content-Type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "CXF: JSON and XML response based on Content-Type" Watch "CXF: JSON and XML response based on Content-Type" New topic
Author

CXF: JSON and XML response based on Content-Type

subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203
I am using the cxf and configured as follows:



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?


http://subodh-gupta.blogspot.com
 
jQuery in Action, 2nd edition
 
subject: CXF: JSON and XML response based on Content-Type
 
Similar Threads
ContentNegotiatingViewResolver
JSF backingbean value is null always.
Urgent !!! Entity bean JDBC connection Problem !!!
UsernameToken in cxf
How to fill up JSONArray data inside the select tag of JSP Page