Specifies the base class for all XML Web service client proxies created using ASP.NET.
Assembly: System.Web.Services (in System.Web.Services.dll)
Gets a value indicating whether the component can raise an event.(Inherited from Component.)
Gets or sets the name of the connection group for the request.
Gets or sets security credentials for XML Web service client authentication.
Gets or sets whether pre-authentication is enabled.
The Encoding used to make the client request to the XML Web service.
Indicates the time an XML Web service client waits for the reply to a synchronous XML Web service request to arrive (in milliseconds).
Gets or sets the base URL of the XML Web service the client is requesting.
Cancels a request to an XML Web service method.
Add an instance of the client protocol handler to the cache.
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Gets an instance of a client protocol handler from the cache.
Serves as the default hash function. (Inherited from Object.)
Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Returns a response from a synchronous request to an XML Web service method.
Returns a response from an asynchronous request to an XML Web service method. This protected method is called by the XML Web service client infrastructure to get the response from an asynchronous XML Web service request.
Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
To communicate with an XML Web service, you must create a proxy class deriving indirectly or directly from Credentials property for calling authenticated XML Web services. Many of the properties are used to initialize the WebRequest object that is used to make the Web request.for the XML Web service you want to call. 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 is the base class for your client proxy, you will find its properties on your proxy classes. These properties are useful for controlling the request behavior of the underlying transport. For instance, use the
The following example is an ASP.NET Web Form, which calls an XML Web service named Math. Within the EnterBtn_Click function, the Web Form sets proxy information and client credentials on the proxy class prior to calling the remote XML Web service method.
This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview.
Available since 1.1
The properties on this class are copied into a new instance of a WebRequest object for each XML Web service method call. While you can call XML Web service methods on the same instance from different threads at the same time, there is no synchronization done to ensure that a consistent snapshot of the properties will get transferred to the WebRequest object. Therefore if you need to modify the properties and make concurrent method calls from different threads you should use a different instance of the XML Web service proxy or provide your own synchronization.