I am using asmx web service and calling it through ajax as
$.ajax({ url: 'xxxxxxx.asmx/Getxxxxxxxx', method: 'post', contentType: 'application/json; charset=utf-8', dataType: 'json', success: function (data) { $(data.d).each(function (index, category) {
My service returns a list of objects. I was reading on how to compress the response of a web service and it seems to me that to do this I need to override the GetWebRequest method and use Gzip/Deflate (in a class derived from web service proxy class).
The next step would be to use an instance of this class (which overrides GetWebRequest) and use this in application.
Since, I am using ajax call, I am not sure how to use this instance of class which overrides GetWebRequest method.
Thank you.