SoapHeaderBinding::Message Property

 

Gets or sets a value specifying the name of the Message within the XML Web service to which the SoapHeaderBinding applies.

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

public:
property XmlQualifiedName^ Message {
	XmlQualifiedName^ get();
	void set(XmlQualifiedName^ value);
}

Property Value

Type: System.Xml::XmlQualifiedName^

An XmlQualifiedName representing the name of the Message.

The default value of this property is an empty string ("").

SoapHeaderBinding^ mySoapHeaderBinding = gcnew SoapHeaderBinding;
// Set the Message within the XML Web service to which the
// 'SoapHeaderBinding' applies.
mySoapHeaderBinding->Message =
   gcnew XmlQualifiedName( "s0:HelloMyHeader" );
mySoapHeaderBinding->Part = "MyHeader";
mySoapHeaderBinding->Use = SoapBindingUse::Literal;
// Add mySoapHeaderBinding to the 'myInputBinding' object.
myInputBinding->Extensions->Add( mySoapHeaderBinding );

.NET Framework
Available since 1.1
Return to top
Show: