MimeReturnReader 类

定义

为使用 HTTP 实现但不支持 SOAP 的 Web 服务客户端提供传入响应返回值读取器的通用基实现。Provides a common base implementation for readers of incoming response return values for Web service clients implemented using HTTP but without SOAP.

public ref class MimeReturnReader abstract : System::Web::Services::Protocols::MimeFormatter
public abstract class MimeReturnReader : System.Web.Services.Protocols.MimeFormatter
type MimeReturnReader = class
    inherit MimeFormatter
Public MustInherit Class MimeReturnReader
Inherits MimeFormatter
继承
MimeReturnReader
派生

注解

MimeReturnReaderSystem.Web.Services.Protocols命名空间中的其他类通过 HTTP GET 和 http POST 操作支持 Web 服务的 .NET Framework 实现。MimeReturnReader and other classes in the System.Web.Services.Protocols namespace support the .NET Framework's implementations of Web services via the HTTP-GET and HTTP-POST operations. Web 服务编写器和读取器分别在参数或返回 Web 方法的对象和 HTTP 请求或响应流之间进行序列化和反序列化。Web service writers and readers serialize and deserialize, respectively, between the parameters or return objects of Web methods and the HTTP request or response streams. Web 服务编写器和读取器使用 HTTP 进行传输, 但不使用 SOAP 标准交换消息。Web service writers and readers use HTTP for transport but don't exchange messages using the SOAP standard.

类建立一个公共Read接口, 用于将 HTTP 响应流的所有客户端读取到 Web 方法返回值中。 MimeReturnReaderThe MimeReturnReader class establishes a common Read interface for all client-side reading of HTTP response streams into Web method return values.

通常不需要直接使用MimeReturnReader或其子类。You typically will not need to use MimeReturnReader or its descendant classes directly. 相反, 当 wsdl.exe 工具根据 HTTP GET 或 http POST 实现生成客户端代理代码时, 它会将应用HttpMethodAttribute于每个 Web 方法, 并将该特性的ReturnFormatter属性设置为XmlReturnReader类, 该类派生from MimeReturnReaderInstead, when the Wsdl.exe tool generates client proxy code according to the HTTP-GET or HTTP-POST implementations, it applies the HttpMethodAttribute to each Web method and sets the attribute's ReturnFormatter property to the XmlReturnReader class, which is derived from MimeReturnReader.

构造函数

MimeReturnReader()

初始化 MimeReturnReader 类的新实例。Initializes a new instance of the MimeReturnReader class.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetInitializer(LogicalMethodInfo)

在派生类中重写时,返回指定方法的初始值设定项。When overridden in a derived class, returns an initializer for the specified method.

(继承自 MimeFormatter)
GetInitializers(LogicalMethodInfo[])

在派生类中重写时,返回与方法定义的输入数组对应的初始值设定项对象的数组。When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.

(继承自 MimeFormatter)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Initialize(Object)

在派生类中重写时,初始化一个实例。When overridden in a derived class, initializes an instance.

(继承自 MimeFormatter)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Read(WebResponse, Stream)

在派生类中被重写时,将 HTTP 响应反序列化为 Web 方法返回值。When overridden in a derived class, deserializes an HTTP response into a Web method return value.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅