Put the following method in your service impl class.

public void setOperationContext(OperationContext opContext){
       MessageContext  inMsgCtxt =
opContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
SOAPEnvelope envelope = inMsgCtxt.getEnvelope();

// do whatever you want with this envelope.

}

And use RawXMLINOutMessageReceiver. The above method in your service
impl class  will automatically be called by Axis2 thru IOC.


-- Chinthaka


蘇 軼(CEC) wrote:
> hi Eran,
> 
> Thanks for your help!
> 
> But In a service class, for example the sample MyService class,
> the parameter is an OMElement object(I think it is the body element
> of SOAP message, isn't it?),  how can I get the header?
> 
> I'm a newbie and THANKS again !
> 
> - sukie
> 
> ----- Original Message ----- 
> From: "Eran Chinthaka" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, May 23, 2006 5:57 PM
> Subject: Re: [Axis2]How to process SOAP header in service class? or handler
> class?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to