Category Archives: Uncategorized

Transport Level Security Vs Message Level Security in WCF

Core security concepts supported by WCF – Windows Communication Foundation are Confidentiality, Integrity, Auditing, Authentication and Authorization. In Windows Communication Foundation, security can be configured at two different levels: Transport Level Security It secures the actual transport (i.e. the pipe) over which the message passes through from client to a service. For example it uses SSL […]

Understanding Fault Contract in WCF

In previous WCF tutorials, we learnt about different WCF Contracts including Behavioral (Service Contract, Operation Contract) and Structural (Data Contract and Message Contract). In this post, we will learn about another behavioral Contract i.e. Fault Contract. What is a Fault Contract? In WCF (Windows Communication Foundation), we will not expose exception directly to client if […]

Understanding Data Contract in WCF

WCF Data Contract In Windows Communication Foundation, Data Contract is an agreement between parties (i.e. a service and a client) that describes what type of data will be exchanged between them? We can control the contents (i.e. Payload data or message body) of a SOAP message using Data Contract. In more simple words, we can say […]

WCF Contracts Simplified

Basically a WCF Contract is an agreement between the two parties i.e. a Service and a Client. In Windows Communication Foundation, Contracts are categorized as behavioral or structural. Behavioral Contracts ServiceContract attribute is used to mark a type as Service Contract that contains operations. OperationContract attribute is used to mark the operations that will be exposed. […]

2 simple ways to configure WCF binding

In one of previous WCF Tutorial for beginners, I discussed about the ABC’s of WCF Service Endpoint. An Endpoint of Service has following three parts also known as ABC (Address, Binding, Contract): Address defines Where: Where is the location of WCF Service? Binding defines How: How we can access the WCF Service? Contract defines What: What a WCF Service expose? As Binding […]

Review – 50 Articles completed on WCF Tutorial

By publishing my last article “WCF Hosting in IIS Simplified“, I have completed a milestone of 50 WCF Tutorial on Windows Communication Foundation for beginners as well as professional developers. Throughout this journey, my intention was to follow a practical and step by step approach to explain important concepts on WCF. I’ll try my best to continue the […]

WCF Hosting in IIS Simplified

It’s part-3 in series of WCF Hosting Tutorials and we are going to implement that how we can host a WCF Service in IIS (version 5 or 6)? We already have implemented the following in series: WCF Self Hosting in a Console Application WCF Hosting in Windows Service Microsoft introduced WCF (Windows Communication Foundation) in […]

3 Ways to generate proxy for WCF Service

In Windows Communication Foundation, for a client application to communicate with a WCF Service, we have following options: Using ChannelFactory Generating Proxies I have already discussed about difference between ChannelFactory and Proxies in one of my previous WCF Tutorial on this blog. In this article, we will focus only on multiple ways to generate proxy in […]

WCF Hosting in Windows Service Simplified

We have discussed briefly about different available hosting options (Self Hosting, Windows Service, IIS, WAS etc) for WCF Service in separate post “WCF Interview Questions and Answers – Part 1“. In this WCF Tutorial, we are going to implement hosting WCF Service in a Windows Service. Hosting in Windows Service is suitable for long-running WCF […]

Calling a WCF Self Hosted Console Application

In previous WCF Tutorial, we discussed about different hosting options available for a WCF Service. We also implemented hosting a WCF Service in a Console Application. Now in this part, we are going to call our already console hosted StudentService from a client. I’ll strongly recommend to go through previous WCF Tutorial for creating and hosting a WCF […]