SoapBindingStyle 枚举

定义

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

C#
public enum SoapBindingStyle
继承
SoapBindingStyle

字段

Default 0

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

Document 1

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

Rpc 2

正传输的消息包含调用过程的参数或来自该过程的返回值。 RPC 是“remote procedure call”(“远程过程调用”)的缩写。

示例

C#
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);

注解

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

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8