WSMessageEncoding WSMessageEncoding WSMessageEncoding WSMessageEncoding Enum

定义

指定是否使用消息传输优化机制 (MTOM) 或文本来编码 SOAP 消息。Specifies whether Message Transmission Optimization Mechanism (MTOM) or text is used to encode SOAP messages.

public enum class WSMessageEncoding
public enum WSMessageEncoding
type WSMessageEncoding = 
Public Enum WSMessageEncoding
继承
WSMessageEncodingWSMessageEncodingWSMessageEncodingWSMessageEncoding

字段

Mtom Mtom Mtom Mtom 1

MTOM 用于对 SOAP 消息进行编码。MTOM is used to encode the SOAP messages.

Text Text Text Text 0

文本用于对 SOAP 消息进行编码。Text is used to encode the SOAP messages.

注解

交互绑定(如 WSHttpBindingWSDualHttpBinding,以及 BasicHttpBinding)用它来指定可能要使用的 SOAP 消息编码。Used by interoperable bindings, such as WSHttpBinding and WSDualHttpBinding, and BasicHttpBinding to specify the SOAP message encoding that may be used.

消息传输优化机制 (MTOM) 是一种有效的编码方法,它可以对 SOAP 信封的上下文内的二进制 XML 元素进行编码。The Message-Transmission Optimization Mechanism (MTOM) is a method for efficiently encoding binary XML elements within the context of a SOAP envelope.

消息的文本编码(如 UTF8)可用来实现交互操作。Text encodings for messages, such as UTF8, are used for interoperability purposes.

请注意,专用于与 Web 服务进行交互操作的标准绑定并不使用二进制编码。Note that the standard bindings designed for interoperability with Web services do not use binary encodings. 有关标准绑定的详细信息, 请参阅系统提供的绑定For more information about the standard bindings, see System-Provided Bindings.

适用于