How to get SOAP response text generated by OS

How to get SOAP response text generated by OS

  
Hi,

I need to compress SOAP response generated by the platform before sending back to the calling client.
Or... I am ok even if I can somehow get the SOAP response xml and I can do the rest.

Thanks.