wcfc#-4.0maxreceivedmessagesize

WCF alternative for no setting MaxReceivedMessageSize


I'm facing a classic issue MaxReceivedMessageSize in a WCF service but setting up this value according 99% of internet's suggestions is not an option for me. The project must be more secure as possible and changing this property we're vulnerable to a DoS attack.

Today the web method returns a large list of a specific object. So, we're thinking if the server could send several chunks of data. Is it possible? What could you recommend?

Thanks!


Solution

  • Yes. It is possible to send in chunks. Refer - http://msdn.microsoft.com/en-us/library/ms733742(v=vs.110).aspx