How to Increase Message Size Quota

Sometimes when dealing with web services that return large amounts of data you get the follow error message.

The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

This can be fixed by increasing the maxReceivedMessageSize, maxBufferSize, maxBufferPoolSize, maxArrayLength & maxStringContentLength variables in your web.config to their max size.

The follow code shows you what the web.config basicHttpBinding section variables should be set to:

A brief inrto into how to consume 3rd party ASP.NET web services. We use the ecocoma google web services to build a key word rank checker app.

Links:

http://www.ecocoma.com/marketing_webservice.aspx

http://service.ecocoma.com/marketing/google.asmx

Send me a message if you want the source code. ;)