axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chanian, Raj" <>
Subject RE: Serializing a SOAPEnvelope
Date Tue, 30 Sep 2003 13:13:39 GMT
Have you set the stream buffer to the beginning before reading from it?



-----Original Message-----
From: Ric Searle [] 
Sent: 30 September 2003 14:06
Subject: Serializing a SOAPEnvelope


Just a quick one about serialization:

I have a SOAPEnvelope object, which I want to write to disk to be 
processed later.  I thought that serializing it would be a  nice idea.  
I'm serializing it like this:

		FileOutputStream fos = new FileOutputStream(outFile);
         ObjectOutputStream oos = new ObjectOutputStream(fos);



But when I deserialize it by doing this...

		ObjectInputStream ois = new ObjectInputStream(fis);
         SOAPEnvelope soapEnvelope = (SOAPEnvelope) ois.readObject();

...the structure of the original SOAP message is there, but none of the 
content is recovered.

What am I doing wrong?


Ric Searle

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.

LogicaCMG global sponsors, Gartner Symposium, Cannes, 4th -7th November 2003

Please note that LogicaCMG does not have control over content from,or availability of, this

View raw message