Asp.net 长文本未从移动应用调用Rest服务
我已经为使用Post方法公开的移动应用程序创建了WCF Rest服务 在这种情况下,用户必须发送长文本。大约40000个字符。在900个字符之前,如果超过 它会产生错误 “请求URL太长 HTTP错误414。请求URL太长。“ 接口内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
<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>