Export (0) Print
Expand All

<readerQuotas>

Defines the constraints on the complexity of SOAP messages that can be processed by endpoints configured with a binding.


<readerQuotas 
    maxArrayLength="Integer"
        maxBytesPerRead="Integer"
        maxDepth="Integer"
        maxNameTableCharCount="Integer"
    maxStringContentLength=="Integer" />

The following sections describe attributes, child elements, and parent elements.

Attributes

 

Attribute Description

maxArrayLength

A positive integer that specifies the maximum allowed array length of data being received by Windows Communication Foundation (WCF) from a client. The default is 16384.

maxBytesPerRead

A positive integer that specifies the maximum allowed bytes returned per read. The default is 4096.

maxDepth

A positive integer that specifies the maximum nested node depth per read. The default is 32.

maxNameTableCharCount

A positive integer that specifies the maximum characters allowed in a table name. The default is 16384.

maxStringContentLength

A positive integer that specifies the maximum characters allowed in XML element content. The default is 8192.

Child Elements

None

Parent Elements

This element is the child element of all the standard bindings that come with Windows Communication Foundation (WCF).

Warning Caution:
These attributes must be set on the client and service. Once set in the service’s configuration file, these values will not be propagated automatically to the client’s configuration file that is generated by the svcutil tool or Add Service Reference in Visual Studio. You must manually edit the generated client side configuration file and set the appropriate values.

The complexity constraints provide protection from denial of service (DOS) attacks that attempt to use message complexity to tie up endpoint processing resources. Other complexity constraints include items such as a maximum element depth and a maximum length for string content within the message.




Build Date:

2012-07-12

Community Additions

ADD
Show:
© 2014 Microsoft