When calling WebService to return data, the following error occurred:
The maximum message size quota for incoming messages (65536) has been exceeded. To increase quotas, use the MaxReceivedMessageSize property on the corresponding binding element
This needs to be configured in Web. config or app. config in the solution that calls WebService:
<?xml version= "1.0" encoding= "Utf-8"?>
<configuration>
<startup>
<supportedruntime version= "v4.0" sku= ". netframework,version=v4.5 "/>
</startup>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name= "Service1Soap" maxbuffersize= "2147483647" maxreceivedmessagesize= "21474836 " />
</basicHttpBinding>
</bindings>
<client>
<endpoint address= "Http://10.0.0.7:6003/Service1.asmx" binding=" BasicHttpBinding "
bindingconfiguration= "Service1Soap" contract= "Gdcservice.service1soap "
name= "Service1Soap"/>
</client>
</system.serviceModel>
</configuration>