users@jersey.java.net

Returning XML in the JsonFromJaxb example

From: Rohan Sahgal <rohansahgal_at_gmail.com>
Date: Mon, 16 Jun 2008 17:06:02 -0700

I was just going through the examples in the Jersey distribution.

When I run the test client in the JsonFromJaxb example even in the second
case when we do a GET after the XML update, i get JSON back, even though we
have added Accept = accept/xml.

Is there a reason for this behavior? How do I check returning XML then?

I compiled the war and deployed it in my tomcat.

Thanks,
Rohan