DekGenius.com
[ Team LiB ] Previous Section Next Section

WebClientProtocolmarshal by reference, disposable

System.Web.Services.Protocols (system.web.services.dll)abstract class

This is the base class for all web server proxy classes. It includes basic properties like Url, which is usually set to the appropriate web service address in the proxy class's constructor, and Timeout, which specifies a value in milliseconds. By default, the proxy class uses a Timeout of -1, which represents infinity, although the web server can still time out the request on the server side. The RequestEncoding property is overridden by derived classes to provide the appropriate character encoding.

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 automatically send authentication information with every request.

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 type, object value);
   protected static object GetFromCache(Type type);
// Public Instance Methods
   public virtual void Abort( );
// Protected Instance Methods
   protected virtual WebRequest GetWebRequest(Uri uri);
   protected virtual WebResponse GetWebResponse(System.Net.WebRequest request);
   protected virtual WebResponse GetWebResponse(System.Net.WebRequest request, IAsyncResult result);
}

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponent, System.IDisposable) WebClientProtocol

Subclasses

HttpWebClientProtocol

    [ Team LiB ] Previous Section Next Section