Creating a Custom SOAP Extension

In this section, we will take a look at how to create a custom SOAP extension for use with your source code. These custom extensions are useful for adding many things to your applications that do not make sense within the actual Web Method. For example, you may want some special processing to happen whenever a particular header comes through. If the header is used by many of your procedures and the processing for that header is always the same, a custom SOAP extension may be just the thing that you need. SOAP extensions have other uses as well. Some of those uses include the following:

  • Encrypting pieces of the message

  • Implementing extensions to SOAP, such as WS-Routing

  • Adding auditing of the Web Service

  • Anything ...

Get Creating and Consuming Web Services in Visual Basic® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.