WebServicesClientProtocol.GetWebResponse Method (WebRequest, IAsyncResult)
Returns a WebResponse from an asynchronous request to an XML Web service.
Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Public Class webServicesClientProtocolImplementation
Inherits WebServicesClientProtocol
Protected Overrides Function GetWebResponse(request As WebRequest, _
result As IAsyncResult)
MyBase.GetWebResponse(request, result)
End Function
End Class
Syntax
'Declaration
Overloads Protected Overrides Function GetWebResponse( _
ByVal request As WebRequest, _
ByVal result As IAsyncResult _
) As WebResponse
protected override WebResponse GetWebResponse(
WebRequest request,
IAsyncResult result
);
protected:
virtual WebResponse^ GetWebResponse(
WebRequest^ request,
IAsyncResult^ result
) override;
protected override WebResponse GetWebResponse(
WebRequest request,
IAsyncResult result
);
protected override function GetWebResponse(
request : WebRequest,
result : IAsyncResult
) : WebResponse;
Parameters
- request
The WebRequest from which to get the WebResponse.
- result
An IAsyncResult that contains the status of an asynchronous operation when the response has completed.
Return Value
A WebResponse that represents the results of the request.
Exceptions
Exception type | Condition |
---|---|
WebException | The System.Web.Services.Protocols.WebClientProtocol.Abort method was invoked before calling GetWebResponse. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
WebServicesClientProtocol Class
WebServicesClientProtocol Members
Microsoft.Web.Services3 Namespace