public void marshallRply(RplyEnvelope rplyEnvelope, java.io.Writer writer)
throws EnvelopeMarshallerException, java.io.IOException
{
if (rplyEnvelope instanceof RplyEnvelopeOk)
{
RplyEnvelopeOk rplyEnvelopeOk = (RplyEnvelopeOk)rplyEnvelope;
XmlUtils.writeSTag(writer,T_ENVELOPE);
XmlUtils.writeSTag(writer,T_HEADER);
XmlUtils.writeElement(writer,EnvelopeConstants.F_SESSIONDATA,rplyEnvelopeOk.getSessionData(),true);
XmlUtils.writeETag(writer,T_HEADER);
XmlUtils.writeSTag(writer,T_BODY);
if (rplyEnvelopeOk.getXmlRply() != null)
{
writer.write(rplyEnvelopeOk.getXmlRply());
}
XmlUtils.writeETag(writer,T_BODY);
XmlUtils.writeETag(writer,T_ENVELOPE);
}
else if (rplyEnvelope instanceof RplyEnvelopeError)