SoapParameterStyle 枚举

定义

指定在 SOAP 消息中参数是如何进行格式化的。Specifies how parameters are formatted in a SOAP message.

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

字段

Bare 1

发往和从 XML Web services 方法发回的参数被直接放置在 SOAP 请求或 SOAP 响应的 Body 元素之后的 XML 元素中。Parameters sent to and from an XML Web service method are placed in XML elements directly following the Body element of a SOAP request or SOAP response.

Default 0

指定使用 XML Web services 的默认 SoapParameterStyleSpecifies using the default SoapParameterStyle for the XML Web service. 通过对实现 XML Web services 的类应用 SoapDocumentServiceAttribute,可以设置 XML Web services 的默认值。The default for an XML Web service can be set by applying a SoapDocumentServiceAttribute to the class implementing the XML Web service. 如果没有将 SoapDocumentServiceAttribute 应用于实现 XML Web services 的类,则默认值为 WrappedIf a SoapDocumentServiceAttribute is not applied to the class implementing the XML Web service, the default is Wrapped.

Wrapped 2

发往和从 XML Web services 方法发回的参数被封装 SOAP 请求或 SOAP 响应的 XML 部分的 Body 元素之后的单个 XML 元素中。Parameters sent to and from an XML Web service method are encapsulated within a single XML element following the Body element of the XML portion of a SOAP request or SOAP response.

注解

向 XML Web service 方法或客户端代理类的方法SoapParameterStyle应用时SoapDocumentMethodAttribute可以设置。The SoapParameterStyle can be set when applying a SoapDocumentMethodAttribute to an XML Web service method or a method of a client proxy class. 还可以通过将应用于实现 XML Web service 的类来设置。 SoapDocumentServiceAttribute SoapParameterStyleThe SoapParameterStyle can also be set by applying a SoapDocumentServiceAttribute to a class implementing an XML Web service.

适用于

另请参阅