users@jersey.java.net

[Jersey] Re: JaxB collections, GenericEntity & top element name & namespace in Jersey ?

From: edwin.ilovares <edwin.ilovares_at_continental.hn>
Date: Tue, 23 Dec 2014 14:21:13 -0700 (MST)

Hi Paul,

I'm asking if you could resolve this issue.


Paul Sandoz wrote
> On May 31, 2010, at 5:07 PM, Morten wrote:
>
> ...
>
>> The problem is how do I define the name and namespace of the top
>> element in the XML that Jersey reads/writes ? I need this to make
>> sure the output conforms to a XSD schema.
>>
>
> It is not currently possible. So you will need to use wrapper classes.
>
> We need to add a feature to support such a mechanism. Either an
> annotation or a special return type e.g. JAXBCollection
> <T>
> :
>
> return new JAXBCollection&lt;List&lt;Foo&gt;>(new QName(...), foo);
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:

> users-unsubscribe@.java

> For additional commands, e-mail:

> users-help@.java





--
View this message in context: http://jersey.576304.n2.nabble.com/JaxB-collections-GenericEntity-top-element-name-namespace-in-Jersey-tp5122138p7582983.html
Sent from the Jersey mailing list archive at Nabble.com.