How to use Gzip in Webservices Response C#?
<p>I am calling webservices from javascript,i want response back in gzip but presently my response is not gzip. can any on help me out...</p>

<p>edit: this is the code i use</p>

<pre><code>$.ajax({

    type: "POST",
    url: "wsDashboard.asmx/" + 'Banner_GetAll',

    dataType: "json",
    contentType: 'application/json; charset=utf-8',
    success: function (response) {
        response = response.d;
        if (!response.isSucceeded) {
            j.Alert(response.message, "Error");
            return;
        }
        var result = response.result;

        var arrBanner = [];
        for (var index = 0; index &lt; result.length; index++) {
            var newBanner = new Banner(result[index].Id, result[index].BannerName, result[index].Url, result[index].HyperLink);
            arrBanner.push(newBanner);
        }
        if (callback) callback(arrBanner);


    }
});
</code></pre>

<p>i have configured iis to give responses in gzip all other contents are comming Gziped except for the web service response i would like to compress that too (the response is given in json) the request header contains header accept encoding Gzip</p>
