SoapHeader.DidUnderstand Property

Gets or sets a value indicating whether an XML Web service method properly processed a SOAP header.

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

public:
property bool DidUnderstand {
	bool get ();
	void set (bool value);
}
/** @property */
public boolean get_DidUnderstand ()

/** @property */
public void set_DidUnderstand (boolean value)

public function get DidUnderstand () : boolean

public function set DidUnderstand (value : boolean)

Not applicable.

Property Value

true if the SOAP header was properly processed; otherwise false.

For SOAP headers defined by an XML Web service, ASP.NET assumes the XML Web service method properly processed the SOAP header by setting the initial value of DidUnderstand to true. For SOAP headers not defined by the XML Web service, the initial value is false. If ASP.NET detects SOAP headers passed to an XML Web service method with DidUnderstand set to false after the method returns, a SoapHeaderException is thrown back to the XML Web service client instead of the results from the XML Web service method.

The following MyWebService XML Web service defines the MyHeader SOAP header and requires it to be sent with any calls to the MyWebMethod XML Web service method. Additionally, the MyWebMethod receives any SOAP headers other than the MyHeader SOAP header. For SOAP headers that MyWebMethod can process, DidUnderstand is set to true.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show: