SoapBindingStyle 枚举

定义

指定 XML Web services 中,在该枚举所应用于的类层次结构级别发生的操作的类型。

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

字段

Default 0

Web 服务描述语言 (WSDL) 文件的当前层次结构级别的操作的默认类型。

Document 1

正传输的消息是面向文档的。

Rpc 2

正传输的消息包含调用过程的参数或来自该过程的返回值。 RPC 是“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)

注解

此枚举允许用户指定传输的消息是面向过程还是面向文档。 面向过程的消息包含参数和返回值,而面向文档的消息则包含文档。

适用于