axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eran Chinthaka <chinth...@opensource.lk>
Subject Re: How to access the SOAPHeader
Date Fri, 14 Jul 2006 09:53:00 GMT
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
> 



Mime
View raw message