if ( currentForm == FORM_FAULT ) {
StringWriter writer = new StringWriter();
AxisFault env = (AxisFault)currentMessage;
try {
env.output(new SerializationContext(writer, msgContext));
} catch (Exception e) {
e.printStackTrace();
return null;
}
setCurrentMessage(writer.getBuffer().toString(), FORM_STRING);
return (String)currentMessage;
}
if ( currentForm == FORM_SOAPENVELOPE ) {
StringWriter writer = new StringWriter();
SOAPEnvelope env = (SOAPEnvelope)currentMessage;
try {
env.output(new SerializationContext(writer, msgContext));
} catch (Exception e) {
e.printStackTrace();
return null;
}
setCurrentMessage(writer.getBuffer().toString(), FORM_STRING);