input.close();
SOAPEnvelope envelope =
(SOAPEnvelope) outMsg.getAsSOAPEnvelope();
SOAPBodyElement body = envelope.getFirstBody();
StringWriter writer = new StringWriter();
client.addOption(AxisEngine.PROP_XML_DECL, new Boolean(false));
SerializationContext ctx = new SerializationContext(writer,
client.getMessageContext());
ctx.setPretty(true);
body.output(ctx);
sb.append(writer.toString());