我必须使用外部 Web 服务,但出现以下错误:
读取 MTOM 数据时已超出最大缓冲区大小 (65536)
在今天之前,我使用以下配置使用相同的服务:
<bindings>
<basicHttpBinding>
<binding name="BOServiceSoap11Binding">
<security mode="Transport" />
</binding>
<binding name="BOServiceSoap11Binding1" />
</basicHttpBinding>
<customBinding>
<binding name="BOServiceSoap12Binding">
<mtomMessageEncoding messageVersion="Soap12" />
<httpsTransport />
</binding>
</customBinding>
</bindings>
这是我的终点:
<endpoint address="https://x.com/live-api/services/BOService.BOServiceHttpsSoap12Endpoint/"
binding="customBinding" bindingConfiguration="BOServiceSoap12Binding"
contract="xServiceReference.BOServicePortType" name="BOServiceHttpsSoap12Endpoint" />
我尝试通过将以下标签添加到 customBinding 标签及其子标签来增加 MaxReceivedMessageSize:
MaxReceivedMessageSize="2147483647" maxArrayLength="2147483647" maxStringContentLength="2147483647" maxBufferSize="2147483647"
如何配置我的端点才能正确响应?
谢谢,