I have a webservice and client in C # / dotnet, and I use EnableDecompression to gzip the compression of the responses I get from the web server. Can I also compress queries?
SOAP extensions allow a monkey with a SOAP stream on both the client and server. They are good because you can leave your service code alone - manipulations occur before the start of the web method and after its completion. They work a lot like an HttpModule, but can also be included on the client / request side.
In addition, the only possibility that comes to mind is serialization and compression of large SOAP elements in the form of a byte [], and then manual decompression and deserialization on the server (shudder ...). Service issues with this approach are probably prohibitive.
I found this tutorial about compressing SOAP messages in C # using the SharpZipLib library and SOAP extensions:
It seems that he adorns about 30% of the compression, today he will try to try.