Wednesday, March 11, 2009

EnableDecompression in ASP.NET WebService

Suppose that the Web Server from which a Web-Service client is requesting Web-Service supports compression; then the web-service client will receive respone as compressed data.

We can disable the decompression by setting the EnableDecompression property to true.

// on client web-application
Service srvc1 = new Service();
srvc1.EnableDecompression = true;
// call your web-service method here (example)
string dtime = srvc1.ReturnDateTime();


black.marque said...

hey bro.. please help me promote world earth hour.. and post a link to .. each one of us can make a difference.. and also do register with by switchin off the light bulb..

Anonymous said...

You "disable the decompression it by setting EnableDecompression property to true"? You may want to review that statement ;-)

Best viewed in Internet Explorer 8.