Multiple Service Contracts in WCF Service

Objective In this article, I will show you, how we can have multiple contracts in WCF service. Block Diagram Above block diagram says 1. There are three contracts. 2. All contracts are being implemented in same service class. 3. Each contract is exposed on different end points. To start with follow the below steps, StepContinueContinue reading “Multiple Service Contracts in WCF Service”

Configuring Multiple End points for WCF Service

Objective In this article, I will explain how we could configure multiple binding for WCF service. To see the video tutorial of hosting WCF Service in Console Application Click Here While creating multiple endpoints for the service, make sure each end point is having unique address. If address is not unique, you will catch withContinueContinue reading “Configuring Multiple End points for WCF Service”

Hosting WCF service in Console Application

This video will explain , how to host a WCF Service in a Console Application For your reference soure code is as below , IService1.cs using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text;   namespace MultipleEndpoints {       [ServiceContract]     public interface IService1     {          ContinueContinue reading “Hosting WCF service in Console Application”

FAULT Contract in WCF with Learning Video

Video of the article is HERE  Objective This article will give basic introduction on 1. How to handle Exception at service side? 2. How to use Fault contract at Service side? 3. How to handle Service Exception at client side? Video explaining this article is here Few points about Exception at Service 1. Exception isContinueContinue reading “FAULT Contract in WCF with Learning Video”

Learning Video on Fault Contract in WCF

This video is giving basic explanation on How to work with Fault Contract. For reference Soure code is as below , IService1.cs using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text;   namespace demoFaultService {       [ServiceContract]     public interface IService1     {         [OperationContract ]        ContinueContinue reading “Learning Video on Fault Contract in WCF”

Custom Binding Part #2: creating a Basic REST service using CUSTOM Binding

In this article, I am going to show you how we could create a basic WCF REST service using custom binding. Part 1 of this article series could be read Here Follow the steps below, Step 1 Create a new WCF service application project. Delete all the default codes getting created by WCF. Step 2ContinueContinue reading “Custom Binding Part #2: creating a Basic REST service using CUSTOM Binding”

Theoretical introduction of Custom Binding in WCF

What is Custom Binding? Custom Binding provides the full control over the messaging stack for the user. We use Custom Binding, when none of the system provided binding is matching our requirement. For example let us say, your requirement is to use Http protocol to send SOAP12 message version. Each Binding is made of differentContinueContinue reading “Theoretical introduction of Custom Binding in WCF”

Get an Image using WCF REST service

Objective This article will give a very simple and basic explanation of , how to fetch an image using WCF REST service. Step 1 Create a WCF application. To create a new application File -> New -> Web-> WCF Service Application.Remove all the default code created by WCF. Remove code from IService 1 interface andContinueContinue reading “Get an Image using WCF REST service”

Returning Large volume of records from SOAP based WCF service

Objective In this article I will explain; How to return large volume of data (around 50000 records) from SOAP based WCF service to any client. I will show; what service configuration setting and client configuration setting is needed to handle large volume of data returning for WCF service. Follow the below steps, Step 1: CreateContinueContinue reading “Returning Large volume of records from SOAP based WCF service”

Solving Caching problem of IE for WCF REST service

Objective This article will explain; how to solve the caching problem in IE while making call to for REST enabled WCF service. Client might be a SILVERLIGHT client or AJAX client. Background Read my other articles on WCF REST service for better understanding of this article. Is REST service and a web page is same?ContinueContinue reading “Solving Caching problem of IE for WCF REST service”