WebClientProtocol.GetWebResponse Method

Definition

Returns a response from a request to an XML Web service method. This protected method is called by the XML Web service client infrastructure to get the response from a synchronous XML Web service request.

Overloads

GetWebResponse(WebRequest)

Returns a response from a synchronous request to an XML Web service method.

GetWebResponse(WebRequest, IAsyncResult)

Returns a response from an asynchronous request to an XML Web service method. This protected method is called by the XML Web service client infrastructure to get the response from an asynchronous XML Web service request.

GetWebResponse(WebRequest)

Returns a response from a synchronous request to an XML Web service method.

protected:
 virtual System::Net::WebResponse ^ GetWebResponse(System::Net::WebRequest ^ request);
protected virtual System.Net.WebResponse GetWebResponse (System.Net.WebRequest request);
abstract member GetWebResponse : System.Net.WebRequest -> System.Net.WebResponse
override this.GetWebResponse : System.Net.WebRequest -> System.Net.WebResponse
Protected Overridable Function GetWebResponse (request As WebRequest) As WebResponse

Parameters

request
WebRequest

The WebRequest to get the response from.

Returns

A response from a synchronous request to an XML Web service method.

Exceptions

If Abort() is invoked prior to calling GetWebResponse(WebRequest).

See also

Applies to

GetWebResponse(WebRequest, IAsyncResult)

Returns a response from an asynchronous request to an XML Web service method. This protected method is called by the XML Web service client infrastructure to get the response from an asynchronous XML Web service request.

protected:
 virtual System::Net::WebResponse ^ GetWebResponse(System::Net::WebRequest ^ request, IAsyncResult ^ result);
protected virtual System.Net.WebResponse GetWebResponse (System.Net.WebRequest request, IAsyncResult result);
abstract member GetWebResponse : System.Net.WebRequest * IAsyncResult -> System.Net.WebResponse
override this.GetWebResponse : System.Net.WebRequest * IAsyncResult -> System.Net.WebResponse
Protected Overridable Function GetWebResponse (request As WebRequest, result As IAsyncResult) As WebResponse

Parameters

request
WebRequest

The WebRequest to get the response from.

result
IAsyncResult

The IAsyncResult to pass to EndGetResponse(IAsyncResult) when the response has completed.

Returns

A response from an asynchronous request to an XML Web service method.

Exceptions

If Abort() is invoked prior to calling GetWebResponse(WebRequest).

See also

Applies to