WSMessageEncoding 列舉

定義

指定是否要採用訊息傳輸最佳化機制 (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
繼承
WSMessageEncoding

欄位

Mtom 1

使用 MTOM 來編碼 SOAP 訊息。MTOM is used to encode the SOAP messages.

Text 0

使用文字來編碼 SOAP 訊息。Text is used to encode the SOAP messages.

備註

由互通性繫結 (如 WSHttpBindingWSDualHttpBindingBasicHttpBinding) 所使用,用來指定可能會用到的 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.

適用於