How to use compression with SOAP Web Service


I have to implement a “SOAP over HTTP” Web Service on a webMethods IS 8.2, with request/response compression.
I checked the wM official documentation but i didn’t find anything on this subject.

Could someone provide me some information ?
Ideally, the step-by-step process to implement data compression with SOAP/HTTP Web Services or a wM documentation that deals with this subject.


Hi Pierre,

You can try this.

  1. Create the response in a compressed format, such as gzip. You need to write your own custom code for the compression logic. Like create and register a Content Handler that does compression.
  2. Call pub.flow:setResponse to set the compressed response body.
  3. Call pub.flow:setResponseHeader to set Content-Encoding to gzip, or whatever compression is used.