Matthew Lynn asked for the WSE compression filter code, and here it is.
My colleague Martin Valland and I wrote this code based on an idea we had for a compression specification for web services. This implementation as well as the SOAP extensions it relies upon is proprietary. As far as I know there is currently no publicly available specification that addresses this particular subject.
The code relies upon #ziplib for the compression algorithms.
This is a prototype implementation and it comes without warranty of any kind.