users@jersey.java.net

[Jersey] Re: Jersey Client question...

From: matrix <kochukavi_at_gmail.com>
Date: Wed, 21 Mar 2012 02:12:01 -0700 (PDT)

Hi,

I am also running into the same problem. Even though the class I used for
webresource.get() method is created from an xsd using xjc, I am not able to
retrieve the value as the class itself. But the following works fine:

*System.out.println(r.accept("application/xml").get(String.class)); *

Actually prints the xml into output stream, when

*MyJaxBGeneratedClass a =
r.accept("application/xml").get(MyJaxBGeneratedClass.class);*

Throws up the error as pointed out by Kevin

--
View this message in context: http://jersey.576304.n2.nabble.com/Jersey-Client-question-tp742181p7391704.html
Sent from the Jersey mailing list archive at Nabble.com.