I am trying to establish a response from a remote service. Using the following section in my web.config I am getting an undesired response from web service.
The remote server returned an unexpected response: (413) Request entity too large. I tried increasing the buffer size, but am unable to get past this error.
How can I resolve this issue?
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="CustomBinding_ISalesOrderService" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text">
<security mode="Transport"/>
<readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://app.vendsys2.com/VendSysAPI/v1.2/SalesOrderService.svc/VendSysAPI/v1.2/SalesReportService.svc"
binding="basicHttpBinding" bindingConfiguration="CustomBinding_ISalesOrderService"
contract="SalesOrderService.ISalesOrderService" name="CustomBinding_ISalesOrderService" />
</client>
</system.serviceModel>