Hi Romain,

Thank you for the response and happy holidays!


It’s TomEE plus 1.7.1.  Packaging is a basic export to war from theeclipse 
project.  Here’s a simple serverproject that illustrates the exception when 
posting to the service with gzipcontent:


https://www.dropbox.com/s/9ufgu2w210jfbhv/gzip_test.zip?dl=0


The only configuration change to TomEE needed to run theproject is the addition 
of compression settings in server.xml.  (Example within zip: 
Catalina/conf/server.xml)


Also included is the war file and some SoapUI screen shots of invokingthe 
service with and without gzip enabled on the client.


I’m currently using SoapUI 5.0.0 as the client, but couldcreate a Java SE 
client project if that’s more useful.

Thanks,

Alex


      From: Romain Manni-Bucau <rmannibu...@gmail.com>
 To: EQd ninetyeight <eqd...@yahoo.com>; users@tomee.apache.org 
 Sent: Thursday, December 25, 2014 2:30 PM
 Subject: Re: JAX-WS supporting POSTs with "Content-Encoding: gzip"
   
Hi

openejbjar should work. What s your versions? How do you package? Any
sample - client and server - to let us check?
Le 25 déc. 2014 14:37, "EQd ninetyeight" <eqd...@yahoo.com.invalid> a écrit


:

> 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