WSE 2 Compresion Filter Sample

Matt ask me for an example of the compression filter for WSE. Here this the example that I wrote for him.