[Jersey] Re: Jersey version 1.1.5

From: Jakub Podlesak <>
Date: Mon, 05 Sep 2011 17:25:24 +0200

Hi Michael,

XML schema should get attached by default to the generated WADL
in the recently released 1.9 version of Jersey.

Please see Gerard's blog [1] for details.



On 19.8.2011 16:39, Michael Bedard wrote:
> Hello,
> I'm using Glassfish 3.0.1 and the WADL that is created is missing the
> element attribute in the representation node. I found info on the
> wiki about extending the WADL generator here- >
> ...and I found this on the wiki that described my issue->
> */Adding more information to the generated WADL/*
> /However, there's more information you might want to have included in
> the WADL that jersey cannot simply read from the compiled resource
> classes. These are some examples for such cases:/
> /Our case-> When you return some JAXB entity, you might want to have
> set the//element////attribute in the WADL representation element
> (including the xml namespace). This information is also not available
> to jersey, additionally the generated WADL must contain
> the////grammars////element including the required xsd files///
> My question: is this the only way to get this functionality or can I
> use Jersey 1.8? When using web service the WSDL file will contain a
> schema node, which has all the mappings to the complex types. Will
> Jersey do this and how is it accomplished?
> Thanks
> -mike