Web-Service returning maximum quota exceeded. How to solve?

0

I'm consuming a third-party web-service. When I get the return of the service the following message is displayed:

  

The maximum size of incoming messages (65536) has been exceeded

I have already researched forums for a solution, but I have not succeeded with any ... I leave below my app.config for verification.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
        <diagnostics>
            <messageLogging maxSizeOfMessageToLog="2147483647" />
        </diagnostics>
        <bindings>
            <basicHttpBinding>
                <binding name="WorkflowWebServiceSoap" maxBufferPoolSize="2147483647"
                    maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" />
            </basicHttpBinding>
            <customBinding>
                <binding name="WorkflowWebServiceSoap12">
                    <textMessageEncoding messageVersion="Soap12" />
                    <httpTransport maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
                        maxBufferSize="2147483647" />
                </binding>
            </customBinding>
        </bindings>
        <client>
            <endpoint address="URL DO WEB SERVICE"
                binding="customBinding" bindingConfiguration="WorkflowWebServiceSoap12"
                contract="ServiceReference1.WorkflowWebServiceSoap" name="WorkflowWebServiceSoap12" />
        </client>
    </system.serviceModel>
</configuration>

Would anyone have a solution proposal?

    
asked by anonymous 16.10.2017 / 12:54

1 answer

0

I had this error, but the problem was on the client side, and I only changed the security mode of basicHttpBinding :

<basicHttpBinding>
    <binding name="WServicoSoapBinding">
        <security mode="Transport" />
    </binding>
</basicHttpBinding>

Can also be done by instantiating the object:

objWS = new NS.WServicoClient(new BasicHttpBinding(BasicHttpSecurityMode.Transport), new EndpointAddress(this.UrlWS));
    
16.10.2017 / 13:57