WSMessageEncoding Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

MTOM is used to encode the SOAP messages.

Text

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
Show: