On Monday 05 January 2009 5:47:21 am Maxime Orain wrote:
> I saw this perspective but I really want to do this with JAXB. Do you
> know where in the code this un/marshal part is done?

It's all in:
http://svn.apache.org/repos/asf/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/

Specifically in JAXBEncoderDecoder.java 

However, with JAXB, it's pretty easy.   Basically, we create a JAXBContext 
with a list of the classes, then have the context create an (un)marshaller, 
and then call the marshaller.  The jaxb runtime does everything for us.     
Most of the complexity in JAXBEncoderDecoder revolves around edge cases that 
aren't part of the JAXWS spec.   Things like wrapper element when wrapper 
types aren't available (and no asm),  Faults/Exception without a fault bean 
defined, etc...


Dan



>
> Max.
>
> -----Original Message-----
> From: David Bosschaert [mailto:[email protected]]
> Sent: 05 January 2009 11:39
> To: [email protected]
> Subject: Re: Serialization
>
> Hi Maxime,
>
> Maybe the Aegis data binding that comes with CXF is something for you.
> Have a look here:http://cwiki.apache.org/CXF20DOC/aegis-databinding.html
> It requires no annotations on your Java objects.
>
> Cheers,
>
> David
>
> 2009/1/5 Maxime Orain <[email protected]>:
> > Hello and happy new year!
> >
> >
> >
> > I want to serialize my java objects as they are when I use CXF. (JAXB)
> >
> >
> >
> > In fact I declare my java services and without specifying annotations
> > and etc they're well serialized... Where (and how really) in the code
> > this part is done?
> >
> >
> >
> > Thanks for your help
> >
> >
> >
> > Max.
> >
> >
> >
> >
> >
> > This email was sent to you by Thomson Reuters, the global news and
>
> information company.
>
> > Any views expressed in this message are those of the individual
>
> sender, except where the sender specifically states them to be the views
> of Thomson Reuters.
>
>
>
>
> This email was sent to you by Thomson Reuters, the global news and
> information company. Any views expressed in this message are those of the
> individual sender, except where the sender specifically states them to be
> the views of Thomson Reuters.



-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to