修改配置项:
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="NewBehavior">
<dataContractSerializer maxItemsInObjectGraph="" />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings> <basicHttpBinding> <binding name="CustormerServiceSoap" receiveTimeout="00:10:00" sendTimeout="00:01:00" maxReceivedMessageSize="" maxBufferPoolSize="" maxBufferSize="" />
<binding name="CustormerServiceSoap1" receiveTimeout="00:10:00" sendTimeout="00:01:00" maxReceivedMessageSize="" maxBufferPoolSize="" maxBufferSize="" /> </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>