users@jersey.java.net

Generated WADL response elements missing "element" attribute

From: Tim McCune <tim_at_mccune.name>
Date: Wed, 20 Aug 2008 15:11:06 -0700

In the WADL that Jersey is generating for my resources, it seems to be
leaving off the "element" attribute. For example, for the resource:

@GET
  public HelloWorld sayHello() {...

where the returned class is annotated as an @XmlRootElement, I would expect
the WADL to contain

<representation mediaType="application/xml" element="helloWorld"/>

but instead I'm just getting

<representation mediaType="application/xml"/>

Is there any way to get the element to show up in the generated WADL?