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 @   秦秋随  阅读(30)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· AI Agent开发,如何调用三方的API Function,是通过提示词来发起调用的吗
点击右上角即可分享
微信分享提示