This documentation is archived and is not being maintained.
SoapHeaderBinding.Message Property
.NET Framework 1.1
Gets or sets a value specifying the name of the Message within the XML Web service to which the SoapHeaderBinding applies.
[Visual Basic] Public Property Message As XmlQualifiedName [C#] public XmlQualifiedName Message {get; set;} [C++] public: __property XmlQualifiedName* get_Message(); public: __property void set_Message(XmlQualifiedName*); [JScript] public function get Message() : XmlQualifiedName; public function set Message(XmlQualifiedName);
Property Value
An XmlQualifiedName representing the name of the Message.
Remarks
The default value of this property is an empty string ("").
Example
[Visual Basic] Dim mySoapHeaderBinding As New SoapHeaderBinding() ' Set the Message within the XML Web service to which the ' 'SoapHeaderBinding' applies. mySoapHeaderBinding.Message = New XmlQualifiedName("s0:HelloMyHeader") mySoapHeaderBinding.Part = "MyHeader" mySoapHeaderBinding.Use = SoapBindingUse.Literal ' Add mySoapHeaderBinding to the 'myInputBinding' object. myInputBinding.Extensions.Add(mySoapHeaderBinding) [C#] SoapHeaderBinding mySoapHeaderBinding=new SoapHeaderBinding(); // Set the Message within the XML Web service to which the // 'SoapHeaderBinding' applies. mySoapHeaderBinding.Message= new XmlQualifiedName("s0:HelloMyHeader"); mySoapHeaderBinding.Part="MyHeader"; mySoapHeaderBinding.Use=SoapBindingUse.Literal; // Add mySoapHeaderBinding to the 'myInputBinding' object. myInputBinding.Extensions.Add(mySoapHeaderBinding); [C++] SoapHeaderBinding* mySoapHeaderBinding = new SoapHeaderBinding(); // Set the Message within the XML Web service to which the // 'SoapHeaderBinding' applies. mySoapHeaderBinding->Message = new XmlQualifiedName(S"s0:HelloMyHeader"); mySoapHeaderBinding->Part=S"MyHeader"; mySoapHeaderBinding->Use=SoapBindingUse::Literal; // Add mySoapHeaderBinding to the 'myInputBinding' object. myInputBinding->Extensions->Add(mySoapHeaderBinding);
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
SoapHeaderBinding Class | SoapHeaderBinding Members | System.Web.Services.Description Namespace
Show: