File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes gzip Compress XML-RPC Datagrams, How Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "gzip Compress XML-RPC Datagrams, How" Watch "gzip Compress XML-RPC Datagrams, How" New topic

gzip Compress XML-RPC Datagrams, How

Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
i am using an instance of the XmlRpcClient Class to access a Servlet that
hosts an instance of the XmlRpcServer Klass.
Both are from the org.apache.xmlrpc Package.
Is there a way to gzip-compress the xml-datagrams (or at least the answer, from the Servlet).
Since the answers are usually between 20 and 60 k i am willing to accept the time penalty for the compression/decompression cycle.
To be more specific, is there a way to set the http-header field
accept-encoding:gzip when using the 2 classes.
Or is there any other magic involved?
Pointers, tips even complete solutions are welcome.
Thank you,
I agree. Here's the link:
subject: gzip Compress XML-RPC Datagrams, How
It's not a secret anymore!