修改配置项:
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="NewBehavior">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="CustormerServiceSoap" receiveTimeout="00:10:00" sendTimeout="00:01:00" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" />
<binding name="CustormerServiceSoap1" receiveTimeout="00:10:00" sendTimeout="00:01:00" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://tradeapi.1234567.com.cn/WebService/CustomerService.asmx" binding="basicHttpBinding" bindingConfiguration="CustormerServiceSoap" contract="ServiceReference1.CustormerServiceSoap" name="CustormerServiceSoap" />
<endpoint address="http://tradeapi.1234567.com.cn/WebService/CustomerService.asmx" binding="basicHttpBinding" bindingConfiguration="CustormerServiceSoap1" contract="CustormerService.CustormerServiceSoap" name="CustormerServiceSoap1" />
</client>
</system.serviceModel>