System.Web.Services.Configuration.SoapEnvelopeProcessingElement.IsStrict Property

Gets or sets a value that indicates whether to throw an exception if the serializer encounters unexpected elements or attributes.

Syntax

[System.Configuration.ConfigurationProperty("strict", DefaultValue=false)]
public bool IsStrict { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Set the SoapEnvelopeProcessingElement.IsStrict property to true in order to help debug interoperation scenarios. In general, when the System.Xml.Serialization.XmlSerializer class meets an element or attribute that it does not expect it raises an System.Xml.Serialization.XmlSerializer.UnknownNode event and continues processing. (The same is true when the System.Xml.Serialization.XmlArrayAttribute.Order, System.Xml.Serialization.XmlElementAttribute.Order, or System.Xml.Serialization.XmlAnyElementAttribute.Order properties are used but data is sent out of order.) Setting the SoapEnvelopeProcessingElement.IsStrict property to true instructs the Web services run time to handle that event and throw a InvalidOperationException that contains a list of the expected elements and attributes.

Note:

Because exceptions are not thrown for all unexpected elements and attributes, the SoapEnvelopeProcessingElement.IsStrict property should not be relied upon except as a debugging aid. For example, unexpected xml:lang and xml:space attributes may not cause an exception.

Requirements

Namespace: System.Web.Services.Configuration
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0