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
IGCTOIGCTO 

Callout with gzip compression using SOAP WSDL

We are using an Apex Callout using a SOAP WSDL and now want to use gzip compression.  I understand we can do this if we change our code and use HTTP classes instead, but that should not be necessary.

 

With respect to SOAP responses, the documentation says:

 

"The API can optionally compress responses. Responses are compressed only if the client sends an Accept-Encoding header with either gzip or deflate compression specified."

But our callout occurs by a scheduler so how can we use gzip compression for these callouts?