Defines the SOAP fault codes that appear in a SOAP message when an error occurs while communicating with XML Web services using the SOAP version 1.2 protocol.
Assembly: System.Web.Services (in System.Web.Services.dll)
A SOAP fault in version 1.2 of the SOAP specification contains a Code element and among other things an optional Subcode element. The Code element is one of a pre-defined set of codes, informing a recipient that the cause of the error fell into one of five large error categories. Those five fault codes are represented by the ReceiverFaultCode, SenderFaultCode, VersionMismatchFaultCode, MustUnderstandFaultCode, and DataEncodingUnknownFaultCode fields. The Subcode element allows the sender of the SOAP fault to provide an application-specific error code. ASP.NET defines two such codes that are represented by the RpcProcedureNotPresentFaultCode, RpcBadArgumentsFaultCode, EncodingMissingIDFaultCode, and EncodingUntypedValueFaultCode fields.
An XML Web service throwing an exception sets the Code property, which represents the Code element, when a new instance of the SoapException or SoapHeaderException class is created. That error is transmitted over the wire as a SOAP fault, which a .NET Framework client can catch as a SoapException or SoapHeaderException.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.