This documentation is archived and is not being maintained.
How to: Implement a SOAP Extension
Visual Studio 2010
This topic is specific to a legacy technology. XML Web services and XML Web service clients should now be created using
Windows Communication Foundation
.
SoapExtensionAttribute
SoapMessageStage
LogicalMethodInfo
Anatomy of an XML Web Service Lifetime
Building XML Web Service Clients
XML Web Services Using ASP.NET
The following code example is a SOAP extension that logs the SOAP messages sent to and from a Web service or Web service client. If the following SOAP extension is installed to run with a Web service, the ASPNET user account must have permission to write to the directory in which the log file is written.
Note: This particular SOAP extension does not modify the SOAP message. Therefore, it does not need to be implemented symmetrically on both the client and server.
Example
See Also
Tasks
Walkthrough: Altering the SOAP Message Using SOAP ExtensionsReference
SoapExtensionSoapExtensionAttribute
SoapMessageStage
LogicalMethodInfo
Concepts
SOAP Message Modification Using SOAP ExtensionsAnatomy of an XML Web Service Lifetime
Building XML Web Service Clients
Other Resources
Configuring ApplicationsXML Web Services Using ASP.NET
Show: