Anything you "put" on the WebServiceContext should be retrievable directly as 
it in an out interceptor, although it's probably set on the "in" message.     
Thus, message.getExchange().getInMessage().get("myKey");

Dan

On Wednesday 22 October 2008 12:39:23 pm Colm O hEigeartaigh wrote:
> Hi guys,
>
> I have access to a javax.xml.ws.WebServiceContext object in an endpoint
> implementation. I have an "out" interceptor that does some processing on
> the outbound message. I need to pass some information through to the
> interceptor somehow from the endpoint implementation. At the moment I'm
> just getting a reference to the interceptor using:
>
> org.apache.cxf.Bus.getOutInterceptors()
>
> and setting some information directly on it, after the appropriate
> casting.
>
> Instead I want to set some information possibly using
> WebServiceContext.getMessageContext().put(...). How can I get access to
> this via org.apache.cxf.message.Message in the interceptor, or what's
> the best way to do this?
>
> Thanks,
>
> Colm.



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog

Reply via email to