Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/146.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 长文本未从移动应用调用Rest服务_Asp.net_Vb.net_Rest_Wcf_Wcf Rest - Fatal编程技术网

Asp.net 长文本未从移动应用调用Rest服务

Asp.net 长文本未从移动应用调用Rest服务,asp.net,vb.net,rest,wcf,wcf-rest,Asp.net,Vb.net,Rest,Wcf,Wcf Rest,我已经为使用Post方法公开的移动应用程序创建了WCF Rest服务 在这种情况下,用户必须发送长文本。大约40000个字符。在900个字符之前,如果超过 它会产生错误 “请求URL太长 HTTP错误414。请求URL太长。“ 接口内 <OperationContract()> _ <WebInvoke(Method:="POST", RequestFormat:=WebMessageFormat.Json, ResponseFormat:=WebMessageFormat.J

我已经为使用Post方法公开的移动应用程序创建了WCF Rest服务

在这种情况下,用户必须发送长文本。大约40000个字符。在900个字符之前,如果超过

它会产生错误

“请求URL太长

HTTP错误414。请求URL太长。“

接口内

<OperationContract()> _
<WebInvoke(Method:="POST", RequestFormat:=WebMessageFormat.Json, ResponseFormat:=WebMessageFormat.Json, UriTemplate:="/Text?Version={Version}&strKey ={strKey }")> _
Sub Text(ByVal Version As String, ByVal strKey As String)
_
_
子文本(ByVal版本作为字符串,ByVal strKey作为字符串)
我必须做些什么改变。因此,任何长文本都会调用它

我还尝试更改配置中的值

<httpRuntime maxUrlLength="90999" maxQueryStringLength="2097151" maxRequestLength="102400" requestValidationMode="2.0" />

<security>
      <requestFiltering allowDoubleEscaping="True" >
        <requestLimits maxUrl="10999" maxQueryString="2097151" />
      </requestFiltering>
    </security>

<httpRuntime maxUrlLength="90999" maxQueryStringLength="2097151" maxRequestLength="102400" requestValidationMode="2.0" />

<security>
      <requestFiltering allowDoubleEscaping="True" >
        <requestLimits maxUrl="10999" maxQueryString="2097151" />
      </requestFiltering>
    </security>