将WSHttpBinding转换为自定义

时间:2013-03-04 18:51:53

标签: wcf web-config wcf-binding

我想增加绑定的MaxClockSkew,但我不知道如何将绑定转换为自定义绑定以添加MaxClockSkew元素。

如果有人能帮我转换,我真的很感激。

  <wsHttpBinding>
    <binding name="MyBinding" maxReceivedMessageSize="102400">
      <readerQuotas  maxArrayLength="51200" maxStringContentLength="102400" maxNameTableCharCount="2147483647" />
      <security mode="TransportWithMessageCredential">
        <transport clientCredentialType="None" />
        <message clientCredentialType="UserName" />
      </security>
    </binding>
  </wsHttpBinding>

由于

1 个答案:

答案 0 :(得分:0)

使用在线WCF Binding Converter

试试这个:

<customBinding>
  <binding name="NewBinding0">    
      <security authenticationMode="UserNameOverTransport" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10" />

    <textMessageEncoding />
    <httpsTransport maxBufferSize="102400" maxReceivedMessageSize="102400" />
  </binding>
</customBinding>