Home   |   QuickStart Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   
  |   I want my samples in...      

ASP.NET 2.0 Web Services QuickStart Tutorial

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;

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 VB Sample
Run Sample View Source

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