Monday, November 7, 2016

MAX STRING CONTENT LENGTH, MAX BUFFERSIZE, AND MAX RECEIVED MESSAGESIZE IN WCF, WCF binding attributes



WCF Binding Attributes & Descriptions
 

MaxDepth:
A positive integer that specifies the maximum nested node depth per read. The default value is 32. Maximum is 2147483647.

MaxBufferSiz:
Gets or sets the maximum size of the buffer to use. For buffered messages this value is the same as MaxReceivedMessageSize. For streamed messages, this value is the maximum size of the SOAP headers, which must be read in buffered mode. Default value is 65536. Maximum value is 2147483647.

MaxReceivedMessageSize:
Gets or sets the maximum size for a message that can be processed by the binding. Must match what you put in the MaxBufferSize.  Default value is 65536. Maximum is 2147483647.

MaxStringContentLength:
A positive integer that specifies the maximum characters allowed in XML element content. Default value is 8192. Maximum is 2147483647. This property actually belongs to the XML Reader that is called under the covers by WCF.  When desalinizing the message this property is used to block messages over a certain size.

MaxArrayLength:
 A positive integer that specifies the maximum allowed array length of data being received by WCF from a client. The default value is 16384. Maximum is 2147483647.

MaxBytesPerRead:
A positive integer that specifies the maximum allowed bytes returned per read. The default value is 4096. Maximum is 2147483647.

MaxNameTableCharCount:
A positive integer that specifies the maximum characters allowed in a table name. The default value is 16384. Maximum is 2147483647.

MaxArrayLength:
 A positive integer that specifies the maximum allowed array length of data being received by WCF from a client. The default value is 16384. Maximum is 2147483647.

1 comment: