SoapUnknownHeader.Element Property

Gets or sets the XML Header element for a SOAP request or response.

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

public:
property XmlElement^ Element {
	XmlElement^ get ();
	void set (XmlElement^ value);
}
/** @property */
public XmlElement get_Element ()

/** @property */
public void set_Element (XmlElement value)

public function get Element () : XmlElement

public function set Element (value : XmlElement)

Not applicable.

Property Value

An XmlElement representing the raw XML of the SOAP header.

If an XML Web service method wants to process SOAP headers it does not know about at the time the XML Web service is written, it can process an XmlElement class representing the raw XML of the SOAP header.

The following MyWebService XML Web service receives all SOAP headers, including ones other than the MyHeader SOAP header it knows about. The MyWebMethod XML Web service method returns to the client the XML attributes of the last unknown SOAP header passed to it as a string.

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: