users@jersey.java.net

jersey json to jaxb

From: emile <shrrrine_at_gmail.com>
Date: Wed, 12 May 2010 06:58:10 -0700 (PDT)

Hi,

For one of the resource methods we are passing a JSON input which is being
converted to a bean instance using JAXB. The data for a node which has an
attribute is not being populated. The same works fine when passing an XML
input. Following is the resource method :

        @POST
        @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
        @Produces(MediaType.APPLICATION_XML)
        public Response startProcess(ProcessDetails objProcessDetails)
        {

        .......

       } http://n2.nabble.com/file/n5041206/src_code.zip src_code.zip

Please find attached the source for reference.

TIA,
Emile
-- 
View this message in context: http://jersey.576304.n2.nabble.com/jersey-json-to-jaxb-tp5041206p5041206.html
Sent from the Jersey mailing list archive at Nabble.com.