2010-04-16 50 views
1

我收到此錯誤信息消費WCF web服務...從BizTalk

 
"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" 

...在我的業務流程的消耗一個WCF web服務的一個(堆棧跟蹤指示時最大字符串內容長度配額錯誤接收形狀​​是問題所在)。答案很可能很大。

看看有關此錯誤消息的其他一些問題,解決方案是更改配置文件中的WCF綁定設置。但是,當我使用BizTalk時,我找不到這些配置設置。他們似乎沒有生成任何地方,我應該試圖將它們添加到BTSNTSVc.exe.config?

歡迎任何建議。

回答

3

你有控制服務器端代碼嗎?如果是這樣,請在那裏更改配置並重新生成服務參考。應該是這個樣子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> 
+0

感謝您的建議坦納,我看看這個。雖然我不控制服務器上的代碼,但我可以更改web.config。 的結合看起來略有不同,認爲這是培訓相關片,但..似乎被設置爲允許大量數據.. <綁定名稱=「wsWithText」 maxReceivedMessageSize =「665536」 messageEncoding = 「Text」/> .... TygerKrash 2010-04-16 16:37:39

+0

謝謝。結果我所要做的只是添加相同的元素我的綁定。 – TygerKrash 2010-04-17 16:39:43