System.Web.Services.Protocols.SoapHeaderDirection Enumeration

Specifies whether the recipient of the System.Web.Services.Protocols.SoapHeader is the XML Web service, the XML Web service client, or both.

Syntax

[System.Flags]
public enum SoapHeaderDirection

Remarks

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.

Members

Member NameDescription
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.

Requirements

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