WebClientProtocol.GetWebResponse Method (WebRequest, IAsyncResult)

 

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.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

protected virtual WebResponse GetWebResponse(
	WebRequest request,
	IAsyncResult result
)

Parameters

request
Type: System.Net.WebRequest

The WebRequest to get the response from.

result
Type: System.IAsyncResult

The IAsyncResult to pass to EndGetResponse when the response has completed.

Return Value

Type: System.Net.WebResponse

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

Exception Condition
WebException

If Abort is invoked prior to calling GetWebResponse.

.NET Framework
Available since 1.1
Return to top
Show: