<textMessageEncoding>
Specifies the character encoding and message versioning used for text-based XML messages.
<system.serviceModel>
<bindings>
<customBinding>
<binding>
<textMessageEncoding>
<textMessageEncoding maxReadPoolSize="Integer"
maxWritePoolSize="Integer"
messageVersion="Soap11Addressing1/Soap12Addressing1"
writeEncoding=”UnicodeFffeTextEncoding/Utf16TextEncoding/Utf8TextEncoding" />
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
maxReadPoolSize |
An integer that specifies how many messages can be read simultaneously without allocating new readers. Larger pool sizes make the system more tolerant to activity spikes at the cost of a larger working set. The default is 64. |
maxWritePoolSize |
An integer that specifies how many messages can be sent simultaneously without allocating new writers. Larger pool sizes make the system more tolerant to activity spikes at the cost of a larger working set. The default is 16. |
messageVersion |
Specifies the SOAP version of the messages sent using the binding. Valid values are
The default is Soap12Addressing10. This attribute is of type MessageVersion. |
writeEncoding |
Specifies the character set encoding to be used for emitting messages on the binding. Valid values are
The default is Utf8TextEncoding. This attribute is of type Encoding. |
Child Elements
Element | Description |
---|---|
Defines the constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding. This element is of type XmlDictionaryReaderQuotasElement. |
Parent Elements
Element | Description |
---|---|
Defines all binding capabilities of the custom binding. |
Remarks
Encoding is the process of transforming a set of Unicode characters into a sequence of bytes.
The text encoder creates text-based messages on the wire. Messages produced by this encoder are suitable for WS-* based interop. Web service or Web service client can generally understand textual XML. However, transmitting large blocks of binary data as text is the least efficient method for encoding XML messages
Example
<textMessageEncoding maxReadPoolSize="211"
maxWritePoolSize="2132"
messageVersion="Soap12Addressing1"
textEncoding=”utf-8” />
See Also
Reference
Concepts
Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.