在我的代码中,我正在使用 asmx Web 服务,最近我将 url 从 http 更改为 https,例如。之前的url是:http://xyz@xyz.com/abc/webservices/pqr.asmx,现在改成了:https://xyz@xyz.com/abc/webservices/pqr.asmx。
在我的 web.config 中,我做了以下更改:
<system.serviceModel>
<basicHttpBinding>
<binding name="ApplicationMessagingWSSoap12" closeTimeout="00:02:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:02:00"
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
transferMode="Buffered">
<readerQuotas maxDepth="2000001" maxStringContentLength="2000001"
maxArrayLength="2000001" maxBytesPerRead="2000001" maxNameTableCharCount="2000001" /
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://xyz@xyz.com/abc/webservices/pqr.asmx" binding="basicHttpBinding" bindingConfiguration="ApplicationMessagingWSSoap12" contract="MSSInterface.ApplicationMessagingWSSoap" name="ApplicationMessagingWSSoap12" />
</client>
</system.serviceModel>
但我遇到了问题: 已超出传入消息的最大消息大小配额 (65536)。要增加配额,请在适当的绑定元素上使用 MaxReceivedMessageSize 属性。
我尝试了我在网上找到的所有技术,但还没有运气。
请任何人帮助我解决方案,在此先感谢:)