首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MTOM编码和自定义绑定

MTOM编码和自定义绑定
EN

Stack Overflow用户
提问于 2010-09-04 02:29:15
回答 2查看 7K关注 0票数 7

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

代码语言:javascript
复制
 <customBinding>
        <binding name="stsBinding">
          <security authenticationMode="UserNameOverTransport" 
                    requireDerivedKeys="false"
                    keyEntropyMode="ServerEntropy" 
                    requireSecurityContextCancellation="false"
                    requireSignatureConfirmation="false">
          </security>
          <httpsTransport />
        </binding>
      </customBinding>

我的MTOM绑定如下所示:

代码语言:javascript
复制
 <basicHttpBinding>
    <binding name="HttpStreaming"
             maxReceivedMessageSize="2147483647"
             messageEncoding="Mtom"
             transferMode="Streamed"/>
  </basicHttpBinding>   

我如何将其组合起来?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-09-04 02:34:52

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

代码语言:javascript
复制
  <customBinding> 
    <binding name="stsBinding"> 
      <security authenticationMode="UserNameOverTransport"  
                requireDerivedKeys="false" 
                keyEntropyMode="ServerEntropy"  
                requireSecurityContextCancellation="false" 
                requireSignatureConfirmation="false"> 
      </security> 
      <mtomMessageEncoding />
      <httpsTransport /> 
    </binding> 
  </customBinding> 
票数 8
EN

Stack Overflow用户

发布于 2019-01-26 01:33:44

这个在线tool可以帮助将普通绑定转换为自定义绑定。

从绑定中删除任何限制,比如maxBufferSize,因为工具不支持其中的许多限制。您可以在后面添加它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3638552

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档