WCF 4.5 features: Simplified Generated Configuration Files


In this post we will discuss one of the most important feature of WCF 4.5. WCF 4.5 generates simplified configuration file at the client side. WCF 4.5 generates configuration file for basicHttpBinding as following,



To understand simplified configuration file in better way take an example, Before WCF4.5 when you were adding a service reference, at the client side WCF was creating service configuration file with all the default values for the attributes of the binding. In earlier version of WCF4.5 configuration file created at client side was as following. Below is the configuration file for service with wsHttpBinding.


Above I have taken an old configuration file and it contains many other attributes along with default attributes. However point I am trying to make that in prior version of WCF 4.5 ,automatically created configuration file at client side contained default  attribute with values of binding by default. Whereas in WCF4.5  automatically created configuration file at client side is much simplified and contains only the binding name as shown in the image below, 

In WCF 4.5 generated configuration file at client side is very much simplified and does not contain any default value of the binding attribute.


In this way you can notice simplified configuration file at the client side. In later post we will discuss another feature of WCF 4.5. I hope you find this post useful. Thanks for reading.


Published by

Dhananjay Kumar

Dhananjay Kumar is Developer Evangelist for Infragistics. He is a 8 times Microsoft MVP and well respected Developer Advocate in India.He is the author of 900+ Blog Posts, and can often be found speaking around India at conferences and hosting free workshops for programmers across the country. So far, he has hosted 60 free workshops on various topics like JavaScript, Angular, WCF, ASP.NET MVC, C#, Azure etc. Follow him on twitter @debug_mode for all the updates about his blog posts and workshops. You can send him email at debugmode [at] outlook [dot] com

2 thoughts on “WCF 4.5 features: Simplified Generated Configuration Files”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s