WebClientProtocol

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



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net