users@jersey.java.net

[Jersey] JAXBElement type in the header

From: <jgowder_at_hotmail.com>
Date: Tue, 27 Mar 2012 02:22:31 +0000 (GMT)

I have resource which produces and cosumes XML and JSON in the entity
body fine.
The entity type maps to a JAXB Element. When I tried to decode the same
element by passing it as a header parameter, XML marshal and unmarshal
works fine but not the JSON unmarshaling, it fails with error 400. I am
using jettison mapped JSON.

should the JSON unmarshal for @HeaderPararm work? if not how is
jersey decoding the xml but not JSON. I am using Jersey 1.12 , in
tomcat with spring 3.

Thanks