如何解决“请求实体太大”的问题将XML格式的请求发送到WCF服务时出现问题

编程入门 行业动态 更新时间:2024-10-27 13:28:30
本文介绍了如何解决“请求实体太大”的问题将XML格式的请求发送到WCF服务时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用XML文件将数据发送到WCF服务。发送冗长数据(36KB)到服务时我得到以下问题 远程服务器返回意外响应:(413)请求实体太大。 如何解决这个问题,请帮帮我。 先谢谢.. 我尝试了什么: 这是我的应用.config(客户端)绑定设置 < wshttpbinding> < binding name =WSHttpBinding_IServiceclosetimeout =00:05:00> openTimeout =00:05:00sendTimeout =00:05:00maxBufferPoolSize =2147483647 maxReceivedMessageSize =2147483647> < readerquotas maxdepth =2147483647maxstringcontentlength =2147483647maxarraylength =2147483647maxbytesperread =2147483647maxnametablecharcount =2147483647>

解决方案

浏览此链接: wcf - IIS7 - (413)请求实体太大| uploadReadAheadSize - Stack Overflow [ ^ ]

I am using XML file for sending data to WCF Service. I got below Issue when sending lengthy data (36KB) to service "The remote server returned an unexpected response: (413) Request Entity Too Large." How to solve this issue, Please help me. Thanks in Advance.. What I have tried: this is my app.config(Client) Binding settings <wshttpbinding> <binding name="WSHttpBinding_IService" closetimeout="00:05:00"> openTimeout="00:05:00" sendTimeout="00:05:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"> <readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="2147483647">

解决方案

Go through this link : wcf - IIS7 - (413) Request Entity Too Large | uploadReadAheadSize - Stack Overflow[^]

更多推荐

如何解决“请求实体太大”的问题将XML格式的请求发送到WCF服务时出现问题

本文发布于:2023-10-11 22:17:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1482997.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:太大   发送到   如何解决   实体   格式

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!