SoapProtocolImporter 类

定义

为使用 SOAP 协议的 Web 服务生成类。Generates classes for Web services that use the SOAP protocol.

public ref class SoapProtocolImporter : System::Web::Services::Description::ProtocolImporter
public class SoapProtocolImporter : System.Web.Services.Description.ProtocolImporter
type SoapProtocolImporter = class
    inherit ProtocolImporter
Public Class SoapProtocolImporter
Inherits ProtocolImporter
继承
SoapProtocolImporter

注解

SoapProtocolImporter类根据 SOAP 协议生成客户端代理代码或抽象服务器代码。The SoapProtocolImporter class generates client proxy code or abstract server code according to the SOAP protocol. 类为 Web 服务描述语言(WSDL)文档中定义的每个受支持的绑定生成类。The class generates a class for each supported binding defined in a Web Services Description Language (WSDL) document.

通常,开发人员无需直接调用,而是 SoapProtocolImporter 通过类间接使用该类 ServiceDescriptionImporterTypically, instead of invoking SoapProtocolImporter directly, a developer uses the class indirectly through the ServiceDescriptionImporter class.

构造函数

SoapProtocolImporter()

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

属性

AbstractSchemas

获取关联的 ServiceDescriptionImporter 实例所使用的抽象 XML 架构。Gets the abstract XML schemas used by the associated ServiceDescriptionImporter instance.

(继承自 ProtocolImporter)
Binding

获取协议导入程序当前正在处理以生成类的 Web 服务描述语言 (WSDL) 绑定。Gets the Web Services Description Language (WSDL) binding that the protocol importer is currently processing to generate a class.

(继承自 ProtocolImporter)
ClassName

获取当前正在生成的绑定类的名称。Gets the name of the binding class that is currently being generated.

(继承自 ProtocolImporter)
ClassNames

获取可为当前正在生成的绑定类生成唯一名称的 CodeIdentifiers 对象。Gets the CodeIdentifiers object that generates a unique name for the binding class that is currently being generated.

(继承自 ProtocolImporter)
CodeNamespace

获取正在生成的绑定类的 .NET Framework 命名空间的表示形式。Gets a representation of the .NET Framework namespace of the binding classes that are being generated.

(继承自 ProtocolImporter)
CodeTypeDeclaration

获取当前正在生成的绑定类的表示形式。Gets a representation of the binding class that is currently being generated.

(继承自 ProtocolImporter)
ConcreteSchemas

获取关联的 ServiceDescriptionImporter 实例所使用的具体 XML 架构。Gets the concrete XML schemas used by the associated ServiceDescriptionImporter instance.

(继承自 ProtocolImporter)
InputMessage

获取协议导入程序当前正在处理,以在绑定类中生成方法的抽象操作的 Web 服务描述语言 (WSDL) 输入消息。Gets the Web Services Description Language (WSDL) input message for the abstract operation that the protocol importer is currently processing to generate a method in a binding class.

(继承自 ProtocolImporter)
MethodName

获取协议导入程序当前正在生成的绑定类方法的名称。Gets the name of the binding class method which that the protocol importer is currently generating.

(继承自 ProtocolImporter)
Operation

获取协议导入程序当前正在处理,以在绑定类中生成方法的抽象 Web 服务描述语言 (WSDL) 操作。Gets the abstract Web Services Description Language (WSDL) operation that the protocol importer is currently processing to generate a method in a binding class.

(继承自 ProtocolImporter)
OperationBinding

获取协议导入程序当前正在处理,以在绑定类中生成方法的 Web 服务描述语言 (WSDL) 操作绑定。Gets the Web Services Description Language (WSDL) operation binding that the protocol importer is currently processing to generate a method in a binding class.

(继承自 ProtocolImporter)
OutputMessage

获取协议导入程序当前正在处理,以在绑定类中生成方法的抽象操作的 Web 服务描述语言 (WSDL) 输出消息。Gets the Web Services Description Language (WSDL) output message for the abstract operation that the protocol importer is currently processing to generate a method in a binding class.

(继承自 ProtocolImporter)
Port

获取一个 Web 服务描述语言 (WSDL) 端口,其中包含对协议导入程序当前正在处理以生成绑定类的绑定的引用。Gets a Web Services Description Language (WSDL) port that contains a reference to the binding that the protocol importer is currently processing to generate a binding class. 如果有多个端口引用当前绑定,则当前端口为最后一次找到的绑定所在的端口。If more than one port refers to the current binding, the current port is the one in which the binding has most recently been found.

(继承自 ProtocolImporter)
PortType

获取由协议导入程序当前正在处理,以生成绑定类的绑定所实现的 Web 服务描述语言 (WSDL) PortTypeGets the Web Services Description Language (WSDL) PortType that is implemented by the binding that the protocol importer is currently processing to generate a binding class.

(继承自 ProtocolImporter)
ProtocolName

获取值“Soap”。Gets a value of "Soap".

Schemas

获取关联的 ServiceDescriptionImporter 实例使用的所有 XML 架构(包括抽象架构和具体架构)。Gets all the XML schemas, both abstract and concrete, used by the associated ServiceDescriptionImporter instance.

(继承自 ProtocolImporter)
Service

获取包含对绑定(协议导入程序当前正在处理以生成绑定类的绑定)的引用的 Web 服务描述语言 (WSDL) 服务。Gets the Web Services Description Language (WSDL) service that contains a reference to the binding that the protocol importer is currently processing to generate a binding class.

(继承自 ProtocolImporter)
ServiceDescriptions

获取属于关联的 ServiceDescriptionCollection 实例,要从其中搜索用于生成绑定类的绑定的 ServiceDescriptionImporter 对象。Gets the ServiceDescriptionCollection objects that belong to the associated ServiceDescriptionImporter instance that are searched for bindings from which to generate binding classes.

(继承自 ProtocolImporter)
SoapBinding

获取通过 SoapBinding 属性的 SoapBinding 属性获取的 Extensions 实例。Gets a SoapBinding instance obtained through the SoapBinding property's Extensions property.

SoapExporter

获取类型为 SoapCodeExporter 的对象,SoapProtocolImporter 类在内部使用该对象以根据 SOAP 编码的 XML 架构内容和 .NET Framework 类型之间的映射生成代码。Gets the object of type SoapCodeExporter used internally by the SoapProtocolImporter class to generate code from mappings between SOAP-encoded XML schema content and .NET Framework types.

SoapImporter

获取类型为 SoapSchemaImporter 的对象,SoapProtocolImporter 类在内部使用该对象以在 SOAP 编码的 XML 架构内容和 .NET Framework 类型之间生成映射。Gets the object of type SoapSchemaImporter used internally by the SoapProtocolImporter class to generate mappings between SOAP-encoded XML schema content and .NET Framework types.

Style

获取一个枚举值,该值指示正在生成的是客户端代理类还是抽象服务器类。Gets an enumeration value that indicates whether a client proxy class or an abstract server class is being generated. 枚举值为“客户端”和“服务器”。The values are Client and Server. 该值是关联的 ServiceDescriptionImporter 实例的 Style 属性的值。The value is that of the associated ServiceDescriptionImporter instance's Style property.

(继承自 ProtocolImporter)
Warnings

获取或设置 ServiceDescriptionImportWarnings 枚举值,该值指示协议导入程序在生成绑定类时发出的警告(如果有)的类型。Gets or sets a ServiceDescriptionImportWarnings enumeration value that indicates the types of warnings, if any, issued by the protocol importer while generating binding classes.

(继承自 ProtocolImporter)
XmlExporter

获取类型为 XmlCodeExporter 的对象,SoapProtocolImporter 类在内部使用该对象以根据文本 XML 架构内容和 .NET Framework 类型之间的映射生成代码。Gets the object of type XmlCodeExporter used internally by the SoapProtocolImporter class to generate code from mappings between literal XML schema content and .NET Framework types.

XmlImporter

获取类型为 XmlSchemaImporter 的对象,SoapProtocolImporter 类在内部使用该对象以在文本 XML 架构内容和 .NET Framework 类型之间生成映射。Gets the object of type XmlSchemaImporter used internally by the SoapProtocolImporter class to generate mappings between literal XML schema content and .NET Framework types.

方法

AddExtensionWarningComments(CodeCommentStatementCollection, ServiceDescriptionFormatExtensionCollection)

对于输入扩展集合中的每个未处理的扩展或 XML 元素,打开 RequiredExtensionsIgnoredOptionalExtensionsIgnored 警告。For each unhandled extension or XML element in the input extensions collection, turns on a RequiredExtensionsIgnored or OptionalExtensionsIgnored warning for each unhandled extension or XML element in the input extensions collection.

(继承自 ProtocolImporter)
BeginClass()

初始化绑定类的生成。Initializes the generation of a binding class.

BeginNamespace()

在代码生成过程中对整个代码命名空间执行初始化。Performs initialization for an entire code namespace during code generation.

EndClass()

在生成方法后处理绑定类。Processes a binding class after the generation of methods.

EndNamespace()

在生成绑定类后对整个代码命名空间执行处理。Performs processing for an entire code namespace after binding class generation.

Equals(Object)

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

(继承自 Object)
GenerateMethod()

为绑定类生成方法代码。Generates method code for a binding class.

GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
IsBindingSupported()

确定是否可为当前绑定生成类。Determines whether a class can be generated for the current binding.

IsOperationFlowSupported(OperationFlow)

确定当前操作的操作流是否受支持。Determines whether the current operation's operation flow is supported.

IsSoapEncodingPresent(String)

检查表示统一资源标识符 (URI) 列表的字符串中是否存在“http://schemas.xmlsoap.org/soap/encoding/”。Checks for the presence of "http://schemas.xmlsoap.org/soap/encoding/" in a string that represents a list of Uniform Resource Indicators (URIs).

MemberwiseClone()

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

(继承自 Object)
OperationBindingSyntaxException(String)

生成“异常”,指示正为其生成绑定类的当前 OperationBinding 实例在目标命名空间内无效。Produces an Exception indicating that the current OperationBinding instance for which a binding class is being generated is invalid within the target namespace.

(继承自 ProtocolImporter)
OperationSyntaxException(String)

生成“异常”,指示正为其生成绑定类的当前 Operation 实例在目标命名空间内无效。Produces an Exception indicating that the current Operation instance for which a binding class is being generated is invalid within the target namespace.

(继承自 ProtocolImporter)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
UnsupportedBindingWarning(String)

打开通过 UnsupportedBindingsIgnored 属性获得的 ServiceDescriptionImportWarnings 枚举中的 Warnings 警告。Turns on an UnsupportedBindingsIgnored warning in the ServiceDescriptionImportWarnings enumeration obtained through the Warnings property. 此方法也将警告消息添加到正生成的类的注释中。This method also adds a warning message to the comments for the class that is being generated.

(继承自 ProtocolImporter)
UnsupportedOperationBindingWarning(String)

打开通过 UnsupportedOperationsIgnored 属性获得的 ServiceDescriptionImportWarnings 枚举中的 Warnings 警告。Turns on an UnsupportedOperationsIgnored warning in the ServiceDescriptionImportWarnings enumeration obtained through the Warnings property. 此方法也将警告消息添加到正生成的类的注释中。This method also adds a warning message to the comments for the class that is being generated.

(继承自 ProtocolImporter)
UnsupportedOperationWarning(String)

打开通过 UnsupportedOperationsIgnored 属性获得的 ServiceDescriptionImportWarnings 枚举中的 Warnings 警告。Turns on an UnsupportedOperationsIgnored warning in the ServiceDescriptionImportWarnings enumeration obtained through the Warnings property. 此方法也将警告消息添加到正生成的类的注释中。This method also adds a warning message to the comments for the class that is being generated.

(继承自 ProtocolImporter)

适用于