Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It looks like you're using REST, which I haven't done before, so there may be some caveats I'm not aware of.</p> <p>However, your json endpoint is using the default <code>webHttpBinding</code>, which has a MaxReceivedMessageSize of 65536. Since you want to increase this, you need to define the webHttpBinding that you want to use in your config file, give it a name, and assign that name to the json endpoint's bindingConfiguration attribute:</p> <pre><code>&lt;bindings&gt; &lt;webHttpBinding&gt; &lt;binding name="myWebHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="524288" maxBufferPoolSize="524288" maxReceivedMessageSize="524288" transferMode="Buffered" useDefaultWebProxy="true"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength=524288" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;/binding&gt; &lt;/webHttpBinding&gt; &lt;/bindings&gt; </code></pre> <p>The above is a modified version of the basicHttpBinding you defined. I set an arbitrary value for maxReceivedMessageSize (equal to maxBufferSize and maxBufferPoolSize). I also increased the maxStringContentLength value in the reader quotas.</p> <p>In your endpoint, assign the binding above to the bindingConfiguration attribute:</p> <pre><code>&lt;endpoint address="json" binding="webHttpBinding" bindingConfiguration="myWebHttpBinding" contract="AgricultureTradingWebApp.AgricultureWebService" behaviorConfiguration="webby"/&gt; </code></pre> <p>Also, take note of the warning on the MSDN article regarding MaxReceivedMessageSize: </p> <p><code>Increasing this value alone is not sufficient in ASP.NET compatible mode. You should also increase the value of httpRuntime</code></p> <p><a href="http://msdn.microsoft.com/en-us/library/bb412176.aspx" rel="nofollow"><code>&lt;webHttpBinding&gt;</code></a></p> <p>You'll want to modify the values in my example to suit your needs.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload