SoapHeaderAttribute Class
Assembly: System.Web.Services (in system.web.services.dll)
[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple=true)] public ref class SoapHeaderAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=true) */ public final class SoapHeaderAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=true) public final class SoapHeaderAttribute extends Attribute
Not applicable.
The basic steps to receiving and processing a SOAP header are:
-
Create a class deriving from SoapHeader representing the data passed in the SOAP header.
-
Add a member to the XML Web service class or XML Web service client proxy class of the type created in step 1.
-
Apply a SoapHeaderAttribute to the XML Web service method or the corresponding method in the proxy class, specifying the member created in step 2 in the MemberName property.
-
Within the XML Web service method or XML Web service client code, access the MemberName property to process the data sent in the SOAP header.
For more details, see the MemberName property.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.