Aside from that, JAXB will also handle this. It only supports code generation from Schema, though, and is not currently licensed for anything other than evaluation use. kSOAP may be your best approach anyway, if you're happy with the SOAP bindings.
- Dennis
Dennis M. Sosnoski
Enterprise Java, XML, and Web Services Support
http://www.sosnoski.com
Armin Klaus wrote:
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,serialization and
I was only searching for a library that provides java2xml
deserialization with support for multi-refs (!) (like "SOAP section 5that does not
encoding").
I found Axis but did not yet manage to write a simple sample
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
