BTW, this is what's causing the 406 (unacceptable) status code I
mentioned before since we don't
know the media type.
Peter
Ayub Khan wrote:
> Hi Marc/Paul,
>
> I am using latest GF b55 with jersey 0.2. Using latest REST tooling
> source, I am seeing the following in generated wadl
> file.
>
> <application xmlns="http://research.sun.com/wadl/2006/10">
> <resources base="%%REPLACE%%/resources">
> <resource path="/customers/">
> <method name="GET">
> <response>
> <representation/>
> </response>
> </method>
> <method name="GET">
> <response>
> <representation/>
> </response>
> </method>
> ...
> instead of
>
> <application xmlns="http://research.sun.com/wadl/2006/10">
> <resources base="%%REPLACE%%/resources">
> <resource path="/customers/">
> <method name="GET">
> <response>
> <representation mediatype="application/xml"/>
> </response>
> </method>
> <method name="GET">
> <response>
> <representation mediatype="application/json"/>
> </response>
> </method>
> ...
>
> This is same for POST too.
>
> Attached is the application.wadl and the CustomerResource.java
>
> Thanks
> Ayub
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net