title: WCF Web.config maxReceivedMessageSize
body: <p>I'm posting a json object with large amount of text.</p>
  
  <p>Below is my current <code>web.config</code>. How should I modify to change message size to post large json?</p>
  
  <p>This is urgent, pls reply fast. thanks!</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
      &lt;appSettings&gt;
          &lt;add key="LogPath" value="\Logs\" /&gt;
      &lt;/appSettings&gt;
      &lt;connectionStrings&gt;
      &lt;/connectionStrings&gt;
      &lt;system.web&gt;
          &lt;httpRuntime maxRequestLength="10000" /&gt;
          &lt;compilation debug="true" targetFramework="4.0" /&gt;
      &lt;/system.web&gt;
      &lt;system.serviceModel&gt;
          &lt;client&gt;
              &lt;endpoint address="http://api.microsofttranslator.com/V2/soap.svc"
                  binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_LanguageService"
                  contract="TranslatorService.LanguageService" name="BasicHttpBinding_LanguageService" /&gt;
          &lt;/client&gt;
          &lt;behaviors&gt;
              &lt;serviceBehaviors&gt;
                  &lt;behavior name=""&gt;
                      &lt;serviceMetadata httpGetEnabled="true" /&gt;
                      &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
                  &lt;/behavior&gt;
              &lt;/serviceBehaviors&gt;
              &lt;endpointBehaviors&gt;
                  &lt;behavior name="webby"  &gt;
                      &lt;webHttp/&gt; 
                  &lt;/behavior&gt;
              &lt;/endpointBehaviors&gt;
          &lt;/behaviors&gt;
          &lt;bindings&gt;
              &lt;basicHttpBinding&gt;
                  &lt;binding name="BasicHttpBinding_LanguageService" closeTimeout="00:01:00"
                      openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                      allowCookies="false" bypassProxyOnLocal="false" 
                      hostNameComparisonMode="StrongWildcard"
                      maxBufferSize="65536" maxBufferPoolSize="524288" 
                      maxReceivedMessageSize="65536"
                      messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                      useDefaultWebProxy="true"&gt;
                    &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" 
                                  maxArrayLength="16384"
                                  maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
                    &lt;security mode="None"&gt;
                        &lt;transport clientCredentialType="None" proxyCredentialType="None"
                            realm="" /&gt;
                        &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
                    &lt;/security&gt;
                  &lt;/binding&gt;
              &lt;/basicHttpBinding&gt;
              &lt;customBinding&gt;
                  &lt;binding name="AgricultureTradingWebApp.AgricultureWebService.customBinding0" &gt;
                      &lt;binaryMessageEncoding /&gt;
                      &lt;httpTransport /&gt;
                  &lt;/binding&gt;
              &lt;/customBinding&gt;
          &lt;/bindings&gt;
          &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"
              multipleSiteBindingsEnabled="true" /&gt;
          &lt;services&gt;
              &lt;service name="AgricultureTradingWebApp.AgricultureWebService"&gt;
                  &lt;endpoint address="" binding="customBinding" bindingConfiguration="AgricultureTradingWebApp.AgricultureWebService.customBinding0"
                        contract="AgricultureTradingWebApp.AgricultureWebService" /&gt;
                  &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
                  &lt;endpoint address="json"
                            binding="webHttpBinding" 
                            contract="AgricultureTradingWebApp.AgricultureWebService"
                  behaviorConfiguration="webby"/&gt;
              &lt;/service&gt;
          &lt;/services&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>