O'Reilly logo

Real World XML Web Services: For VB and VB .NET Developers by Yasser Shohoud

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10.6. A Compression SOAP Extension

The preceding SOAP extensions read the request message and take the appropriate actions based on what's in the message and how they are configured. Now I'll show you a SOAP extension that modifies the message stream on both the client and service sides. Listing 10.10 shows the CompressExtension SOAP extension class.

Listing 10.10. The compression SOAP Extension (VBWSBook\Chapter10\Infrastructure\Compress.vb)
 Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.Configuration Imports System.IO Public Enum CompressionTypes GZip None End Enum Public Class CompressExtension Inherits System.Web.Services.Protocols.SoapExtension Private _CompressionType As CompressionTypes Private _workStream ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required