8
votes

I've been working on converting a basicHttpBinding to a customBinding to get my client working on a web farm. I've been fumbling translating the following security section.

<basicHttpBinding ...>
   <security mode="Transport">
      <transport clientCredentialType="Certificate">
   </security>
</basicHttpBinding>
<behaviors>
   <behavior>
      <clientCredentials>
         <clientCertificate
            x509FindType="FindBySerialNumber"
            findValue="..."
         />
      </clientCredentials>
   <behavior>
</behaviors>

I'd show you my translation, but what I've been able to fathom is really undereducated guessing. I will also continue doing some more independent research via the web.

2

2 Answers

6
votes

This tool converts automatically your binding into a customBinding.

http://webservices20.cloudapp.net/default.aspx

4
votes

Ok, I figured this out, didn't need to even use the security section in the custombinding, everything I need to set was on the <httpsTransport/> element itself. I've cut out all the non important bits.

<customBinding>
    <binding name="viaLoadBalancers">

        <textMessageEncoding 
            messageVersion="Soap11" 
            writeEncoding="utf-8"
        />

        <httpsTransport
            authenticationScheme="Anonymous"
            requireClientCertificate="true"
        />
    </binding>
</customBinding>