topher-b
9/21/2015 - 8:28 PM

Service Message Sizes

Service Message Sizes

[‎9/‎21/‎2015 3:21 PM] Manzanares, Carlos (Vin): 
You might notice an error similar to this: The remote server returned an unexpected response: (413) Request Entity Too Large. 
Just as an FYI, that's because the object being passed is larger than the default size allowed by a service, so the config has to be altered in both the service and the application calling it to allow for a larger size

[‎9/‎21/‎2015 3:22 PM] Manzanares, Carlos (Vin): 
For instance, the Utilities service, you might notice in the client app.config, I have upped the 

maxbuffersize to the max allowed. 
        <binding name="BasicHttpBinding_IWcfServiceUtilities" 
                 maxBufferPoolSize="2147483647" 
                 maxReceivedMessageSize="2147483647" 
                 maxBufferSize="2147483647" 
                 openTimeout="00:10:00"
                 closeTimeout="00:10:00"
                 sendTimeout="00:10:00"
                 receiveTimeout="00:10:00">
            <readerQuotas 
                maxDepth="200" 
                maxStringContentLength="8388608" 
                maxArrayLength="16384" 
                maxBytesPerRead="2147483647" 
                maxNameTableCharCount="16384" />
        </binding>