2011-06-14 141 views
0

我收到的時候我發送超過500條記錄,以save.so請幫助我,這是我的服務這個錯誤遠程服務器返回了意外的響應:(400)錯誤的請求

<bindings> 

     <wsHttpBinding> 


      <binding name="WSHttpBinding_IMFMReport" closeTimeout="00:01:00" 
       openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
       bypassProxyOnLocal="false" transactionFlow="true" hostNameComparisonMode="StrongWildcard" 
       maxBufferPoolSize="524288" maxReceivedMessageSize="999999999" 
       messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" 
       allowCookies="false"> 
       <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
        maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
       <reliableSession ordered="true" inactivityTimeout="00:10:00" 
        enabled="false" /> 
       <security mode="Message"> 
        <transport clientCredentialType="Windows" proxyCredentialType="None" 
         realm="" /> 
        <message clientCredentialType="Windows" negotiateServiceCredential="true" 
         algorithmSuite="Default" /> 
       </security> 

      </binding> 


    <client> 

     <endpoint address="http://localhost:3956/MFMReportService.svc" 
      binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IMFMReport" 
      contract="MFMReportService.IMFMReport" name="WSHttpBinding_IMFMReport"> 
      <identity> 
       <userPrincipalName value="[email protected]" /> 
      </identity> 
     </endpoint> 
     </client> 
</system.serviceModel> 
+0

有你調整了readerQuotas設置,以確認這不是因爲在請求大小一些限制。 – Chandermani 2011-06-14 04:27:08

+0

你需要能夠在服務器端跟蹤 - http://msdn.microsoft.com/en-us/library/ms733025.aspx - 找出是什麼原因造成的請求被認爲是「壞」。 – carlosfigueira 2011-06-14 05:22:01

回答

0

這不是你的服務,那是客戶端。如果你想大數據集傳送到服務,您必須在服務配置MaxReceivedMessageSize - 要配置消息接收方的收詞手段。

相關問題