Configure maxReceivedMessageSize input and output of a web.config of an asmx

1

please who gives me a hand with the following:

I have a .asmx web service, it receives and also sends pdf files (in Byte []), since they are large I need to configure the maxReceivedMessageSize, input manages to configure it by:

<system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="TamañoTransferencia" maxReceivedMessageSize="10000000" />
    <binding name="BasicHttpBinding_IServicios" />
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="http://servidor/Capa_03_Servicios.CServicios.svc"
    binding="basicHttpBinding" bindingConfiguration="TamañoTransferencia"
    contract="WebService.IServicios" name="BasicHttpBinding_IServicios" />
</client>

but as I say those are for the input, but how do I configure the size of the output files ??? Thank you in advance

    
asked by RSillerico 15.10.2016 в 00:59
source

1 answer

1

The property maxReceivedMessageSize is to configure the maximum size that a channel can receive, surely what you need is to add also the property maxBufferSize which is also taken into account for the data received by the channel and whose default value is very small.

    
answered by 20.01.2017 в 20:39