This documentation is archived and is not being maintained.

Soap12FaultCodes::MustUnderstandFaultCode Field

Represents the SOAP version 1.2 MustUnderstand fault code indicating a SOAP header marked with the MustUnderstand attribute was not processed.

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

public:
static initonly XmlQualifiedName^ MustUnderstandFaultCode

Not all SOAP headers require processing by the recipient. However, if a SOAP header is marked with the MustUnderstand attribute equal to "true", processing is required. Failure to process the header when it resides within a SOAP 1.2 request generates a SoapHeaderException with the Code property set to Soap12FaultCodes::MustUnderstandFaultCode. If the SOAP request resided within a SOAP 1.1 request, the Code property is set to SoapException::MustUnderstandFaultCode.

Both SOAP 1.1 and 1.2 define MustUnderstand SOAP fault codes differing only by the version of the SOAP protocol used to send the SOAP message. This field represents the SOAP 1.2 version, and the SOAP 1.1 version is represented by SoapException::MustUnderstandFaultCode. The two fields map to different qualified names, but you can check whether the Code property is either one of the fault codes by calling the IsMustUnderstandFaultCode method.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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