Share via


WebServicesClientProtocol.GetWriterForMessage Method

Returns an XmlWriter that is initialized with the Stream property of the SoapClientMessage parameter.

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

Usage

'Usage
Public Class webServicesClientProtocolImplementation
    Inherits WebServicesClientProtocol
        Protected Overrides Function GetWriterForMessage(message As SoapClientMessage, _
            bufferSize As Integer)
            MyBase.GetWriterForMessage(message, bufferSize)
        End Function
End Class

Syntax

'Declaration
Protected Overrides Function GetWriterForMessage( _
    ByVal message As SoapClientMessage, _
    ByVal bufferSize As Integer _
) As XmlWriter
protected override XmlWriter GetWriterForMessage(
    SoapClientMessage message, 
    int bufferSize
);
protected:
virtual XmlWriter^ GetWriterForMessage(
    SoapClientMessage^ message,
    int bufferSize
) override;
protected override XmlWriter GetWriterForMessage(
    SoapClientMessage message, 
    int bufferSize
);
protected override function GetWriterForMessage(
     message : SoapClientMessage, 
     bufferSize : int
) : XmlWriter;

Parameters

  • message
    A System.Web.Services.Protocols.SoapClientMessage that provides the System.Web.Services.Protocols.SoapMessage.Stream to initialize the System.Xml.XmlWriter.
  • bufferSize
    The initial buffer size of the System.IO.StreamReader that is used by the System.Xml.XmlWriter.

Return Value

An XmlWriter that is initialized with the Stream property of the message parameter.

Remarks

The XmlWriter encodes the XML in MTOM when the RequireMtom property is set to true.

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

WebServicesClientProtocol Class
WebServicesClientProtocol Members
Microsoft.Web.Services3 Namespace