SOAP Message Envelope

Does anyone know if there is a way to use java to pass all the XML content of a SOAP envelope to a string?

Thank,

+3
source share
1 answer

It depends a little on what you use for SOAP, and if you want the server or client to register.

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

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

All Articles