dev@jsr311.java.net

WADL Question

From: Marcel Thibault <mthibault_at_novell.com>
Date: Wed, 11 Jun 2008 10:00:14 -0600

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 ....