System.Web.Services.Protocols.SoapException.Detail Property

Gets an System.Xml.XmlNode that represents the application-specific error information details.

Syntax

public System.Xml.XmlNode Detail { get; }

Value

a System.Xml.XmlNode

Remarks

The SoapException.Detail property can be set using one of the class constructors that accepts a SoapException.Detail value.

The SoapException.Detail property is used to supply application-specific error details related to the Body element of the SOAP request. According to the SOAP specification, if an error occurs because the client request cannot be processed due to the Body element of the SOAP request, the SoapException.Detail property must be set. If an error occurs in the header entries of the SOAP request, you must throw a System.Web.Services.Protocols.SoapHeaderException, so that the error details are returned in the SOAP header. If the error does not occur, due to the processing of the Body element, then the SoapException.Detail property must not be set.

In building an System.Xml.XmlNode for the SoapException.Detail property, the System.Xml.XmlQualifiedName.Name and System.Xml.XmlQualifiedName.Namespace properties of SoapException.DetailElementName can be used to ensure consistency with the SOAP specification.

All immediate child elements of the detail element are called detail entries and each detail entry is encoded as an independent element within the detail element.

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