WSMessageEncoding Enumeration
Collapse the table of content
Expand the table of content

WSMessageEncoding Enumeration


Specifies whether Message Transmission Optimization Mechanism (MTOM) or text is used to encode SOAP messages.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public enum WSMessageEncoding

Member nameDescription

MTOM is used to encode the SOAP messages.


Text is used to encode the SOAP messages.

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.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft