Share via


WebServicesClientProtocol.GetWebRequest Method

Creates a System.Net.WebRequest instance for the specified URI.

Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Public Class webServicesClientProtocolImplementation
    Inherits WebServicesClientProtocol
        Protected Overrides Function GetWebRequest(uri As Uri)
            MyBase.GetWebRequest(uri)
        End Function
End Class

Syntax

'Declaration
Protected Overrides Function GetWebRequest( _
    ByVal uri As Uri _
) As WebRequest
protected override WebRequest GetWebRequest(
    Uri uri
);
protected:
virtual WebRequest^ GetWebRequest(
    Uri^ uri
) override;
protected override WebRequest GetWebRequest(
    Uri uri
);
protected override function GetWebRequest(
     uri : Uri
) : WebRequest;

Parameters

  • uri
    The Uri to use when creating the System.Net.WebRequest.

Return Value

A WebRequest that represents a request to a specified URI.

Exceptions

Exception type Condition
ArgumentException

uri is not accessible through HTTP or HTTPS.

InvalidOperationException

uri is null.

Remarks

This protected method is called by the .NET Framework SDK to make a synchronous request to an XML Web service.

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