You live and learn! Thanks, Michael.
But I guess this demonstrates that they're not really designed for stand-alone use, despite the fact that they can be used that way. I don't know if the SerializationContext constructor is a "public" API that won't change.
Tony
"Michael Schuerig" <[EMAIL PROTECTED]> wrote on 23/11/2004 09:18:32:
> 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
>
- BeanSerializer Levy, Avi
- XSD2Java utility? Leonard Harris
- Re: XSD2Java utility? Paul Callahan
- Re: XSD2Java utility? Leonard Harris
- RE: BeanSerializer Nathan Wardle
- RE: BeanSerializer tony . q . weddle
- Re: BeanSerializer Michael Schuerig
- tony . q . weddle