SoapSender.Send Method

Transmits a SoapEnvelope via the TCP or HTTP protocol.

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

Usage

'Usage
Dim envelope As SoapEnvelope
Dim soapSender1 As SoapSender
soapSender1.Send(envelope)

Syntax

'Declaration
Public Overridable Sub Send( _
    ByVal envelope As SoapEnvelope _
)
public virtual void Send(
    SoapEnvelope envelope
);
public:
virtual void Send(
    SoapEnvelope^ envelope
);
public virtual void Send(
    SoapEnvelope envelope
);
public function Send(
     envelope : SoapEnvelope
) : Void;

Parameters

Exceptions

Exception type Condition
ArgumentNullException

envelope is null.

ArgumentException

The Action property of the SoapContext for envelope is null.

-or-

An attempt to reprocess a SoapEnvelope or SoapContext was detected.

InvalidOperationException

The Destination is null.

Remarks

In order to call the send method, the destination URI must first be specified in the SoapSender constructor. This can be either an HTTP or a TCP URI.

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