技术人员——我尝试只使用默认的 basicHttpBinding 并增加 maxReceivedMessageSize,但发现我需要增加 readQuotas——如果不命名绑定,我无法定义它。
<bindings>
<basicHttpBinding>
<binding name="DefaultBasicHttpBinding"
maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647">
<readerQuotas
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxDepth="2147483647"
maxNameTableCharCount="2147483647"
maxStringContentLength="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
我是否需要更改客户端 web.config 引用 basicHttp 的方式?这是我所拥有的:
<bindings>
<!-- Adding TelapointWorkFlowService Bindings -->
<!-- NOTE: May need to be converted for AppDev standards, leave as is for now. -->
<basicHttpBinding>
<binding name="BasicHttpBinding_TelaPointSMService" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:15:00" sendTimeout="00:10:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>