File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes GZip in Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "GZip in Axis" Watch "GZip in Axis" New topic

GZip in Axis

Jobin Mathew
Ranch Hand

Joined: Oct 17, 2006
Posts: 83
Hi all,
How can we send SOAP messages in gzip format, ie in compressed manner. What all should I do for that? Also what should I do to uncompress the message I got as response? Do this gzip seriously improve performance?

Please help me.
Thanks in advance

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
I looked into some aspects of this question for this article comparing Fast Infoset with gzip.

Using GZIP makes a big difference in XML file size, as you might expect from the repeating tags. Unzipping on the receiving end using ZipInputStream adds about 10% to the parsing time. So performance will depend on the relation between network transmission speed and CPU speed.

Note that I did not do a complete SOAP application for that article, I just looked at file sizes and DOM parsing time.

I agree. Here's the link:
subject: GZip in Axis
It's not a secret anymore!