Hi On Tue, May 10, 2011 at 6:07 AM, minred <[email protected]> wrote: > Hi > > My webservice has one method void send(String msg ). > > I'm trying to set HTTP header (e.g Content-Type) in webservice using > Interceptor. > I have implemented an Interceptor extending AbstractPhaseInterceptor and > added his in > Phase.POST_PROTOCOL. > > > I can see from the logs that this interceptor get registered but > when an HTTP response is sent the handleMessage() is never invoked. > > What could be the reason? >
According to [1] POST_PROTOCOL phase can be used on the receiving end, when processing incoming messages, so you should select one of the out phases, say USER_PROTOCOL, etc Cheers, Sergey [1] http://cxf.apache.org/docs/interceptors.html > rgds > minred >
