views:

20

answers:

1

I'm a newb to WCF bindings and would greatly appreciate if someone could give me an example of a custom binding using Binary message encoding with Transport security (clientCredentialType="None").

Thanks in advance.

A: 

Something like this?

            CustomBinding endpointBinding = new CustomBinding();
            endpointBinding.Elements.Add(new BinaryMessageEncodingBindingElement());
            endpointBinding.Elements.Add(new HttpsTransportBindingElement()); 
Flesrouy