tags:

views:

174

answers:

1

Hi Guys, Does anybody know if there is a way using java to pass all the XML content of SOAP Envelope to a String?

Thanks,

+1  A: 

Depends a bit on what you're using for SOAP and if you want the server or the client to log.

I know that in Axis2 you can use this to get it

MessageContext msgContext = MessageContext.getCurrentMessageContext();
if (msgContext != null) {
    return msgContext.getEnvelope().getBody().toString();
}
Stroboskop