I m trying to create end point configuration Programmatically, below is the config file generated, I want to create same configuration using c# programmatically.I want to set bindingConfiguration,contract,name,binding,address through programmatically
It is usually the best practice to specify the binding and address information declaratively in configuration rather than imperatively in code. Create the host and call
AddServiceEndpoint(Type, Binding, String) or one of the other overloads to add the service endpoint for the host.
Member
110 Points
251 Posts
How to write endpoint configuration in wcf Programmatically c#
Nov 25, 2016 02:50 AM|nrk_hi|LINK
I m trying to create end point configuration Programmatically, below is the config file generated, I want to create same configuration using c# programmatically.I want to set bindingConfiguration,contract,name,binding,address through programmatically
.
All-Star
17642 Points
3510 Posts
Re: How to write endpoint configuration in wcf Programmatically c#
Nov 28, 2016 01:51 AM|Chris Zhao|LINK
Hi Nrk_hi,
It is usually the best practice to specify the binding and address information declaratively in configuration rather than imperatively in code. Create the host and call AddServiceEndpoint(Type, Binding, String) or one of the other overloads to add the service endpoint for the host.
reference:
https://msdn.microsoft.com/en-us/library/ms731080(v=vs.110).aspx
http://www.topwcftutorials.net/2014/07/2-simple-ways-configure-wcf-binding.html
Best Regards,
Chris