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.

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in

public class SoapFaultSubCode
/** @attribute SerializableAttribute() */ 
public class SoapFaultSubCode
public class SoapFaultSubCode
Not applicable.

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 SoapException and.NET clients receive a SOAP fault by catching a SoapException. A SoapException has the Code property representing the Code element and the Subcode property representing the Subcode element.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

.NET Compact Framework

Supported in: 2.0

Community Additions