Share via


SoapParameterStyle 枚举

指定在 SOAP 消息中参数是如何进行格式化的。

**命名空间:**System.Web.Services.Protocols
**程序集:**System.Web.Services(在 system.web.services.dll 中)

语法

声明
Public Enumeration SoapParameterStyle
用法
Dim instance As SoapParameterStyle
public enum SoapParameterStyle
public enum class SoapParameterStyle
public enum SoapParameterStyle
public enum SoapParameterStyle

成员

  成员名称 说明
由 .NET Compact Framework 支持 Bare 发往和从 XML Web services 方法发回的参数被直接放置在 SOAP 请求或 SOAP 响应的 Body 元素之后的 XML 元素中。 
由 .NET Compact Framework 支持 Default 指定使用 XML Web services 的默认 SoapParameterStyle。通过对实现 XML Web services 的类应用 SoapDocumentServiceAttribute,可以设置 XML Web services 的默认值。如果没有将 SoapDocumentServiceAttribute 应用于实现 XML Web services 的类,则默认值为 Wrapped。 
由 .NET Compact Framework 支持 Wrapped 发往和从 XML Web services 方法发回的参数被封装 SOAP 请求或 SOAP 响应的 XML 部分的 Body 元素之后的单个 XML 元素中。 

备注

对 XML Web services 方法或客户端代理类的方法应用 SoapDocumentMethodAttribute 可以设置 SoapParameterStyle。也可以通过对实现 XML Web services 的类应用 SoapDocumentServiceAttribute 来设置 SoapParameterStyle

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

System.Web.Services.Protocols 命名空间
SoapDocumentMethodAttribute 类
SoapDocumentServiceAttribute 类