SoapMtomFormatter.SerializeMessage Method

Serialize the specified SoapEnvelope into the specified Stream as an MTOM encoded multipart/related MIME package.

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

Usage

'Usage
Dim stream As Stream
Dim envelope As SoapEnvelope
Dim mimeBoundary As String
Dim startId As String
Dim soapMtomFormatter1 As SoapMtomFormatter
soapMtomFormatter1.SerializeMessage(stream, envelope, mimeBoundary, startId)

Syntax

'Declaration
Public Sub SerializeMessage( _
    ByVal stream As Stream, _
    ByVal envelope As SoapEnvelope, _
    ByVal mimeBoundary As String, _
    ByVal startId As String _
)
public void SerializeMessage(
    Stream stream, 
    SoapEnvelope envelope, 
    string mimeBoundary, 
    string startId
);
public:
void SerializeMessage(
    Stream^ stream,
    SoapEnvelope^ envelope,
    String^ mimeBoundary,
    String^ startId
);
public void SerializeMessage(
    Stream stream, 
    SoapEnvelope envelope, 
    System.String mimeBoundary, 
    System.String startId
);
public function SerializeMessage(
     stream : Stream, 
     envelope : SoapEnvelope, 
     mimeBoundary : String, 
     startId : String
) : Void;

Parameters

  • envelope
    SoapEnvelope to be serialized.
  • mimeBoundary
    A string that specifies the MIME boundary.
  • startId
    A string that specifies the content ID of the MIME package.

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

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