Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SOAP Message Envelope

Tags:

java

soap

message

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

Thanks,

like image 740
Alejo Avatar asked Jun 30 '26 05:06

Alejo


1 Answers

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();
}
like image 127
Stroboskop Avatar answered Jul 01 '26 18:07

Stroboskop