Soap12FaultCodes::VersionMismatchFaultCode Field

 

Represents 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.

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

public:
static initonly XmlQualifiedName^ VersionMismatchFaultCode

Field Value

Type: System.Xml::XmlQualifiedName^

A SoapException is thrown with the Code property set to Soap12FaultCodes::VersionMismatchFaultCode when an XML Web service is configured to only accept SOAP 1.2 requests and it receives a SOAP 1.1 message. Likewise, if an XML Web service is configured to accept only SOAP 1.1 messages and it receives a SOAP 1.2 message, a SoapException is thrown with the Code property set to SoapException::VersionMismatchFaultCode. For details on configuring XML Web services, see [<topic://cpconConfigurationOptionsForASPNETWebServices>].

Both SOAP 1.1 and 1.2 define VersionMismatch SOAP fault codes that differ on the version of the SOAP protocol expected. This field represents the SOAP 1.2 version, whereas the SOAP 1.1 version is represented by VersionMismatchFaultCode. 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 IsVersionMismatchFaultCode method.

.NET Framework
Available since 2.0
Return to top
Show: