SoapSender.BeginSend Method

Sends data asynchronously to a SOAP receiver.

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

Usage

'Usage
Dim envelope As SoapEnvelope
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
Dim soapSender1 As SoapSender
returnValue = soapSender1.BeginSend(envelope, callback, state)

Syntax

'Declaration
Public Overridable Function BeginSend( _
    ByVal envelope As SoapEnvelope, _
    ByVal callback As AsyncCallback, _
    ByVal state As Object _
) As IAsyncResult
public virtual IAsyncResult BeginSend(
    SoapEnvelope envelope, 
    AsyncCallback callback, 
    object state
);
public:
virtual IAsyncResult^ BeginSend(
    SoapEnvelope^ envelope,
    AsyncCallback^ callback,
    Object^ state
);
public virtual IAsyncResult BeginSend(
    SoapEnvelope envelope, 
    AsyncCallback callback, 
    System.Object state
);
public function BeginSend(
     envelope : SoapEnvelope, 
     callback : AsyncCallback, 
     state : Object
) : IAsyncResult;

Parameters

  • callback
    An AsyncCallback that represents the callback method to be called when the asynchronous operation is completed.
  • state
    An object that represents the state of the asynchronous operation.

Return Value

An IAsyncResult that represents the asynchronous send operation that could still be pending.

Exceptions

Exception type Condition
ArgumentNullException

envelope is null.

ArgumentException

The action for the message is not specified (that is, the Action property of the Context property of envelope is null).

-or-

An attempt to reprocess a SoapEnvelope or SoapContext was detected.

InvalidOperationException

The Destination property is null.

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

SoapSender Class
SoapSender Members
Microsoft.Web.Services3.Messaging Namespace