Hi,
It looks like adding logging interceptors prevents the gzip interceptors
from working. I'm using Java first development with programmatic
configuration of the client (i.e. non-spring). My service interface looks
something like the following:
@Features(features = { "org.apache.cxf.transport.http.gzip.GZIPFeature" })
public interface MyService {
...
}
The client code looks something like the following:
JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
proxyFactory.setServiceClass(MyService.class);
proxyFactory.setWsdlURL(...);
MyService service = proxyFactory.create();
Client client = ClientProxy.getClient(service);
client.getInInterceptors().add(new LoggingInInterceptor());
client.getInFaultInterceptors().add(new LoggingInInterceptor());
client.getOutInterceptors().add(new LoggingOutInterceptor());
client.getOutFaultInterceptors().add(new LoggingOutInterceptor());
...
Using a packet sniffer, I can see the gzip compression only works when the
logging interceptors aren't added to the client. Is this expected behavior,
a bug, or am I doing something wrong?
Thanks,
Joel
--
View this message in context:
http://www.nabble.com/Logging-Interceptors-Disable-GZip-Interceptors--tp21947855p21947855.html
Sent from the cxf-user mailing list archive at Nabble.com.