This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "gzip Compress XML-RPC Datagrams, How" Watch "gzip Compress XML-RPC Datagrams, How" New topic
Author

gzip Compress XML-RPC Datagrams, How

Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
Hi,
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,
J.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: gzip Compress XML-RPC Datagrams, How
 
Similar Threads
GZIP file append writing
Question: How do you send a JSP page as compressed GZIP encoding?
Is there anything smaller that the byte?
How to compress jsp?
JSP page with js file compression