MTOM 编码和自定义绑定

发布于 2024-09-16 22:13:32 字数 825 浏览 6 评论 0原文

如何配置自定义绑定和 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

叹沉浮 2024-09-23 22:13:32

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

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

You have to add message encoding element:

  <customBinding> 
    <binding name="stsBinding"> 
      <security authenticationMode="UserNameOverTransport"  
                requireDerivedKeys="false" 
                keyEntropyMode="ServerEntropy"  
                requireSecurityContextCancellation="false" 
                requireSignatureConfirmation="false"> 
      </security> 
      <mtomMessageEncoding />
      <httpsTransport /> 
    </binding> 
  </customBinding> 
悲念泪 2024-09-23 22:13:32

此在线工具可以帮助将普通绑定转换为自定义绑定。

从绑定中删除任何限制,例如 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文