axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anil bondalapati (JIRA)" <>
Subject [jira] [Created] (AXIS2-5052) Unable to send compressed message!!
Date Fri, 20 May 2011 23:59:47 GMT
Unable to send compressed message!!

                 Key: AXIS2-5052
             Project: Axis2
          Issue Type: Bug
          Components: client-api
    Affects Versions: 1.5.4
         Environment: Windows xp, 
            Reporter: anil bondalapati
            Priority: Critical
             Fix For: 1.5.5


I have two webservices deployed on two different servers. (service1 and service2) 
>From my client program I have enabled the GZIP format on the request for the serviceClient.

When I make a call to the service1, the message is compressed and sent to the server and everything
looks good. 

After some time I made a call to the service2 and the request xml is sent in compressed format
and looks fine. 

But Now if I sent the message to the service1, it is in clear text and not using the compressed

Am I missing any options on the ServiceClient. Please let me know if you have faced this problem.

Here is the code I am using: 
      &a! mp;n! bsp;            HttpMethodRetryHandler retry_handler = new DefaultHttpMethodRetryHandler(0,
                    HttpClientParams params = new HttpClientParams(); 
                    params.setParameter(HttpMethodParams.RETRY_HANDLER, retry_handler); 
                    options.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, new org.apache.commons.httpclient.HttpClient(params,
                options.setProperty(HTTPConstants.MC_GZIP_REQUEST, true); 
                options.setProperty(HTTPConstants.MC_ACCEPT_GZIP, true); 
                options.setProperty(HTTPConstants.MC_GZIP_RESPONSE, true); 
            &! nbsp;!     options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);

                options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, wsTimeOutInMilliSeconds);


Any help is greatly appreciated.

This message is automatically generated by JIRA.
For more information on JIRA, see:

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

View raw message