You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Simon Fell (JIRA)" <ax...@ws.apache.org> on 2005/07/22 09:09:45 UTC

[jira] Created: (AXIS-2136) support request & response gzip compression on HTTP transport

support request & response gzip compression on HTTP transport
-------------------------------------------------------------

         Key: AXIS-2136
         URL: http://issues.apache.org/jira/browse/AXIS-2136
     Project: Apache Axis
        Type: New Feature
  Components: Basic Architecture  
    Versions: 1.2.1    
    Reporter: Simon Fell
    Priority: Minor


provide support for handling gziped compressed requests & responses in the http client.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Created: (AXIS-2136) support request & response gzip compression on HTTP transport

Posted by Simon Fell <so...@zaks.demon.co.uk>.
On Fri, 22 Jul 2005 09:09:45 +0200 (CEST), in soap you wrote:

>support request & response gzip compression on HTTP transport
>-------------------------------------------------------------
>
>         Key: AXIS-2136
>         URL: http://issues.apache.org/jira/browse/AXIS-2136
>     Project: Apache Axis
>        Type: New Feature
>  Components: Basic Architecture  
>    Versions: 1.2.1    
>    Reporter: Simon Fell
>    Priority: Minor
>
>
>provide support for handling gziped compressed requests & responses in the http client.


NB, i plan to submit a patch to provide this support.

Cheers
Simon

[jira] Updated: (AXIS-2136) support request & response gzip compression on HTTP transport

Posted by "Simon Fell (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2136?page=all ]

Simon Fell updated AXIS-2136:
-----------------------------

    Attachment: gzip.diff.zip

Here's a patch to enable gzip for CommonsHTTPSender.
Am still working on the equivilent changes to HTTPSender. (which seems to be significantly messier)

by default all requests will indicate that they support a compressed response, this can be turned off by setting the MessageContext.HTTP_NO_ACCEPT_GZIP messageContext property to Boolean.TRUE.
You can also ask for the request to be gziped by setting the MessageContext.HTTP_GZIP_REQUEST messageContext property to Boolean.TRUE.

The easiest way to set this properties is to subclass the generated serviceLocator class and override createCall() to set the additional properties you want. e.g. 

public class myLocator extends SforceServiceLocator {
	public Call createCall() throws ServiceException {
		Call call = super.createCall();
		call.setProperty(MessageContext.HTTP_NO_ACCEPT_GZIP, Boolean.TRUE);
		call.setProperty(MessageContext.HTTP_GZIP_REQUEST, Boolean.TRUE);
		return call;
	}
}

> support request & response gzip compression on HTTP transport
> -------------------------------------------------------------
>
>          Key: AXIS-2136
>          URL: http://issues.apache.org/jira/browse/AXIS-2136
>      Project: Apache Axis
>         Type: New Feature
>   Components: Basic Architecture
>     Versions: 1.2.1
>     Reporter: Simon Fell
>     Priority: Minor
>  Attachments: gzip.diff.zip
>
> provide support for handling gziped compressed requests & responses in the http client.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2136) support request & response gzip compression on HTTP transport

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2136?page=comments#action_12316832 ] 

Davanum Srinivas commented on AXIS-2136:
----------------------------------------

Simon,

how soon can you get this to me?

thanks,
dims

> support request & response gzip compression on HTTP transport
> -------------------------------------------------------------
>
>          Key: AXIS-2136
>          URL: http://issues.apache.org/jira/browse/AXIS-2136
>      Project: Apache Axis
>         Type: New Feature
>   Components: Basic Architecture
>     Versions: 1.2.1
>     Reporter: Simon Fell
>     Priority: Minor

>
> provide support for handling gziped compressed requests & responses in the http client.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2136) support request & response gzip compression on HTTP transport

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2136?page=comments#action_12316465 ] 

Davanum Srinivas commented on AXIS-2136:
----------------------------------------

hehehe...one of these days, i was gonna ask you. (http://www.sforce.com/resources/tn-14.jsp). but you beat me to it.

-- dims

> support request & response gzip compression on HTTP transport
> -------------------------------------------------------------
>
>          Key: AXIS-2136
>          URL: http://issues.apache.org/jira/browse/AXIS-2136
>      Project: Apache Axis
>         Type: New Feature
>   Components: Basic Architecture
>     Versions: 1.2.1
>     Reporter: Simon Fell
>     Priority: Minor

>
> provide support for handling gziped compressed requests & responses in the http client.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2136) support request & response gzip compression on HTTP transport

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2136?page=comments#action_12317022 ] 

Davanum Srinivas commented on AXIS-2136:
----------------------------------------

Simon,

#1: Can we keep the behavior as is? (which means using a constant HTTP_ACCEPT_GZIP and folks set that explicity true when they want to accept GZIP response)

#2: can you please move the 2 constants from MessageContext to src/org/apache/axis/transport/http/HTTPConstants.java? Seems more appropriate there (see the value string below as well)

public static final String HTTP_ACCEPT_GZIP = "transport.http.AcceptGzip";
public static final String HTTP_GZIP_REQUEST = "transport.http.gzipRequest";

thanks,
dims

> support request & response gzip compression on HTTP transport
> -------------------------------------------------------------
>
>          Key: AXIS-2136
>          URL: http://issues.apache.org/jira/browse/AXIS-2136
>      Project: Apache Axis
>         Type: New Feature
>   Components: Basic Architecture
>     Versions: 1.2.1
>     Reporter: Simon Fell
>     Priority: Minor
>  Attachments: gzip.diff.zip
>
> provide support for handling gziped compressed requests & responses in the http client.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira