Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

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

Namespace:  System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)
public sealed class Soap12FaultCodes

The Soap12FaultCodes type exposes the following members.

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Public fieldStatic memberDataEncodingUnknownFaultCodeRepresents the SOAP version 1.2 DataEncodingUnknown fault code indicating the SOAP message is encoded in an unrecognized format.
Public fieldStatic memberEncodingMissingIdFaultCodeRepresents the fault code for missing ID in SOAP encoding data.
Public fieldStatic memberEncodingUntypedValueFaultCodeRepresents the SOAP version 1.2 enc:UntypedValue fault subcode indicating that the SOAP message was RPC-encoded and the type name property of an encoded graph node was not specified.
Public fieldStatic memberMustUnderstandFaultCodeRepresents the SOAP version 1.2 MustUnderstand fault code indicating a SOAP header marked with the MustUnderstand attribute was not processed.
Public fieldStatic memberReceiverFaultCodeRepresents the SOAP version 1.2 Receiver fault code indicating an error occurred during the processing of a client call on the server due to a problem with the recipient.
Public fieldStatic memberRpcBadArgumentsFaultCodeRepresents the SOAP version 1.2 rpc:BadArguments fault subcode indicating that arguments sent to the XML Web service method were incorrect or could not be parsed.
Public fieldStatic memberRpcProcedureNotPresentFaultCodeRepresents the SOAP version 1.2 rpc:ProcedureNotPresent fault subcode indicating the XML Web service does not support the requested XML Web service method.
Public fieldStatic memberSenderFaultCodeRepresents the SOAP version 1.2 Sender fault code indicating a client call was not formatted correctly or did not contain the appropriate information.
Public fieldStatic memberVersionMismatchFaultCodeRepresents the SOAP version 1.2 VersionMismatch fault code indicating the XML Web service expected SOAP messages conforming to the SOAP 1.2 specification, yet received one conforming to SOAP 1.1.
Top

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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.