System.Web.Services.Protocols.SoapHeader Class

When overridden in a derived class, represents the content of a SOAP header.

See Also: SoapHeader Members


public abstract class SoapHeader


SOAP headers offer a method for passing data to and from an XML Web service method if the data is not directly related to the XML Web service method's primary functionality. For instance, an XML Web service might contain several XML Web service methods that each require a custom authentication scheme. Instead of adding parameters to each XML Web service method for the custom authentication scheme, a System.Web.Services.Protocols.SoapHeaderAttribute, referring to a class deriving from System.Web.Services.Protocols.SoapHeader, can be applied to each XML Web service method. The implementation for the class deriving from System.Web.Services.Protocols.SoapHeader handles the custom authentication scheme. In this manner, the XML Web service method implements only the functionality specific to it and adds additional functionality using a SOAP header.

The following list outlines the basic steps to receiving and processing a SOAP header:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]


Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0,