WCF RESTFUL 服务提示Large Entity

WCF RESTFUL 服务提示Large Entity

 

 

类别    [选择一个类别或键入一个新类别]

 

标准wcf服务提示Entity Too Large的解决方案,参考:WCF错误:413 Request Entity Too Large - Gyoung - 博客园 (cnblogs.com)

使用WCF提供restful api时,同样会存在Entity Too Large,参考(吐槽百度搜索)

c# - WCF RestFull "413 Request Entity Too Large" - Stack Overflow

@@@code

<bindings>

            <basicHttpBinding>

                <binding closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="5242880000" maxBufferSize="655360000" maxReceivedMessageSize="655360000">

                    <readerQuotas maxDepth="32" maxStringContentLength="655360000" maxArrayLength="2147483647" maxBytesPerRead="655360000" maxNameTableCharCount="16384" />

                    <security mode="None" />

                </binding>

 

                <binding name="ZyPaySoap" maxReceivedMessageSize="2147483647" />

                <binding name="ZyPaySoap1" />

            </basicHttpBinding>

            <webHttpBinding>

                <binding maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"

>

                </binding>

            </webHttpBinding>

        </bindings>

 

@@#

 

posted @ 2022-10-19 09:00  秦秋随  阅读(29)  评论(0编辑  收藏  举报