Hi Anne and Alex,
OK, I am aware that it looks like "killing a bug with a canon" :-)
But the point is: I need multi-reference support, because my object tree includes 
objects that may be referenced more than once and I do not want multiple instances in 
my final xml file.
I already had a look at JAXB and Castor (www.castor.org).
Both of them did not mention multi-refs in their documentation.
With Castor I even implemented a sample and saw that it makes duplicates :-(
The only guides that mention multi-ref support are Axis, Soap and JAX-RPC.

Alex, I followed your hint about "ksoap" and found "ksoap.enhydra.org". It even 
mentions multi-refs :-) I think I will have a closer look at that. If you have a short 
sample code for me about (de)serailization, I would appreciate that.

Thanks
Armin


----- Original Message -----
From: "Anne Thomas Manes" <[EMAIL PROTECTED]>
Date: Wed, 20 Nov 2002 09:30:23 -0500
To: <[EMAIL PROTECTED]>
Subject: RE: sample for using axis for (de)serialization only?


> You might just try JAXB.
> http://java.sun.com/xml/downloads/jaxb.html
> 
> Anne
> 
> > -----Original Message-----
> > From: Alex Dovlecel [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Alex Dovlecel
> > Sent: Wednesday, November 20, 2002 9:04 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: sample for using axis for (de)serialization only?
> > 
> > 
> > Hi,
> > It seems you are just trying to kill a bug with a canon. 
> > 
> > I am shure there are some (free) tools that just do the java2xml 
> > stuff and I 
> > suppose they are more suitable for you instead of changing the 
> > source code. 
> > But I don't know much of those tools... hope somebody will tell us all. 
> > 
> > I suppose (my own oppinion) that axis could do that, but you have 
> > to change 
> > some source code and you should rip all the other not usefull parts (for 
> > you). 
> > 
> > So its quite chalenging but might take some time. And just pay attention 
> > because axis uses alot of stuff (you see how many jars do you 
> > need in order 
> > to run axis). 
> > 
> > Other solution that I found was to use a small soap engine. And I 
> > used the 
> > ksoap!!! Is great and, being very small, is very easy to take out 
> > the parts 
> > you don't need. And I managed to transform a java object in xml 
> > format. :o))) 
> > 
> > I could even remove the extra name spaces and stuff like this.
> > 
> > HIH
> > dovle
> > 
> > > Hi there,
> > >
> > > I was only searching for a library that provides java2xml 
> > serialization and
> > > deserialization with support for multi-refs (!) (like "SOAP section 5
> > > encoding").
> > >
> > > I found Axis but did not yet manage to write a simple sample 
> > that does not
> > > need any server reference or any other overhead for this requirement. I
> > > only want to have a simple bean being serialized to an xml file.
> > >
> > > Questions:
> > > (1) Is Axis useful for this task or shall I take another library?
> > > (2) Where can I find a simple code sample only about serialization?
> > >
> > > Thanks for your help!!!
> > > Armin
> > 
> 

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Reply via email to