Export (0) Print
Expand All

SoapHttpClientProtocol.GetWebRequest Method

Creates a WebRequest instance for the specified url.

[Visual Basic]
Overrides Protected Function GetWebRequest( _
   ByVal uri As Uri _
) As WebRequest
[C#]
protected override WebRequest GetWebRequest(
 Uri uri
);
[C++]
protected: WebRequest* GetWebRequest(
 Uri* uri
);
[JScript]
protected override function GetWebRequest(
   uri : Uri
) : WebRequest;

Parameters

uri
The Uri to use when creating the WebRequest.

Return Value

The WebRequest instance.

Exceptions

Exception Type Condition
InvalidOperationException The uri parameter is a null reference (Nothing in Visual Basic).

Remarks

This method can be overridden to customize the WebRequest object before the XML Web service request is made. For example you could add a custom header to the request.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SoapHttpClientProtocol Class | SoapHttpClientProtocol Members | System.Web.Services.Protocols Namespace | WebRequest | WebClientProtocol | GetWebResponse | HttpWebRequest | Uri

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft