SoapBindingStyle 枚举


指定 XML Web services 中,在该枚举所应用于的类层次结构级别发生的操作的类型。Specifies the type of action that occurs in the XML Web service at the level of the class hierarchy to which this enumeration is applied.

public enum class SoapBindingStyle
public enum SoapBindingStyle
type SoapBindingStyle = 
Public Enum SoapBindingStyle


Default 0

Web 服务描述语言 (WSDL) 文件的当前层次结构级别的操作的默认类型。The default type of action for the current hierarchical level of the Web Services Description Language (WSDL) file.

Document 1

正传输的消息是面向文档的。The message being transmitted is document-oriented.

Rpc 2

正传输的消息包含调用过程的参数或来自该过程的返回值。The message being transmitted contains the parameters to call a procedure or the return values from that procedure. RPC 是“remote procedure call”(“远程过程调用”)的缩写。RPC is an acronym for "remote procedure call."


SoapBinding^ mySoapBinding = gcnew SoapBinding;
mySoapBinding->Transport = "";
mySoapBinding->Style = SoapBindingStyle::Document;

// Add the 'SoapBinding' object to the 'Binding' object.
myBinding->Extensions->Add( mySoapBinding );
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "";
mySoapBinding.Style = SoapBindingStyle.Document;
// Add the 'SoapBinding' object to the 'Binding' object.
Dim mySoapBinding As New SoapBinding()
mySoapBinding.Transport = ""
mySoapBinding.Style = SoapBindingStyle.Document
' Add the 'SoapBinding' object to the 'Binding' object.


此枚举允许用户指定正在传输的消息是面向过程的还是面向文档的。This enumeration allows the user to specify whether the message being transmitted is procedure-oriented or document-oriented. 面向过程的消息包含参数和返回值, 而面向文档的消息则包含文档。Procedure-oriented messages contain parameters and return values, while document-oriented messages contain documents.