SoapWebRequest.EndGetResponse Method

Completes the asynchronous request to get a response from an XML Web service.

Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim asyncResult As IAsyncResult
Dim returnValue As WebResponse
Dim soapWebRequest1 As SoapWebRequest
returnValue = soapWebRequest1.EndGetResponse(asyncResult)

Syntax

'Declaration
Public Overrides Function EndGetResponse( _
    ByVal asyncResult As IAsyncResult _
) As WebResponse
public override WebResponse EndGetResponse(
    IAsyncResult asyncResult
);
public: virtual WebResponse^ EndGetResponse(
    IAsyncResult^ asyncResult
);
public WebResponse EndGetResponse(
    IAsyncResult asyncResult
);
public override function EndGetResponse(
     asyncResult : IAsyncResult
) : WebResponse;

Parameters

  • asyncResult
    An System.IAsyncResult that references a pending request for a stream.

Return Value

A SoapWebResponse that contains a SOAP response from the XML Web service.

Exceptions

Exception type Condition
System.InvalidOperationException

There is no asynchronous operation to complete.

Remarks

The EndGetResponse method completes an asynchronous SOAP request to an XML Web service that was started with the BeginGetResponse method.

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

SoapWebRequest Class
Microsoft.Web.Services2 Namespace
BeginGetResponse

Other Resources

SoapWebRequest Members