2

目前我在每个绑定上设置maxReceivedMessageSize,有没有办法一次简单地设置它?

  <wsHttpBinding>
    <binding name="WSHttpBinding_IQQQService" maxReceivedMessageSize="250000"  />
    <binding name="WSHttpBinding_ISSSService" maxReceivedMessageSize="250000"  />
    <binding name="WSHttpBinding_IDDDService" maxReceivedMessageSize="250000"  />
    <binding name="WSHttpBinding_IFFFService" maxReceivedMessageSize="250000"  />
  .....
4

1 回答 1

2

如果您不提供名称,则应将其视为默认名称。

<wsHttpBinding>
  <binding maxReceivedMessageSize="250000">
</wsHttpBinding>

这是针对 WCF4 的,更多信息可以在 msdn上找到。

于 2013-01-09T18:33:27.913 回答