Message Exchange Patterns in WCF

In Windows Communication Foundation, both parties (i.e. a service and client) communicate with each other and exchange messages using a certain pattern known as Message Exchange Pattern (MEP). WCF supports three different types of MEPs (Message Exchange Patterns). Request-Reply One-Way Duplex In this WCF Tutorial Series, we will explore all three Message Exchange Patterns step by step with… Read More »

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… Read More »

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… Read More »

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… Read More »

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.… Read More »

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… Read More »

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… Read More »

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… Read More »

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… Read More »

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… Read More »