AnyReturnReader 类

定义

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

public ref class AnyReturnReader : System::Web::Services::Protocols::MimeReturnReader
public class AnyReturnReader : System.Web.Services.Protocols.MimeReturnReader
type AnyReturnReader = class
    inherit MimeReturnReader
Public Class AnyReturnReader
Inherits MimeReturnReader
继承

注解

AnyReturnReaderSystem.Web.Services.Protocols命名空间中的其他类通过 HTTP GET 和 http POST 操作支持 Web 服务的 .NET Framework 实现。AnyReturnReader 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.

类提供抽象MimeReturnReader父类接口的最小实现。 AnyReturnReader通常不需要直接使用AnyReturnReaderThe AnyReturnReader class provides a minimal implementation of the interface of the abstract parent class MimeReturnReader.You typically will not need to use AnyReturnReader directly. 当 wsdl.exe 工具根据 HTTP GET 或 http POST 实现生成客户端代理代码时, 它将应用HttpMethodAttribute于每个 Web 方法, 并默认将属性的ReturnFormatter属性设置为XmlReturnReader, 另一个派生自的类MimeReturnReader.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 by default sets the attribute's ReturnFormatter property to XmlReturnReader, another class derived from MimeReturnReader.

构造函数

AnyReturnReader()

初始化 AnyReturnReader 类的新实例。Initializes a new instance of the AnyReturnReader 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)

返回传递给 Initialize(Object) 方法的参数。Returns the parameter passed to the Initialize(Object) method.

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)

初始化 AnyReturnReader 类的实例。Initializes an instance of the AnyReturnReader class.

MemberwiseClone()

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

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

返回输入 HTTP 响应流。Returns the input HTTP response stream.

ToString()

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

(继承自 Object)

适用于

另请参阅