On Tuesday 23 November 2004 09:27, [EMAIL PROTECTED] wrote:
> I don't think that the BeanSerializer, or any Axis serializer, can be
> used on its own. It works via callbacks from Axis, in a particular
> serialization context. I don't think it has an methods that can
> simply serialize an object to an XML string, or an XML document.
For serializers it's actually pretty easy:
SerializationContext context = new SerializationContext(
new OutputStreamWriter(System.out));
Serializer ser = new MySerializer();
ser.serialize(new QName("name", new AttributesImpl(),
myObj, context);
I don't see how it can be done for deserializers -- in particular,
without dragging in most of Axis. This is actually pretty bad for
writing unit tests.
Michael
--
Michael Schuerig Those people who smile a lot
mailto:[EMAIL PROTECTED] Watch the eyes
http://www.schuerig.de/michael/ --Ani DiFranco, Outta Me, Onto You