Editare

Partajați prin


WSMessageEncoding Enum

Definition

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
Inheritance
WSMessageEncoding

Fields

Name Value Description
Text 0

Text is used to encode the SOAP messages.

Mtom 1

MTOM is used to encode the SOAP messages.

Remarks

Used by interoperable bindings, such as WSHttpBinding and WSDualHttpBinding, and BasicHttpBinding to specify the SOAP message encoding that may be used.

The Message-Transmission Optimization Mechanism (MTOM) is a method for efficiently encoding binary XML elements within the context of a SOAP envelope.

Text encodings for messages, such as UTF8, are used for interoperability purposes.

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.

Applies to