the reverse of SOAPMessage's writeTo(out) method

From: Qingchun Guo (qingchun_guo_at_yahoo.com)
Date: 02/28/04


Date: 27 Feb 2004 21:55:36 -0800

Java's "SOAPMessage" class has a "writeTo" method, which writes a
SOAPMessage object into an outputStream, like this:

SOAPMessage mySoapMessage = ...;
mySoapMessage.writeTo(OutputStream out);

What if I want to do the reverse? That is, suppose I have an
inputStream which contains a SOAPMessage object, how do I read the
data from this inputStream and construct a SOAPMessage object? Is
there a "readFrom" method that works in the following way?

SOAPMessage mySoapMessage = SOAPMessage.readFrom(InputStream in)

Thanks.