一、傳輸數據量大時,webservice MaxReceivedMessageSize :已超過傳入消息(65536)的最大消息大小配額在
應用的配置文件中添加如下:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="WebService1Soap" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://127.0.0.1/WebService1.asmx" binding="basicHttpBinding"
bindingConfiguration="WebService1Soap" contract="ServiceReference1.WebService1Soap"
name="WebService1Soap" />
</client>
</system.serviceModel>