System.Web.Services 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Web.Services.Protocols.WebClientProtocol

The properties on this class are used to control the behavior of the HTTP request object used to transmit the XML Web service request and response. The properties map to properties found on .

To communicate with an XML Web service using HTTP, you must create a proxy class deriving indirectly or directly from for the XML Web service. 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 HttpWebClientProtocol is the base class for all proxy classes, its properties are on your proxy classes. These properties are useful for controlling the request behavior of the underlying transport. For example, use the property for calling XML Web services through a firewall. Many of these properties are used to initialize the that makes the Web request.

, , and derive directly or indirectly from to provide support for SOAP, HTTP-GET and HTTP-POST respectively.

Represents the base class for all XML Web service client proxies that use the HTTP transport protocol.

- Constructor
  To be added

  Initializes a new instance of the class.

  1.0.5000.0
  2.0.0.0
- Property
  System.Boolean To be added: an object of type 'bool'

  If a client sends authentication information, such as a user name and password, you do not want to enable the server to redirect, because this can compromise security.

  A is thrown if the property is false and the Web server attempts to redirect the request. The property contains an object, where both the and properties reflect details regarding the attempted redirect. The property contains an equivalent to one of the HTTP redirect status codes (301, 302, and 307) and the Location header within the collection points to the URI that the request attempted to be redirected to.

  Gets or sets whether the client automatically follows server redirects.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DefaultValue(false)
- Method
  2.0.0.0
  System.Void `` To be added.

  Cancels an asynchronous call to an XML Web service method, unless the call has already completed.

  The object provided in the last parameter to the asynchronous call of the Begin method.
- Property
  System.Security.Cryptography.X509Certificates.X509CertificateCollection a

  This property allows a client to pass one or more client certificates, also known as Authenticode X.509 v.3 certificates, when calling an XML Web service method. If the XML Web service method has been configured to use client certificates, a client certificate can be used as one mechanism for authenticating a client. For details on setting up client certificates, see the Internet Information Services (IIS) documentation.

  Gets the collection of client certificates.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
  System.ComponentModel.Browsable(false)
- Property
  System.Net.CookieContainer a

  If an XML Web service method uses session state, then a cookie is passed back in the response headers to the XML Web service client that uniquely identifies the session for that XML Web service client. In order for an XML Web service to maintain session state for a client, the client must store the cookie. Clients receive the HTTP cookie by creating a new instance of and assigning that to the property of the proxy class before calling the XML Web service method. If you need to maintain session state beyond when the proxy class instance goes out of scope, the client must store the HTTP cookie between calls to the XML Web service. For instance, a Web Forms client can store the HTTP cookie by saving the in its own session state. Because not all XML Web services use session state and thus clients are not always required to use the property of a client proxy, the documentation for the XML Web service must state whether session state is used.

  Gets or sets the collection of cookies.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DefaultValue(null)
- Property
  2.0.0.0
  System.ComponentModel.DefaultValue(false)
  System.Boolean To be added. To be added.

  Gets or sets a value that indicates whether decompression is enabled for this .

- Method
  2.0.0.0
  System.Boolean `` `` To be added. To be added.

  Gets the for each XML Web service method exposed by the specified type, and stores the mappings in the specified .

  true if can be assigned to a ; otherwise, false.

  The that exposes the XML Web service methods.
- Method
  2.0.0.0
  System.Collections.Hashtable `` `` To be added. To be added.

  Gets the for each XML Web service method exposed by the specified types, and stores the mappings in the specified , as well as in a that this method returns.

  A that contains the for each XML Web service method exposed by the specified types. The types contained in are used as keys.

  An array of type that contains the types that expose the XML Web service methods.
- Method
  System.Net.WebRequest `` To be added

  Creates a for the specified URI.

  The created .

  The for creating the . 1.0.5000.0 2.0.0.0
- Method
  System.Net.WebResponse `` To be added

  Returns a response from a synchronous request to an XML Web service method.

  A response from a synchronous request to an XML Web service method.

  The from which to get the response. 1.0.5000.0 2.0.0.0
- Method
  System.Net.WebResponse `` `` To be added

  Returns a response from an asynchronous request to an XML Web service method.

  A response from an asynchronous request to an XML Web service method.

  The from which to get the response. The to pass to when the response has completed. 1.0.5000.0 2.0.0.0
- Property
  System.Net.IWebProxy a

  Use the property if a client needs to use different proxy settings than those in the system settings. Use the class to set the proxy settings, because it implements .

  Default proxy settings can be set in a configuration file. For details, see [<topic://cpconconfiguringinternetapplications>].

  Gets or sets proxy information for making an XML Web service request through a firewall.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
  System.ComponentModel.Browsable(false)
- Property
  1.0.5000.0
  2.0.0.0
  System.Boolean To be added.

  This property sets the value of the property of the used to communicate with the Web server.

  Gets or sets a value that indicates whether connection sharing is enabled when the client uses NTLM authentication to connect to the Web server that hosts the XML Web service.

  System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
  System.ComponentModel.Browsable(false)
- Property
  System.String To be added: an object of type 'string'

  The user agent string allows a Web server to identify the client.

  Gets or sets the value for the user agent header that is sent with each request.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
  System.ComponentModel.Browsable(false)
System.Runtime.InteropServices.ComVisible(true)