function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SteveSteve 

Request Compression

I know there are examples available of how to modifying Axis classes to enable compression on SOAP messages recieved from Salesforce.

But does anyone have an experience on how to send compressed messages from the client? 

I understand that we need to set the message header "Content-Encoding" to gzip, but I'm not sure how to modify the Axis classes to get it to work.

If someone has done it before, I'd appreciate any help.

Thanks,

Steve

DevAngelDevAngel

Hi Steve,

You are on the right track in that you do have to modify part of the Axis distribution to achieve this.  The class to modify is org.apache.axis.transport.http.HTTPSender.  This class contains a function called writeToSocket and a function called readFromSocket.  These are the points at which you can compress and decompress the message from/to the web services.