Hi,
i have got a service that looks like this:

@GET
@Path("/rating/{id}")
@Produces("application/xml")
@ElementClass(response=Rating.class)
public Rating getRating(@PathParam("id")String id);

This is the Rating-Class:

@XmlRootElement(name = "Rating")
public class HotelRating {
    ...
}

In the resulting WADL the Grammar-Section describes the Rating-Object as it should do.
The Resources-Section describes the service like this:

<resource path="rating/{id}">
<param name="id" style="template" type="xs:string"/>
<method name="GET">
<request/>
<response>
<representation mediaType="application/xml"/>
</response>
</method>
</resource>

Why is the representation-element missing the Attribute "element"? I expected something like this:
<representation mediaType="application/xml" element="rating"/>

What am i doing wrong?
Thanks Björn

Reply via email to