Hi,
Configuring gzip compression for response messages seems straightforward:
Annotating the @WebService endpoint with @GZIP and configuring server.xml       
            compression="on"    compressionMinSize="1"    
compressableMimeType="text/html,text/xml,text/plain,text"
I've had less luck with getting CXF to accept "Content-Encoding: gzip" POSTs 
(via SOAPUI).  CXF throws the "Couldn't parse stream." exception, suggestive 
that the GZIPInInterceptor isn't being invoked.
It is expected that the @GZIP annotation should take care of decompression of 
inbound requests to TomEE as well as outbound responses, or is there additional 
configuration necessary?
I tried a couple of things but neither fixed it:

1) Added to the endpoint:@org.apache.cxf.interceptor.InInterceptors 
(interceptors = {"org.apache.cxf.transport.common.gzip.GZIPInInterceptor"})

2) openejb-jar.xml:
<openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1";>  <ejb-deployment 
ejb-name="DataPut">    <properties>      cxf.jaxws.in-interceptors = 
org.apache.cxf.transport.common.gzip.GZIPInInterceptor    </properties>  
</ejb-deployment></openejb-jar>
Any pointers are much appreciated.

Thanks,Alex

Reply via email to