Export (0) Print
Expand All

Soap12FaultCodes Class

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.

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in system.web.services.dll)

public sealed class Soap12FaultCodes
public final class Soap12FaultCodes
public final class Soap12FaultCodes
Not applicable.

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.

System.Object
  System.Web.Services.Protocols.Soap12FaultCodes

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

ADD
Show:
© 2014 Microsoft