By default, a WADL document can be requested for a particular resource by invoking an HTTP OPTIONS request for any Java API for RESTful Web Services (JAX-RS) URL. You can issue an OPTIONS request with most HTTP clients. The WADL document returned from the request describes the resource using information from the JAX-RS annotations.
Using IBM® JAX-RS, developers can generate a JAXB XML representation of a WADL document describing all of the resources available in the application. The JAXB representation can be returned from a JAX-RS resource method. Then, the WADL document resource is treated like any other JAX-RS resource and can be used by clients.
newfeat
You have added a WADL service document to your application to enable clients to retrieve a representation of your service. By default, you can also issue OPTIONS requests to your resources to retrieve a WADL representation of the individual resource. If you have chosen to do so, you can disable the automatic generation of a WADL document for OPTIONS requests.
In this information ...
Related reference
|
(Index) IBM Redbooks, demos, education, and more |