Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   |   Class Browser
  |   I want my samples in...   

ASP.NET Web Services QuickStart Tutorial

Go To...

Simple Web Service That Demonstrates the EnableDecompression Feature



When the EnableDecompression property on an instance of a client proxy class is set to true the client will support decompression.

		
EnableDecompressionService service = new EnableDecompressionService();
service.EnableDecompression = true;
C#


This gives the ability to interoperate with services that support compression.

To disable decompression, set EnableDecompression to false. One likely scenario for this is when you want to view SOAP traces of the responses being sent from the server in plain text. Setting this property to false lets the server know that decompression is not supported.

NOTE: The Web service in this sample does not support compression.
Run C# Sample
Run Sample View Source



Microsoft .NET Framework SDK QuickStart Tutorials Version 2.0
Copyright � 2005 Microsoft Corporation. All rights reserved.


Hosted by MaximumASP | Found a broken link? | Contact Us | Terms and conditions | Privacy Policy | Advertise with us
� 2000 - 2008  Mindcracker LLC. All Rights Reserved