Can't send or receive array with large size in web service (wcf)
I have a method in my Wcf service that returns arraylist. When the count of array is less than 100, it works. But more than 1000, I get this error message:
The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the
MaxReceivedMessageSizeproperty on the appropriate binding element.
What's wrong with my web config?
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="MyBasicHttpBinding" receiveTimeout="00:40:00"
sendTimeout="00:40:00" maxBufferSize="2147483647"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
transferMode="Buffered">
<readerQuotas maxDepth="2147483647"
maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<security mode="None">
<transport clientCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="KETABMACazvinService.KETABMACazvinService"
behaviorConfiguration="KETABMACazvinService.KETABMACazvinServiceBehavior">
<!-- Service Endpoints -->
<endpoint address="" binding="basicHttpBinding"
contract="KETABMACazvinService.IKETABMACazvinService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="KETABMACazvinService.KETABMACazvinServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below
to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>