I’m a newb to WCF bindings and would appreciate any help making a custom binding that:
- Supports Binary Message encoding.
- Uses Transport Security (clientCredentialType=”None”).
Thanks for any help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to create a custom binding in your
<system.serviceModel>section of the config – something like this:There’s a ton of features and options you can define here – the sequence of the elements is important – message encoding before transport, and transport is the last of the options in the stack. See the MSDN Docs on Custom Bindings or Kirk Evans’ blog post for more details on all available options and rules how to combine them.
Once you’ve defined your custom binding, you can use it by specifying
binding="customBinding"and thenbindingConfiguration="HttpBinaryBinding"on your endpoints – both on the server side as well as on the client side.That’s really all there is!