
WebServiceHandlerFactory | 629
Protocols
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
To set Credentials, you must use a System.Net.ICredentials object like System.Net.NetworkCredential
and set the credentials that are specific to the type of authentication you are using. You
can also set the PreAuthenticate property to True, which will cause the proxy class to auto-
matically send authentication information with every request.
Hierarchy
System.Object ➝ System.MarshalByRefObject ➝ System.ComponentModel.Compo-
nent(System.ComponentModel.IComponent, System.IDisposable)
➝ WebClientProtocol
Subclasses
HttpWebClientProtocol
WebServiceHandlerFactory
System.Web.Services.Protocols (system.web.services.dll)
class
This class is used by ASP.NET to instantiate an appropriate HttpHandler for handling
web service requests. You do not need to use this class directly in your code.
public abstract class WebClientProtocol : System.ComponentModel.Component {
// Protected Constructors
protected WebClientProtocol();
// Public Instance Properties
public string ConnectionGroupName{set; get; }
public ICredentials Credentials{set; get; }
public bool PreAuthenticate{set; get; }
public Encoding RequestEncoding{set; get; }
public int Timeout{set; get; }
public string Url{set; get; }
// Protected Static Methods
protected static void AddToCache(Type