2011-06-14 146 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 - 要配置消息接收方的收词手段。

相关问题