Soap12FaultCodes.VersionMismatchFaultCode Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public: static initonly System::Xml::XmlQualifiedName ^ VersionMismatchFaultCode;
public static readonly System.Xml.XmlQualifiedName VersionMismatchFaultCode;
staticval mutable VersionMismatchFaultCode : System.Xml.XmlQualifiedName
Public Shared ReadOnly VersionMismatchFaultCode As XmlQualifiedName
Field Value
Remarks
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 Configuration Options for XML Web Services Created Using ASP.NET.
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.