users@jersey.java.net

Re: [Jersey] wadl with XSD

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 30 Sep 2009 20:42:57 -0400

See the description of how to achieve this here:

http://wikis.sun.com/display/Jersey/WADL

Marc

On Sep 30, 2009, at 7:09 PM, Suchitha Koneru (sukoneru) wrote:

> Hello Jersey Users,
> Is there a way to generate wadl with XSD ? Typically
> the wadl generated does not have reference to XSD of the JAXB
> objects being returned by the restful service APIs
> For example the following restful service API
> public AlertPrefInfo getAlertPref( @QueryParam("custID") String
> custID){
> return DummyDataProvider.getAlertPrefInfo();
> }
>
> Has the entry shown below in the application. wadl . The restful
> client should be made aware of the XSD for the java
> POJOAlertPrefInfo ? How do we accomplish it.
>
> <resource path="getAlertPref">
> <method name="GET" id="getAlertPref">
> <request>
> <param xmlns:xs="http://www.w3.org/2001/XMLSchema
> " type="xs:string" style="query" name="custID"/>
> </request>
> <response>
> <representation mediaType="application/xml"/>
> </response>
> </method>
> </resource>
>
> Thanks,
> Suchitha