2
votes

I am having hard time converting a BasicHttpBinding to custom binding. Specifically I need to convert the security element-

<basicHttpBinding>
 <binding name="MySecureBasicHttpBinding">
  <security mode="TransportWithMessageCredential">
   <transport clientCredentialType="None" proxyCredentialType="None" />
   <message clientCredentialType="UserName" algorithmSuite="Default" />
  </security>
 </binding>
</basicHttpBinding>

Can anyone help write the same in custom binding? Please also refer to post\doc, from where I can find out the correspondence between the security mode & values as in basicHttpBinding and those in custom bindings.

Thanks

1

1 Answers

3
votes

Try this:

<customBinding>
  <binding name="UsernamePasswordOverHttps">
    <security
      authenticationMode="UserNameOverTransport"      
      messageSecurityVersion="WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10" />
    <textMessageEncoding messageVersion="Soap11" />
    <httpsTransport />
  </binding>
</customBinding>