WebServicesClientProtocol.GetWebResponse Method (WebRequest, IAsyncResult)
Returns a System.Net.WebResponse from an asynchronous request to an XML Web service.
Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.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
);
protected WebResponse GetWebResponse(
WebRequest request,
IAsyncResult result
);
protected override function GetWebResponse(
request : WebRequest,
result : IAsyncResult
) : WebResponse;
Parameters
- request
The System.Net.WebRequest to get the System.Net.WebResponse from.
- result
An System.IAsyncResult that status of an asynchronous operation when the response has completed.
Return Value
A System.Net.WebResponse that represents the results of the request.
Exceptions
| Exception type | Condition |
|---|---|
| System.Net.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 Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
WebServicesClientProtocol Class
Microsoft.Web.Services2 Namespace