如何解决“请求实体太大”的问题将XML格式的请求发送到WCF服务时出现问题 [英] How to solve "request entity too large" issue when sending request in XML format to WCF service

查看:78
本文介绍了如何解决“请求实体太大”的问题将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服务时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆