First get access to the message context within the service
implementation class following this (http://www.wso2.net/kb/106).

Then from the message context you can get access to the soap envelope
using msgCtxt.getEnvelope()

-- Chinthaka

Haug, Thomas wrote:
> 
> 
> Hi,
> 
> I want to access the SOAPHeader in my service implementation class.
> In Axis 1 I have done soemthing like
>    SOAPHeader header = null;
> 
>    //extract the Header from the current SOAP Request
>    try {
>      header = (SOAPHeader)
> MessageContext.getCurrentContext().getRequestMessage().getSOAPEnvelope().getHeader();
> 
>    }
>    catch (SOAPException e) {
>      //do what ever
>    }
> Is there a similar mechanism in Axis2. I have not found a glue so far.
> Thanks,
> Thomas
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to