首页 > 其他分享 >WCF RESTFUL 服务提示Large Entity

WCF RESTFUL 服务提示Large Entity

时间:2022-10-19 09:12:33浏览次数:89  
标签:提示 Entity Large Too WCF RESTFUL

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>

 

@@#

 

标签:提示,Entity,Large,Too,WCF,RESTFUL
From: https://www.cnblogs.com/QinQouShui/p/16804976.html

相关文章