SoapServerProtocol 类

定义

.NET Framework 创建 SoapServerProtocol 类的一个实例来处理 XML Web services 请求。The .NET Framework creates an instance of the SoapServerProtocol class to process XML Web service requests.

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

注解

你可以重写RouteRequest方法, 以处理用户不会通过标记为的WebMethodAttributeXML Web service 中的方法显式声明和处理 XML Web service 请求。You can override the RouteRequest method to process XML Web service requests that are not explicitly declared and handled by users through a method in their XML Web service marked with WebMethodAttribute.

构造函数

SoapServerProtocol()

创建一个新的 SoapServerProtocolCreates a new SoapServerProtocol.

属性

Context

获取派生类的 HttpContext 对象。Gets the HttpContext object for the derived class.

(继承自 ServerProtocol)
Request

获取派生类的 HttpRequest 对象。Gets the HttpRequest object for the derived class.

(继承自 ServerProtocol)
Response

获取派生类的 HttpResponse 对象。Gets the HttpResponse object for the derived class.

(继承自 ServerProtocol)
Target

获取被调用的服务对象。Gets the service object that is invoked.

(继承自 ServerProtocol)

方法

AddToCache(Type, Type, Object)

使用从指定的协议类型和服务器类型创建的密钥将 Object 存储在缓存中。Stores a Object in the cache using a key that is created from the specified protocol type and server type.

(继承自 ServerProtocol)
Equals(Object)

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

(继承自 Object)
GetFromCache(Type, Type)

使用从指定的协议类型和服务器类型创建的密钥检索存储在缓存中的 ObjectRetrieves the Object that is stored in the cache using the key that was created from the specified protocol type and server type.

(继承自 ServerProtocol)
GetHashCode()

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

(继承自 Object)
GetReaderForMessage(SoapServerMessage, Int32)

返回用指定的 XmlTextReader 和缓冲区大小初始化的 SoapServerMessageReturns an XmlTextReader initialized with the specified SoapServerMessage and buffer size.

GetType()

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

(继承自 Object)
GetWriterForMessage(SoapServerMessage, Int32)

返回用指定的 XmlTextWriter 和缓冲区大小初始化的 SoapServerMessageReturns an XmlTextWriter initialized with the specified SoapServerMessage and buffer size.

MemberwiseClone()

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

(继承自 Object)
ModifyInitializedExtensions(PriorityGroup, SoapExtension[])

将指定的优先级和组特性应用于 SoapExtension 类型的指定数组中包含的 SOAP 扩展。Applies the specified priority and group attributes to the SOAP extensions contained in the specified array of type SoapExtension.

RouteRequest(SoapServerMessage)

返回指定的 SoapServerMethod 应路由到的 SoapServerMessageReturns the SoapServerMethod to which the specified SoapServerMessage should be routed.

ToString()

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

(继承自 Object)

适用于