Axis2 deployment: obtain the full SOAP message

2012-10-25 Thread Brian Reinhold
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 --

RE: Axis2 deployment: obtain the full SOAP message

2012-10-25 Thread Krishantha Rathnayake
Hi Brian, Let's see how to access this SOAP message inside Axis2. MessageContext messageContext; // if you are within a handler, reference to the message context object will be passed to you through Handler.invoke(MessageContext) method. SOAPEnvelope soapEnvelope = messageContext.getEnve

Re: Axis2 deployment: obtain the full SOAP message

2012-10-25 Thread Ricardo Tercero Lozano
You can get the actual MessageContext object in your service through the call: MessageContext.getCurrentMessageContext() (it's a threadlocal variable) once you get the msgcontext, the full message is obtained with the sentence: msgContext.getEnvelope().toString() to obtain info from the xml m

RE: Axis2 deployment: obtain the full SOAP message

2012-10-25 Thread Brian Reinhold
Thanks Krishantha, What I need to get is the MessageContext. I have just gotten informed it is available to me by calling getCurrentMessageContext() in my service. Had no idea!! Brian -Original Message- From: Krishantha Rathnayake [mailto:[email protected]] Sent: Thu

RE: Axis2 deployment: obtain the full SOAP message

2012-10-25 Thread Brian Reinhold
Ricardo! You are a livesaver! I had no idea I could get the MessageContext like that. That solves a whole HOST of problems for me. Thanks, Brian From: Ricardo Tercero Lozano [mailto:[email protected]] Sent: Thursday, October 25, 2012 4:32 AM To: [email protected] Subject:

RE: Axis2 deployment: obtain the full SOAP message

2012-10-25 Thread Martin Gainty
Achten Sie darauf, Angela Merkel über Ricardos Antwort zu erzählenAsegúrese de decirle a sra ang

Re: Axis2 deployment: obtain the full SOAP message

2012-10-25 Thread Ricardo Tercero Lozano
:-)) You're welcome. R. On Thu, Oct 25, 2012 at 3:26 PM, Martin Gainty wrote: > Achten Sie darauf, Angela Merkel über Ricardos Antwort zu erzählen > Asegúrese de decirle a sra angela merkel sobre la respuesta de ricardo > > Vielen Danke Ricardo/Muchas Gracias Ricardo, > Martin > __