Hi Sergey!

I want to serve different XML data of the same POJO depending on who is
requesting the service (a mobile, a web application, a legacy system...) 

Cheers,

Ivan


-----Mensaje original-----
De: Sergey Beryozkin [mailto:[email protected]] 
Enviado el: miércoles, 24 de noviembre de 2010 13:53
Para: [email protected]
Asunto: Re: Multiple outputs with just a POJO

Hi

On Wed, Nov 24, 2010 at 12:48 PM, Ivan Vitoria Sanchez <
[email protected]> wrote:

> Hello,
>
> I'm using JAXB as Apache CXF 2.3 JAX-RS DataBinding, both integrated with
> Spring 3. I'm not sure if it can be done but i would like to have
different
> outputs of the same POJO, which is annotated with JAXB. I think that
> annotating interfaces doesn't seem to be the way (let me know if i am
> wrong).
>
>
Would you like different XML data be returned depending on the current
request details ?
Or would you like XML or JAXB-driven JSON be produced ?

cheers, Sergey

> Can anyone lend me a hand?
>
> Thanks in advance,
>
>
>
>
>
> *Ivan Vitoria Sanchez
>
> *
>
> *Districte 22@ - Complexe Ecourban - Edifici Blau*
>
> C / Almogàvers 119-123, 3º 4ª - 08018 Barcelona
>
> Tel. 93 452 02 65 Fax. 93 451 35 42
>
> *[image: cid:[email protected]]*
>
>
>

Reply via email to