Hi Mohammad ;
You can do that as follows;
OperationContext opctx = msgCtx.getOperationContext();
MessageContext msgctx = opctx.getMessageContext("in");
msgctx.getEnevelop();
>
> Hi, I have a handler in one of the "out" phases that needs access to
> the original request envelope.
> In axis1, this could have been done by invoking the
> getRequestMessage() method on MessageContext.
> How can it be done in axis2?
>
> The use case is: I need to add some headers to certain response
> messages, based on contents of the request message;
> therefore I am trying to code an "out" handler that needs to look at
> the request envelope to decide if a particular header should
> be added to response or not.
>
> thanks,
>
> Mohammad N. Fakhar
> IBM Software Group Strategy
> Emerging Standards
> Research Triangle Park, NC USA
> [EMAIL PROTECTED]
> Phone: (919) 254-2104
--
Thanks,
Deepal
................................................................
~Future is Open~
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]