axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Tercero Lozano <>
Subject Re: Axis2 deployment: obtain the full SOAP message
Date Thu, 25 Oct 2012 08:32:21 GMT
You can get the actual MessageContext object in your service through the

MessageContext.getCurrentMessageContext()  (it's a threadlocal variable)

once you get the msgcontext, the full message is obtained with the sentence:


to obtain info from the xml message I always create a DOM document and
search with JVM XPath engine.


On Thu, Oct 25, 2012 at 10:21 AM, Brian Reinhold <> wrote:

> To all Axis2 fans,
> What is the easiest way to obtain the full SOAP message or the
> messageContext object in an Axis2 deployment. Typically all that one gets
> in one's service is the body of the SOAP message as an OMElement. I need to
> get the full message, in particular the SAML token.
> Brian
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

La ignorancia afirma o niega rotundamente; la ciencia duda.

– Voltaire, escritor y filósofo francés

View raw message