It's PROBABLY a bug. If you did it in two steps: Endpoint ep = Enpoint.create(implementor); // add interceptors here ep.publish(address);
it probably would work. I think the interceptors on the jaxws Endpoint object are copied over to the internal Endpoint thing (where the runtime looks) at publish time. Most likely, after publish, we should make the ep.getXXXXInterceptor calls just forward directly into the .getServer().getEndpoint(). Feel free to log a bug (and a patch would be nice :-) ) Dan On Mon February 15 2010 6:38:20 am fahman_dude wrote: > Hello, > > I found the solution, but it puzzles me: > > org.apache.cxf.jaxws.EndpointImpl ep = (EndpointImpl) > Endpoint.publish(address, implementor); > org.apache.cxf.endpoint.Endpoint cxfServerEndpoint = > ep.getServer().getEndpoint(); > FIStaxInInterceptor fiServerInInterceptor = new FIStaxInInterceptor(); > FIStaxOutInterceptor fiServerOutInterceptor = new FIStaxOutInterceptor(); > > cxfServerEndpoint.getInInterceptors().add(fiServerInInterceptor); > cxfServerEndpoint.getInFaultInterceptors().add(fiServerInInterceptor); > cxfServerEndpoint.getOutInterceptors().add(fiServerOutInterceptor); > cxfServerEndpoint.getOutFaultInterceptors().add(fiServerOutInterceptor); > > Why I must take the ep.getServer().getEndpoint().getxxInterceptors() for > fastinfoset to work and can not just directlly use ep.getxxInterceptors() > (which I tried in the first place and it did not work)? > > kind regards > reinis -- Daniel Kulp [email protected] http://www.dankulp.com/blog
