<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="AllocationsDataServiceSoap" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647" **receiveTimeout=""**>
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address=""
binding="basicHttpBinding" bindingConfiguration="AllocationsDataServiceSoap"
contract="AllocationsDataWebService.AllocationsDataServiceSoap"
name="AllocationsDataServiceSoap" />
</client>
</system.serviceModel>
绑定标记中clientconfig.xml中的receiveTimeout属性
编辑:添加服务引用时,将在项目根目录中创建此xml文件