微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

引用webservice 已超过传入消息(65536)的最大消息大小配额若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性

<?xml version="1.0" encoding="utf-8" ?> <configuration>     <system.serviceModel>         <bindings>             <basicHttpBinding>               <binding name="AlarmMonitorEventSoap" 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="AlarmMonitorEventSoap12" >                     <textMessageEncoding messageVersion="Soap12" />                     <httpTransport maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" />                 </binding>             </customBinding>         </bindings>         <client>             <endpoint address="http://xxx.xxx.xxx.xxx/xxxx.asmx"                 binding="customBinding" bindingConfiguration="AlarmMonitorEventSoap12"                 contract="Service.AlarmMonitorEventSoap" name="AlarmMonitorEventSoap12" />         </client>     </system.serviceModel> </configuration>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐