These tutorials demonstrate selected features in ASP.NET version 2.0, but they are compatible with later versions of ASP.NET as well. For the current documentation, see the ASP.NET portal on the MSDN Web site.

 

 

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

ASP.NET 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.

		
Dim service As New EnableDecompressionService()
service.EnableDecompression = true
VB


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 � 2005 Microsoft Corporation. All rights reserved.