WCF Service Basic Part one

In this session we  will learn the basic of the creating wcf service .


Software Required :

  • Microsoft Visual Studio 2017.
  • Sql Management Studio .
  • Sql Server 2008 or above .


Usually there are two way create wcf service ,first create class library project and then add the wcf service into your project . The second way you can create wcf service directly from templates are provided by the Visual Studio . 

Here is the step to create wcf service by using class library project . First select file tab of Visual Studio then select the new tab and from new tab you will see the project windows ,select the project option .Finally Visual Studio will show you the project you want to create .Select the class library option then give it meaningful name .



Visual Studio will create the project with required config file and the class.  Right click of your project and select add new item form the window and then search for wcf service with meaningful name .Remember the core assemble for wcf service is system.service.model.  


After adding the wcf  service into your project ,you will see two classes one is Istudentservice.cs(the name you provided when you added the wcf service) and another is called studentservice.cs.







 Second part of this video series we will learn what are those files and purpose of using this files .

No comments:

Post a Comment