远程服务器返回了意外的响应:400错误的请求

问题描述

| 当我发送超过500条记录进行保存时出现此错误,请帮助我,这是我的服务
    <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=\"pkshah@GESCO.COM\" />
            </identity>
        </endpoint>
       </client>
</system.serviceModel>
    

解决方法

        那不是您的服务,而是客户。如果要将大型数据集传递给服务,则必须在服务上配置“ 1”-“已接收”一词表示您正在配置消息接收器。     

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...