Share via


WebServicesClientProtocol.GetWebResponse Method (WebRequest)

Returns a System.Net.WebResponse from a synchronous request to an XML Web service. Returns a System.Net.WebResponse from a synchronous 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)
            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
);
protected WebResponse GetWebResponse(
    WebRequest request
);
protected override function GetWebResponse(
     request : WebRequest
) : WebResponse;

Parameters

  • request
    The System.Net.WebRequest to get the System.Net.WebResponse from.

Return Value

A System.Net.WebResponse that represents the results of the request.

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

System.Net.WebException

The System.Web.Services.Protocols.WebClientProtocol.Abort method was invoked before calling GetWebResponse.

Remarks

This protected method is called by the .NET Framework SDK to get the response from a synchronous XML Web service request. The Web Services Enhancements (WSE) has overridden the method to return a SoapWebResponse .

Remarks

This protected method is called by the .NET Framework to get the response from a synchronous XML Web service request. The Web Services Enhancements (WSE) has overridden the method to return a SoapWebResponse .

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

Other Resources

WebServicesClientProtocol Members