加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

引用webservice 已超过传入消息(65536)的最大消息大小配额。若要

发布时间:2020-12-16 23:04:26 所属栏目:安全 来源:网络整理
导读:客户端:? system.serviceModel ? ? !--bindings ? ? ? basicHttpBinding ? ? ? ? binding name="WebService1Soap" / ? ? ? /basicHttpBinding ? ?? ? ? /bindings-- ? ? bindings ? ? ? basicHttpBinding ? ? ? ? !--binding name="WebService1Soap" /-- ?

客户端:?

<system.serviceModel>

? ? <!--<bindings>
? ? ? <basicHttpBinding>
? ? ? ? <binding name="WebService1Soap" />
? ? ? </basicHttpBinding>
? ??
? ? </bindings>-->
? ? <bindings>
? ? ? <basicHttpBinding>
? ? ? ? <!--<binding name="WebService1Soap" />-->
? ? ? ? <binding name="WebService1Soap" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" ?messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered">
? ? ? ? ? <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
? ? ? ? </binding>
? ? ? </basicHttpBinding>
? ? ? <customBinding>
? ? ? ? <!--<binding name="WebService1Soap12">-->
? ? ? ? ? <!--<textMessageEncoding messageVersion="Soap12" />
? ? ? ? ? <httpTransport />-->
? ? ? ? <binding name="WebService1Soap12" >
? ? ? ? ? <textMessageEncoding messageVersion="Soap12" />
? ? ? ? ? <httpTransport maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" />
? ? ? ? </binding>
? ? ? ?
? ? ? </customBinding>
? ? </bindings> ?
? ? ? ? ? ??
? ? <client>
? ? ? <!--<endpoint address="http://10.99.4.76:81/WebService1.asmx" binding="basicHttpBinding"
? ? ? ? bindingConfiguration="WebService1Soap" contract="webservice.WebService1Soap"
? ? ? ? name="WebService1Soap" />-->
? ? ? <endpoint address="http://10.99.4.76:81/WebService1.asmx" binding="customBinding"
? ? ? ? bindingConfiguration="WebService1Soap12" contract="webservice.WebService1Soap"
? ? ? ? name="WebService1Soap12" />
? ? </client>
? </system.serviceModel>

</configuration>

webservice:

<system.serviceModel> ? ? <bindings> ? ? ? <basicHttpBinding> ? ? ? ? <binding name="BasicAuthEndpoint" 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="2147483647" maxReceivedMessageSize="2147483647" ? ? ? ? ? messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" ? ? ? ? ? useDefaultWebProxy="true"> ? ? ? ? ? <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" ? ? ? ? ? ? maxBytesPerRead="4096" maxNameTableCharCount="16384" /> ? ? ? ? ? <security mode="Transport"> ? ? ? ? ? ? <transport clientCredentialType="Basic" proxyCredentialType="None" ? ? ? ? ? ? ? realm="" /> ? ? ? ? ? ? <message clientCredentialType="UserName" algorithmSuite="Default" /> ? ? ? ? ? </security> ? ? ? ? </binding> ? ? ? </basicHttpBinding> ? ? </bindings> ? </system.serviceModel> ? <system.webServer>? <modules runAllManagedModulesForAllRequests="true" />? </system.webServer> ? </configuration>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读