WCF
How to create WCF RESTful Service.
.
In my earlier blog, I have explained about REST and SOAP.In this blog, I will continue WCF tutorial sections. See a list of topic in WCF tutorial here.REST is the short form of Representational State Transfer. REST says each resource should be accessed by URI. How to create a RESTful WCF service. First, create a…
What is Xml Serialization
.
In this blog, we will see XML Serialization and its implementation using C# code. Lets first understand Serialization. Serialization is the process of converting an object into a format that can be transferred over the network. What is XML Serialization? XML Serialization is the process of converting an object into XML file which is easy to read…
Understanding WCF Bindings
.
Binding describes that how a client will communicate with WCF service. It tells that what protocol will be used to communicate, as WCF supports various protocols like HTTP, TCP, MSMQ, Named Pipes. Binding determine transport protocol i.e. TCP, HTTP, message exchange format i.e. plain text, XML You may go through to my earlier blogs to…
ABC of WCF
.
In this article, we will focus on ABC of WCF which is the core of WCF service endpoints. This is one of the most important interview questions. What is the ABC of WCF? ABC is the main foundation of WCF learning. WCF service comes into existence with a valid Endpoint. An endpoint consists of 3…
First WCF Service Application – WCF Tutorial
.
In this blog, I will be creating a WCF service application project. If you want to learn WCF from the beginning, please read my earlier blog. Let’s create the first WCF Service Application To create a WCF project open Visual Studio 2012 and select File->New Project. Click on WCF from an installed template (Left area)…
Fault Contract in WCF – WCF Service Tutorial
.
In this article, we will see how to implement Fault Contract in WCF. In typical ASP.Net code we use try catch block to manage exception, but in WCF Fault Contract is used handle exception so that reason of error can reach to the client. WCF Fault Contract If you are new to WCF Contracts, please…
Data Contract vs Message Contract in WCF – WCF Service Tutorial
.
If you are new to Data Contract and Message Contract. Please read my earlier blogs. Data Contract Message in WCF Data Contract has very less control over SOAP message, while Message Contract has full control. Data Contract vs Message Contract Data Contract is used to define the structure of data which will be exchanged between…
Message Contract in WCF – WCF Service Tutorial
.
If you are new to WCF Service, please read my earlier blogs. WCF Introduction and WCF Contracts As we know the default message protocol in WCF is SOAP. Message contract is used to define the SOAP structure. As we know SOAP has Envelope, Header, and Body. So if you want control over SOAP then you must…
Data Contract Serialization and De-Serialization – WCF Service Tutorial
.
Serialization is the process of converting an object to transferable data format. By default WCF uses DataContractSerializer. And vice-versa process is called De-Serialization. public class Product { public int ProductID { get;set; } public string ProductName { get;set; } public string ProductSeller { get;set; } public decimal ProductCost { get;set; …
Data Contract in WCF
.
In my earlier blog, I wrote about Other Contracts. Please refer this link Contracts in WCF Learn Data Contract It is used to define the data which will be exchanged between client and server. A simple Data Contract with Data Member will look like this. [DataContract] public class Product { private int _ProductID; …
What is Operation Contract in WCF Service?
.
In my earlier blog I wrote about Contracts and Service Contract. Please refer this link Service Contract in WCF Operation Contract Operation Contracts are nothing but the functions or methods exposed to the client which may or may not return to perform some logic at server end. A simple Operation Contract with Service Contract will…
What is Service Contract in WCF?
.
Service Contract in WCF Contracts in WCF are very important. Contracts are responsible for how to communicate, what protocol to use and what message to send. Following contracts available in WCF: Service Contract Operation Contract Data Contract Message Contract Fault Contract We will see all contract one by one with the help of practical implementation…
WAS Hosting in WCF Service
.
As we all know that IIS 6 supports HTTP protocol only. Windows Process Activation Service (WAS) supports non-http protocols in IIS. So, WAS helps WCF service to host with HTTP and NO-HTTP protocols such as net.tcp. Once you changed binding in the config file to netTcpBinding Your service will throw this error. Don’t worry there…
Self Hosting a WCF service
.
As we know WCF supports various hosting options. Self Hosting is one of them. What is Self Hosting? WCF allows hosting a service in an application such as Console Application. Create a Console Application Project to host a WCF Service. Add WCF Service project Reference in this Console Application. Delete existing App.config file. Add new…
How to Host a WCF Service in IIS?
.
If you are new to WCF services then please read my earlier blogs. Go through with this link – WCF Tutorial step by step.WCF supports a various way to host a service. In this blog, I will explain about Hosting a WCF Service in IIS. How to host WCF service in IIS? Step 1: Create…
WCF tutorial – Learn WCF quickly
.
WCF tutorial – Learn WCF quickly WCF stands for Windows Communication Foundation and used for developing distributed system. WCF services can communicate with.Net applications and Non-Microsoft technology as well. ABC of WCF (A) Address – Where to bind, which is also called as EndPoint (B) Binding – How to bind (C) Contract – What to…
Introduction to WCF.
.
What is WCF? WCF stands for Windows Communication Foundation. The main use of WCF is to develop distributed system. WCF main feature is interoperability. What are Advantages of using WCF? 1. Interoperability 2. Scalability 3. Enhance security and reliability compared to ASMX (Web services) WCF services have following elements Message – This is the object…
WCF tutorial for beginners and experience
.
WCF stands for Windows Communication foundation. It is used for developing distributed system.Below are the topics which are important in WCF for beginners and for experience as well. WCF Introduction WCF vs. Web Service WCF Architecture ABC of WCF First WCF Application WCF Binding WCF- IIS Hosting WCF- Self Hosting WCF- WAS Hosting WCF- Service…
Basics of WCF Architecture
.
WCF Architecture WCF stands for Windows Communication Foundation, introduced by Microsoft. WCF is one of the popular technology to build Service-Oriented Systems. WCF is the unified model for all existing distributed technologies by Microsoft such as ASMX Web Service,.Net Remoting. WCF supports HTTP, TCP, MSMQ and other protocol as well to communicate. Following image explains…
WCF vs Web Services
.
Most useful and most asked question in an interview is WCF vs Web Services. It could be asked in various form like Why WCF is better than Web Services WCF and Web Services both are the implementation of SOA (Service Oriented Architecture), both are SOAP-based services. WCF supports other formats as well apart from SOAP…
