See Also: WebClientProtocol Members
The properties of the System.Web.Services.Protocols.WebClientProtocol class are used to control the behavior of the transport used to transmit the XML Web service request and response. The properties on this class map to properties found on System.Net.WebRequest. Instances of classes deriving from System.Net.WebRequest, such as System.Net.HttpWebRequest, are used as the transport mechanism for XML Web services created using ASP.NET.
To communicate with an XML Web service, you must create a proxy class deriving indirectly or directly from System.Web.Services.Protocols.WebClientProtocol for the XML Web service you want to call. Instead of creating the proxy class manually, you can use the Wsdl.exe tool to create a proxy class for a given XML Web service's service description. Since System.Web.Services.Protocols.WebClientProtocol is the base class for your client proxy, you will find its properties on your proxy classes. These properties are useful for controlling the request behavior of the underlying transport. For instance, use the WebClientProtocol.Credentials property for calling authenticated XML Web services. Many of the System.Web.Services.Protocols.WebClientProtocol properties are used to initialize the System.Net.WebRequest object that is used to make the Web request.