axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-user.robmo...@xoxy.net
Subject Re: Use GZIP on Client and Server Code
Date Thu, 04 Oct 2012 20:51:34 GMT
Way back in 2008 dims wrote:

> If the server gets a gzip request, it automatically sends back gzipped response (if it
doesn't it's a bug)
>
> -- dims
>
> juliocest wrote:
> | Hi,
> |
> | I would like to know if it is possible to use GZIP both on server and client
> | code, with Axis2.
> | I know that in client side we can use,
> |
> |         options.setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);
> |         options.setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);
> |
> | in order to set gizp compression.
> |
> | For example, I have a client sending soap requests to a service with
> | calculate big fatorial numbers. My response could be large and I want that
> | my server side code zip soap responses to send back to my client.
> |
> | How can I set gzip compression on server side?
> |
> | Thanks.
> |
> | Julio

I'm attempting this scenario and not seeing the behavior described.
That is, I'm sending a compressed request and receiving an
uncompressed response.

Request:

POST http://localhost:8080/axis2/services/Version.VersionHttpSoap12Endpoint/
HTTP/1.1
Content-Encoding: gzip
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="urn:getVersion"
Content-Length: 146
Host: localhost:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

Response:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml;action="urn:getVersionResponse";charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 04 Oct 2012 19:54:27 GMT

I'm running the Axis2 WAR inside of Tomcat 7 and realize I could use
Tomcat to compress the response. However, I'm in an environment where
changing the Tomcat configuration is problematic so I need for this
compression within Axis2 to perform the compression.

Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message