Hi,

I'm using cxf's simple server frontend and I need the message context within the endpoint. WebServiceContext is injected, but invoking "getMessageContext()" from it returns null. There's a similar post addressing this issue, but in that case it seems it was a problem with the user's custom invoker. In my case, there's no custom invoker and I'm using Windows Vista. Is there another approach to obtain the message context? Can be an operating system related issue?

Sample code:

@WebService
public class FooImpl implements Foo {
   @Resource
   private WebServiceContext webContext;

   public void fooIt() {
MessageContext messageContext = this.webContext.getMessageContext(); // messageContext returns null
       // ...do something with messageContext
   }
}

Thanks in advance,
Andre


Reply via email to