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();
:
:
:

2 comments:

Unknown said...

hey bro.. please help me promote world earth hour.. and post a link to http://askeygeek.blogspot.com/2009/03/world-earth-hour-2009-save-mother-earth.html .. each one of us can make a difference.. and also do register with wwfindia.com 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.