简体   繁体   English

从Biztalk使用WCF Web服务时的最大字符串内容长度配额错误

[英]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.

相关问题 使用Delphi使用WCF - 最大字符串内容长度配额(8192)错误 - Consuming WCF with Delphi - Maximum string content length quota (8192) error WCF阅读器配额最大字符串内容长度配额(8192) - WCF reader quota The maximum string content length quota (8192) WCF REST 4.0最大字符串内容长度配额 - WCF REST 4.0 The maximum string content length quota C#WCF最大字符串内容长度配额 - c# WCF maximum string content length quota WCF:超出了最大字符串内容长度配额(8192) - WCF: The maximum string content length quota (8192) has been exceeded WCF / Android ksoap2 / a:DeserializationFailed错误,我无法更改最大字符串内容长度配额(8192) - WCF / Android ksoap2 / a:DeserializationFailed error and I can't change maximum string content length quota (8192) 向WCF发送字符串时出现“读取XML数据时超出最大字符串内容长度配额(8192)”错误 - “The maximum string content length quota (8192) has been exceeded while reading XML data” error while sending string to WCF “在读取XML数据时已超出最大字符串内容长度配额(8192)”将XML字符串发送到WCF时出错 - “The maximum string content length quota (8192) has been exceeded while reading XML data” error while sending XML string to WCF 将 XML 字符串发送到 WCF 时出现“读取 XML 数据时已超出最大字符串内容长度配额 (8192)”错误 - "The maximum string content length quota (8192) has been exceeded while reading XML data" error while sending XML string to WCF 最大字符串内容长度配额(8192) - The maximum string content length quota (8192)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM