[英]Maximum String Content Length quota error when consuming WCF webservice from Biztalk
I'm getting this error message ... 我收到此错误消息...
"The Maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader"
... in the one of my orchestrations that consumes a WCF webservice (stacktrace indicates the receive shape is where the issue is). ...在我的一个业务流程中使用WCF Web服务(stacktrace表示接收形状是问题所在)。 It is likely that the response is very large. 响应可能非常大。
Looking at some of the other questions with this error message, the solution is to change a WCF bindings setting in the configuration file. 查看此错误消息的一些其他问题,解决方案是更改配置文件中的WCF绑定设置。 However I can't find these configuration settings when I'm using BizTalk. 但是,当我使用BizTalk时,我找不到这些配置设置。 They don't seem to be generated anywhere, should I be trying to add them to BTSNTSVc.exe.config ? 它们似乎没有在任何地方生成,我应该尝试将它们添加到BTSNTSVc.exe.config吗?
Any suggestions welcome. 欢迎任何建议。
Do you have control over the server side code? 您是否可以控制服务器端代码? If so, change the config there and regenerate the service reference. 如果是,请更改其中的配置并重新生成服务引用。 Should look something like maxStringContentLength="2147483647" : 应该看起来像maxStringContentLength =“2147483647” :
<bindings>
<wsHttpBinding>
<binding name="newHTTPBinding"
maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32"
maxStringContentLength="2147483647"
maxArrayLength="16384"
maxBytesPerRead="4096"
maxNameTableCharCount="16384" />
<binding/>
<wsHttpBinding>
<bindings>
I have fixed the problem by adding a default binding under basicHTTPBinding, just like in http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/d5b7ac03-70f8-4366-b055-c177c61f4dec/ 我已经通过在basicHTTPBinding下添加一个默认绑定来解决了这个问题,就像http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/d5b7ac03-70f8-4366-b055-c177c61f4dec/
The necessary modification was done to the client. 对客户进行了必要的修改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.