Specifies whether the recipient of the System.Web.Services.Protocols.SoapHeader is the XML Web service, the XML Web service client, or both.
A System.Web.Services.Protocols.SoapHeaderAttribute can be applied to either an XML Web service method or a method of a proxy class to an XML Web service. In either case, the recipient(s) are specified by the SoapHeaderAttribute.Direction property of System.Web.Services.Protocols.SoapHeaderAttribute. To specify that an XML Web service method returns a SOAP header when an exception is thrown during its execution, apply an System.Web.Services.Protocols.SoapHeaderAttribute to the method and set the SoapHeaderAttribute.Direction property to SoapHeaderDirection.Fault.
Version 1.0 of the .NET Framework does not support the SoapHeaderDirection.Fault value.
Member Name | Description |
---|---|
Fault |
Specifies the System.Web.Services.Protocols.SoapHeader is sent to the XML Web service client when an exception is thrown by the XML Web service method. |
In |
Specifies the System.Web.Services.Protocols.SoapHeader is sent to the XML Web service. |
InOut |
Specifies the System.Web.Services.Protocols.SoapHeader is sent to both the XML Web service and the XML Web service client. |
Out |
Specifies the System.Web.Services.Protocols.SoapHeader is sent to the XML Web service client. |