Ian Vink
Ian Vink

Reputation: 68810

WCF Config: Setting maxReceivedMessageSize for all bindings?

Currently I am setting the maxReceivedMessageSize on each binding, is there a way to simply set it for all at once?

  <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"  />
  .....

Upvotes: 2

Views: 231

Answers (1)

Mark Coleman
Mark Coleman

Reputation: 40863

If you do not supply a name it should be treated as the default.

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

This is for WCF4, more information can be found here on msdn.

Upvotes: 2

Related Questions