简体   繁体   中英

WCF maxReceivedMessagesize and readerquotas

What is the fundamental difference between the two? On the server side on the service, I am using readerQuotas to accomodate large string lengths (Int32.MaxValue). What is the significance of maxReceivedMessagesize then?

maxReceivedMessagesize is the total size of the message.

readerQuotas are the size of parts of the message for example the length of a string in the message.

You need both of them so be set high enough for your message to go through, often the defaults will be OK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM