问题描述
我正在使用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>
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">
这篇关于如何解决“请求实体太大”的问题将XML格式的请求发送到WCF服务时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!