Compression + MTOM

Feb 15, 2009 at 12:07 PM
Is there any way to enable compression and MTOM message encoding at the same time. I have tried following configurations:
 - CustomBinding with binding elements: MtomMessageEncodingBindingElement, CompressionBindingElement, HttpTransportBindingElement.
 - CompressionBehavior with basicHttpBinding configured to encode messages using MTOM.

Neither of these did work. Size of compressed data (about 4kB) in messages was greater than 1kB, so compressed data was big enough to use MTOM.

Do the current version (22661) can work with MTOM?