SoapWebRequest.BeginGetResponse Method
Begins to get an asynchronous response from an XML Web service.
Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim cb As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
Dim soapWebRequest1 As SoapWebRequest
returnValue = soapWebRequest1.BeginGetResponse(cb, state)
Syntax
'Declaration
Public Overrides Function BeginGetResponse( _
ByVal cb As AsyncCallback, _
ByVal state As Object _
) As IAsyncResult
public override IAsyncResult BeginGetResponse(
AsyncCallback cb,
object state
);
public: virtual IAsyncResult^ BeginGetResponse(
AsyncCallback^ cb,
Object^ state
);
public IAsyncResult BeginGetResponse(
AsyncCallback cb,
System.Object state
);
public override function BeginGetResponse(
cb : AsyncCallback,
state : Object
) : IAsyncResult;
Parameters
- cb
The System.AsyncCallback delegate that is called when the response is ready.
- state
An object containing state information for this asynchronous request.
Return Value
An System.IAsyncResult that references the asynchronous request.
Exceptions
| Exception type | Condition |
|---|---|
| System.InvalidOperationException | An asynchronous request is already in process. |
Remarks
The BeginGetResponse method starts an asynchronous request for a response. The callback method invoked by the System.AsyncCallback delegate uses the EndGetResponse method to return a SoapWebResponse from the 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 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
EndGetResponse