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>

 

@@#

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章