Module for AS4 Version 10.1.May 2019 | Understanding and Using webMethods AS4 Module | Installing and Using AS4 Module | Configuring Module for AS4 | Configuring Optional Features | Configuring Payload Compression
 
Configuring Payload Compression
Module for AS4 is capable of providing configurable compression and decompression of application payloads. AS4 messages that contain compressed or application payloads are built according to the SOAP with Attachments specification. Each compressed payload is carried in its own MIME body part.
When you want to send a compressed payload, set the PMode.PayloadService.CompressionType P-Mode parameter to application/gzip, as described below. Enabling this P-Mode parameter indicates to the sending MSH that the outgoing message payloads should be compressed before sending. Therefore, the receiving MSH must decompress the payload part before it delivers the message to the receiver.
Note:
When the incoming message contains a compressed payload part(s), the receiving MSH decompresses the payload irrespective of the value of the TPA's CompressionType P-Mode parameter.
*To configure the module to compress the payload of an AS4 message
1. In My webMethods: Administration > Integration > B2B > Trading Partner Agreements > Trading Partner Agreement Details.
2. Select the TPA for which you want to configure compression.
3. In the TPA data panel, configure the payloadService > compressionType parameter. Specify one of the following:
*none—Payload compression is disabled. This is the default.
*application/gzip—Payload compression is enabled.
4. Click OK.
Note:
Payload compression is applied before applying splitting or signing and encrypting.