On Wednesday 05 September 2007, Pawel Janusz wrote: > Hello, > > I do know how to get MessageContext Object in WebMethod, but is there > any possibility to get Message from it? or I have to implement > Interceptor ? > > Thanks > Pawel
Well, you can cast the MessageContext object to a org.apache.cxf.jaxws.context.WrappedMessageContext object and call the getWrappedMessage() on it. That would work. I'm adding the ability to do: Message msg = (Message)ctx.get(Message.class.getName()); to it. Should be in for 2.0.2. -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
