Re: Use GZIP on Client and Server Code

Rob Moore <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.