users@jersey.java.net

[Jersey] Re: Using XStream and generating WADL

From: Jakub Podlesak <jakub.podlesak_at_oracle.com>
Date: Thu, 24 Mar 2011 20:17:00 +0100

Hi Paolo,

WADL generation in Jersey uses JAXB, which is part of Java SE 6.
Even if you use XStream for XML generation of your resource representations,
you should still be able to generate WADL.

If you have not set the ResourceConfig.FEATURE_DISABLE_WADL feature
explicitly on your resource config, WADL should be generated automatically.
If not, please check your log files and look for "WADL generation is
disabled"
message. That should give you more info on why WADL does not get generated.

~Jakub



On 03/24/2011 05:18 PM, Paolo Pantaleo wrote:
> Hi,
>
> I am using XStream with Jersey for XML generation, most of all because
> we have some some configuration that tells XStream how the generated
> XML should be (data format, renaming of some fields, etc.). It seems
> to me that if I use XStream Hersey won't be able to generate the WADL
> automatically? Is it correct?
>
> Thanks
> Paolo Pantaleo
>