Hi,
You can do something like
@Produces("application/xml", "application/json")
public SomeType get() {} Cheers, Sergey -----Original Message----- From: hanasaki jiji [mailto:[email protected]] Sent: 28 February 2009 09:24 To: [email protected] Subject: JAXRS : howto produce XML and JSON? How would you go about creating a jaxrs that can produce both JSON and XML based on what the caller wants? Do you really need to write the class twice and annotate each differently?
