【发布时间】:2014-12-30 16:17:47
【问题描述】:
我有 WCF 服务,当我想将参数作为大字符串(超过 1mb)传递时,我有一个方法
我运行这个 wcf 并在 WCF 测试客户端中更改了配置,如下所示:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IMyService" sendTimeout="00:05:00"
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
当我尝试调用此方法时,我仍然有 413 请求实体太大。
【问题讨论】:
-
您是否在 both 两端都进行了更改?服务器和客户端?
-
我添加到客户端:
但我仍然遇到同样的错误
标签: c# wcf wcf-binding http-status-code-413