System.Web.Services.Protocols.SoapFaultSubCode Class

Represents the contents of the optional Subcode element of a SOAP fault when SOAP version 1.2 is used to communicate between a client and an XML Web service.

See Also: SoapFaultSubCode Members

Syntax

public class SoapFaultSubCode

Remarks

A SOAP 1.2 fault contains a Code element and among other things an optional Subcode element. The Code element specifies the type of error that occurred using a limited number of pre-defined error codes specified by the SOAP protocol, whereas the Subcode element allows the sender of the SOAP fault to provide an application specific error code. This class represents the contents of the Subcode element.

XML Web services return a SOAP fault by throwing a System.Web.Services.Protocols.SoapException and.NET clients receive a SOAP fault by catching a System.Web.Services.Protocols.SoapException. A System.Web.Services.Protocols.SoapException has the SoapException.Code property representing the Code element and the SoapException.Subcode property representing the Subcode element.

Requirements

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0