You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rob Moore <gm...@xoxy.net> on 2012/10/04 22:06:55 UTC
Re: Use GZIP on Client and Server Code
Davanum Srinivas <davanum <at> gmail.com> writes:
>
>
> If the server gets a gzip request, it automatically sends back gzipped
response (if it doesn't it's a bug)
>
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,
Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org