Class ProxyWrapper

The ProxyWrapper class is a subclass injected by the West Wind Proxy Generator into the class hierarchy of a Web Service. As such it provides a handful of helper functions that are available on the .NET proxy class.

The features provided by this class are:

  • HTTP Logins/Authentication
  • Add and clear HTTP headers
  • Ignoring Certificate Errors
System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Web.Services.Protocols.WebClientProtocol
        System.Web.Services.Protocols.HttpWebClientProtocol
          System.Web.Services.Protocols.SoapHttpClientProtocol
            ConfigurationService.ProxyWrapper
public class ProxyWrapper : SoapHttpClientProtocol

Class Members

MemberDescription

AddHttpHeader

Adds an HTTP header to the current request.

public void AddHttpHeader(string key,
    string value);

ClearHttpHeaders

Clears HTTP headers set with AddHeader(). Note that this clears only headers set with AddHeader() not the default headers set by the Web Service proxy class itself.

public void ClearHttpHeaders();

HttpLogin

Allows specifying a username and password for HTTP logins.

public void HttpLogin(string username,
    string password,
    bool preAuthenticate);

IgnoreCertificateErrors

When called causes SSL certificate errors to be ignored and a connection to be established despite errors.

public void IgnoreCertificateErrors();

SetTimeout

Shortcut method that sets the request timeout for the SOAP request on the .NET WSDL Proxy.

The default timeout is 15 seconds.

o.ProxyWrapper.SetTimeout(int timeoutMs)

Requirements

Namespace: ConfigurationService
Assembly: configurationserviceproxy.dll

© West Wind Technologies, 2004-2020 • Updated: 09/29/15
Comment or report problem with topic