MTOM 编码和自定义绑定
如何配置自定义绑定和 MTOM 编码?我有一个如下所示的自定义绑定,
<customBinding>
<binding name="stsBinding">
<security authenticationMode="UserNameOverTransport"
requireDerivedKeys="false"
keyEntropyMode="ServerEntropy"
requireSecurityContextCancellation="false"
requireSignatureConfirmation="false">
</security>
<httpsTransport />
</binding>
</customBinding>
我的 MTOM 绑定如下所示,
<basicHttpBinding>
<binding name="HttpStreaming"
maxReceivedMessageSize="2147483647"
messageEncoding="Mtom"
transferMode="Streamed"/>
</basicHttpBinding>
如何组合它?
How do I configure custom binding and MTOM encoding? I have a custom binding like given below,
<customBinding>
<binding name="stsBinding">
<security authenticationMode="UserNameOverTransport"
requireDerivedKeys="false"
keyEntropyMode="ServerEntropy"
requireSecurityContextCancellation="false"
requireSignatureConfirmation="false">
</security>
<httpsTransport />
</binding>
</customBinding>
And my MTOM binding is like below,
<basicHttpBinding>
<binding name="HttpStreaming"
maxReceivedMessageSize="2147483647"
messageEncoding="Mtom"
transferMode="Streamed"/>
</basicHttpBinding>
How do I combine this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须添加消息编码元素:
You have to add message encoding element:
此在线工具可以帮助将普通绑定转换为自定义绑定。
从绑定中删除任何限制,例如
maxBufferSize
,因为该工具不支持其中许多限制。之后就可以添加了。This online tool can help convert normal bindings to custom bindings.
Remove any limits like
maxBufferSize
from the binding, because many of those are not supported by the tool. You can add it after.