zoukankan      html  css  js  c++  java
  • Web Service调用出现:The maximum message size quota for incoming messages (65536) has been exceeded....错误

     

    Server Error in '/' Application.

    The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

     

     

    解决方案:修改配置文件,

     <system.serviceModel>
      <bindings>
       <basicHttpBinding>
        <binding name="UserInfoWebServiceSoap" closeTimeout="00:01:00"
         openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
         allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
         maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
         messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
         useDefaultWebProxy="true">
         <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
          maxBytesPerRead="4096" maxNameTableCharCount="16384" />
         <security mode="None">
          <transport clientCredentialType="None" proxyCredentialType="None"
           realm="" />
          <message clientCredentialType="UserName" algorithmSuite="Default" />
         </security>
        </binding>
       </basicHttpBinding>
      </bindings>
      <client>
       <endpoint address="http://10.12.30.53/CCCService/UserInfoWebService.asmx"
        binding="basicHttpBinding" bindingConfiguration="UserInfoWebServiceSoap"
        contract="UserInfoWebServiceReference.UserInfoWebServiceSoap"
        name="UserInfoWebServiceSoap" />
      </client>
     </system.serviceModel>

  • 相关阅读:
    简单的代码
    js精度缺失问题
    maven将Jar安装进仓库
    上传图片,手机端压缩
    处理登录时,AJAX的状态码无权限情况
    处理html换行问题
    VMWARE网络配置内网与外网互ping
    hbase和ZooKeeper集群安装配置
    Hadoop集群部署
    redis主从配置+sentinel哨兵
  • 原文地址:https://www.cnblogs.com/KingStar/p/1688290.html
Copyright © 2011-2022 走看看