ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Nichol <>
Subject Re: Compression support in Apache SOAP
Date Thu, 05 Sep 2002 16:59:35 GMT
I've just committed a change to add gzip encoding for HTTP.  You can get
this capability immediately by grabbing the CVS source, or tomorrow by
getting the nightly built for tonight.

The encoding is enabled on the client through SOAPContext.  For example, the
client in the gzip sample does the following:

        // Build the call.
        SOAPContext ctx = new SOAPContext();
        Vector params = new Vector();
        params.addElement(new Parameter("data", inFileData.getClass(),
inFileData, null));
        Call call = new Call("urn:gzip-sample",

The ctx.setGzip(true) indicates that the request will be sent with gzip

On the server, encoding is enabled through the deployment descriptor.  The
service in the gzip sample has

    <isd:option key="gzip" value="true"/>

The server will only use gzip encoding if the client indicates it can handle
it by sending an Accept-Encoding header.  Starting with this change, the
Apache SOAP client always sends such a header.

The gzip sample is the only testing I've done of this feature.  Note that it
should work with any SOAP message, including one in which there are

Scott Nichol

----- Original Message -----
From: "Scott Nichol" <>
To: <>
Sent: Wednesday, September 04, 2002 1:25 PM
Subject: Re: Compression support in Apache SOAP

The current Apache SOAP code does not have "built-in" support for compressed
messages (such as by using gzip with HTTP 1.1).  However, you can zip files
that you send as attachments.  Read the full thread at for more

Scott Nichol

----- Original Message -----
From: "Rodrigo Ruiz" <>
To: <>
Sent: Wednesday, September 04, 2002 9:21 AM
Subject: Compression support in Apache SOAP

Hi all,

Does Apache SOAP comes with built-in support for compressed messages?

I am developing a SOAP client wich must receive/transfer data files from the
server. These files can be of arbitrary size.

I'm interested in having my 'Apache SOAP over Tomcat' to automatically
compress the whole SOAP message. This way, I would not have to deal with zip

Thanks in advance,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message