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 juliocest <ju...@gmail.com> on 2008/04/10 13:31:43 UTC
Use GZIP on Client and Server Code
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
--
View this message in context: http://www.nabble.com/Use-GZIP-on-Client-and-Server-Code-tp16607975p16607975.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Use GZIP on Client and Server Code
Posted by Rob Moore <gm...@xoxy.net>.
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
Re: Use GZIP on Client and Server Code
Posted by Davanum Srinivas <da...@gmail.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
iD4DBQFH/gW/gNg6eWEDv1kRApJXAJ0RnmKkor030oLw1781jAmvuJdoiACY2hYI
VqhTuh/7eYNukiV+6fME1g==
=/Z43
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org