SoapBindingStyle SoapBindingStyle SoapBindingStyle SoapBindingStyle Enum

定义

指定 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
继承
SoapBindingStyleSoapBindingStyleSoapBindingStyleSoapBindingStyle

字段

Default Default Default Default 0

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

Document Document Document Document 1

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

Rpc Rpc Rpc 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 = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;

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

注解

此枚举允许指定要传输的消息是面向过程的还是面向文档的用户。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.

适用于