axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <dee...@opensource.lk>
Subject Re: axis2's equivalent of getRequestMessage on MessageContext
Date Tue, 29 Aug 2006 05:32:39 GMT
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
> fakhar@us.ibm.com
> Phone: (919) 254-2104


-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message