WebServicesClientProtocol.GetReaderForMessage Method

Returns an XmlReader 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 GetReaderForMessage(message As SoapClientMessage, _
            bufferSize As Integer)
            MyBase.GetReaderForMessage(message, bufferSize)
        End Function
End Class

Syntax

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

Parameters

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

Return Value

An System.Xml.XmlReader that is initialized with the Stream property of the message parameter.

Remarks

When the RequireMtom property is set to true, the XmlReader object expects the SOAP message to be MTOM-encoded.

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