Question

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

Thanks,

Was it helpful?

Solution

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();
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top