System.Web.Services.Protocols.SoapHeaderException Class

The SOAP representation of a server error.

See Also: SoapHeaderException Members

Syntax

public class SoapHeaderException : SoapException

Remarks

When an XML Web service client adds a SOAP header to an XML Web service method call with the SoapHeader.MustUnderstand property set to true, the XML Web service method must set the SoapHeader.DidUnderstand property to true; otherwise, a System.Web.Services.Protocols.SoapHeaderException is thrown.

The SoapException.Detail property cannot be set according to the SOAP specification for a System.Web.Services.Protocols.SoapHeaderException.

Note:

Applications that use the SOAP 1.1 specification as the service protocol can use the System.Web.Services.Protocols.SoapHeaderException to access SOAP faults. However, applications that use the SOAP 1.2 specification must use the System.Web.Services.Protocols.SoapException to access SOAP faults.

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