dev@jsr311.java.net

Re: JSR311: WADL Question

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 11 Jun 2008 12:15:23 -0400

WADL generation is a Jersey feature rather than a JSR requirement.
This exact issue is currently being discussed on the Jersey users
list, see the thread starting at:

https://jersey.dev.java.net/servlets/ReadMsg?list=users&msgNo=1552

Marc.

On Jun 11, 2008, at 12:00 PM, Marcel Thibault wrote:

> Hello,
>
> The WADL generated XML document does not seem to expand to sub
> resources. Am I missing something????
>
> <resource path="/">
> <method name="GET">
> <request>
> <param type="xs:string" style="query" name="widget"/>
> </request>
> <response>
> <representation mediaType="application/xml"/>
> <representation mediaType="application/json"/>
> </response>
> </method>
> <method name="GET">
> <request>
> <param type="xs:string" style="query" name="widget"/>
> </request>
> <response>
> <representation mediaType="text/html"/>
> <representation mediaType="text/plain"/>
> </response>
> </method>
> <method name="GET">
> <response>
> <representation mediaType="application/atom+xml"/>
> </response>
> </method>
> <resource path="roles">
> <param type="xs:string" style="template" name="roles"/>
> </resource>
> <resource path="users">
> <param type="xs:string" style="template" name="users"/>
> </resource>
> <resource path="wf/processes">
> <param type="xs:string" style="template" name="wf/
> processes"/>
> </resource>
> </resource>
>
> For the "roles", "users", and "wf/processes" resources, I have more
> paths defined as sub resources, but yet they do not show up in the
> WADL document.
>
> Thanks,
>
> Marcel ....

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.