gpt4 book ai didi

wcf - MTOM 编码和自定义绑定(bind)

转载 作者:行者123 更新时间:2023-12-04 14:35:26 24 4
gpt4 key购买 nike

如何配置自定义绑定(bind)和 MTOM 编码?我有一个自定义绑定(bind),如下所示,

 <customBinding>
<binding name="stsBinding">
<security authenticationMode="UserNameOverTransport"
requireDerivedKeys="false"
keyEntropyMode="ServerEntropy"
requireSecurityContextCancellation="false"
requireSignatureConfirmation="false">
</security>
<httpsTransport />
</binding>
</customBinding>

我的 MTOM 绑定(bind)如下所示,
 <basicHttpBinding>
<binding name="HttpStreaming"
maxReceivedMessageSize="2147483647"
messageEncoding="Mtom"
transferMode="Streamed"/>
</basicHttpBinding>

我该如何结合这个?

最佳答案

您必须添加消息编码元素:

  <customBinding> 
<binding name="stsBinding">
<security authenticationMode="UserNameOverTransport"
requireDerivedKeys="false"
keyEntropyMode="ServerEntropy"
requireSecurityContextCancellation="false"
requireSignatureConfirmation="false">
</security>
<mtomMessageEncoding />
<httpsTransport />
</binding>
</customBinding>

关于wcf - MTOM 编码和自定义绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3638552/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com