In this WCF Tutorial Series on “New Features of Windows Communication Foundation v4.5”, we have covered a lot of exciting features like Simplified Configuration, WCF Configuration Validation, ASP.NET Compatibility Mode default change, BasicHttpsBinding, Task-based Programming model etc. In this part-6 of WCF Tutorial, we will explore the following:
- Multiple Authentication Support
- Contract First Development
Before we start discussing more new features in this Part-6 of WCF 4.5 tutorial, lets recap the previous parts briefly.
- New Features inWCF 4.5 – Part 1
- New Features inWCF 4.5 – Part 2
- New Features inWCF 4.5 – Part 3
- New Features inWCF 4.5 – Part 4
- New Features inWCF 4.5 – Part 5
WCF – Multiple Authentication Support
- In IIS, host the WCF Service and enable multiple authentications like Anonymous, Basic or Windows Authentication.
- In configuration file, update security mode settings as follows:
<security mode=”TransportCredentialOnly”>
<transport clientCredentialType=”InheritedFromHost” /></security>
WCF – Contract First Development
As we know that with previous versions of Windows Communication Foundation, while creating proxy using SvcUtil.exe tool, the output generated file contains the Service Contract, Client operations as well as Data Contracts. There was no way to generate the Service Contract only. But with Windows Communication Foundation v4.5, now its possible to generate the Service Contract only using SvcUtil.exe tool as follows:
Top 10 Interview Questions and Answers Series:
- Top 10 WCF Interview Questions
- Comprehensive Series of WCF Interview Questions
- Top 10 HTML5 Interview Questions
- Top 10 ASP.NET Interview Questions
- Comprehensive Series of ASP.NET Interview Questions
- Top 10 ASP.NET MVC Interview Questions
- Top 10 ASP.NET Web API Interview Questions
- Top 10 ASP.NET AJAX Interview Questions
Pingback: Maillot de psg