This helps. Thanks.

However, I'm stil vage on how to deserialize XML into java objects
(predefined classes).

Thanks,

-- AV 

-----Original Message-----
From: toby cabot [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 23, 2004 8:19 AM
To: [EMAIL PROTECTED]
Subject: Re: Using a serializer and deserializer


Don't know about any docs or tutorials but something like...

    void axisSerialize(Object report, Writer whereTo) throws IOException {
        SerializationContext ser = new SerializationContext(whereTo);
        ser.setPretty(true);
        ser.setSendDecl(true);
 

        AttributesImpl ns = new AttributesImpl();
        // add attributes here

        ser.serialize(new QName("elementName"), ns, report, null,
Boolean.FALSE, Boolean.FALSE);
        whereTo.flush();
    }
 

... should get you pretty close.  Make sure that you're using the latest and
greatest Axis as there have been a few bugs fixed recently.

Reply via email to