System.Web.Services.Protocols.WebClientProtocol.RequestEncoding Property

The System.Text.Encoding used to make the client request to the XML Web service.

Syntax

[System.ComponentModel.RecommendedAsConfigurable(true)]
[System.ComponentModel.DefaultValue(null)]
public System.Text.Encoding RequestEncoding { set; get; }

Value

a System.Text.Encoding

Remarks

The WebClientProtocol.RequestEncoding determines the encoding for the request message. The System.Net.WebRequest.ContentType of the request will be annotated with the encoding value.

Classes deriving from System.Web.Services.Protocols.WebClientProtocol support a particular protocol, such as System.Web.Services.Protocols.SoapHttpClientProtocol does for SOAP, set this property to conform to encoding requirements for the specific protocol. For example, the System.Web.Services.Protocols.SoapHttpClientProtocol sets the default encoding to UTF-8.

Requirements

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0