I'm trying to gzip all requests and responses of a asp.net 4.0 web service hosted by IIS 7.
Here is my client code:
XServiceReference.EndOfDayWebService client = new XServiceReference.EndOfDayWebService();
client.EnableDecompression = true;
client.CallMethod();
Is it enough to compress the requests? If the answer is yes, what method will be used for compression? gzip, deflate etc... If the answer is no what do I have to do additionally?
In the server side, I did the configuration mentioned here: http://www.iis.net/ConfigReference/system.webServer/httpCompression
I installed "Http Compression Dynamic" Windows feature and enabled dynamic content compression for the application containing the web service in IIS. Is it enough to compress the responses? If not what do I have to do?