Share via


WebServicesClientProtocol.GetWebResponse Method (WebRequest)

Returns a WebResponse from a synchronous 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)
            MyBase.GetWebResponse(request)
        End Function
End Class

Syntax

'Declaration
Overloads Protected Overrides Function GetWebResponse( _
    ByVal request As WebRequest _
) As WebResponse
protected override WebResponse GetWebResponse(
    WebRequest request
);
protected:
virtual WebResponse^ GetWebResponse(
    WebRequest^ request
) override;
protected override WebResponse GetWebResponse(
    WebRequest request
);
protected override function GetWebResponse(
     request : WebRequest
) : WebResponse;

Parameters

  • request
    The WebRequest from which to get the WebResponse.

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 prior to calling GetWebResponse.

Remarks

This protected method is called by the .NET Framework SDK to get the response from a synchronous XML Web service request.

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