1.当客户端调用WCF服务时,接受数据过大,可通过以下配置解决
<basicHttpBinding> <binding name="BasicHttpBinding_WcfService" maxReceivedMessageSize="2147483647" sendTimeout="00:10:00" > </binding> </basicHttpBinding>
<endpoint bindingConfiguration="BasicHttpBinding_WcfService" .../>
2.客户端调用WCF服务,传递参数数据过大时,可通过以下配置解决
<basicHttpBinding> <binding name="TransferServicesBinding" maxReceivedMessageSize="2147483647" transferMode="Streamed" sendTimeout="00:10:00" /> </basicHttpBinding>
<endpoint bindingConfiguration="TransferServicesBinding" ...>