technomark.in
Hot News

$(this) Selector And Children / Find In jQuery

Detect An Undefined Object Property In JavaScript

Rotate And Save Video Using VLC Media Player

Capitalize The First Letter Of String In JavaScript

Convert Any Files To Any Format Using VLC Media Player

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

How To Logout From All Devices In Skype

Technomark.in

How To Embed Google Map In Your Code

Technomark.in

How To Install IIS (Internet Information Services) On Windows

Technomark.in

Enable Directory Browsing In IIS

View All


Create A WCF Service In Visual Studio [WCF Series Part 1]


Create A WCF Service

> First of all, On Visual Studio Click on File --> New --> Project.
> A new window will open as shown below.

Create A WCF Service In Visual Studio, Create A WCF Service, WCF Service, Create Service In Asp.Net, Create A WCF Service In Asp.Net MVC, WCF Service In Asp.Net MVC, Asp.Net, WCF, REST, MVC

> Select WCF --> WCF Service Application --> OK.
> This much of steps will create a WCF Service Application.
> In the Solution, there will be mainly having following files.

> 1. Service file (Service1.svc)
> 2. Interface file (IService.cs).

Create A WCF Service In Visual Studio

> Inside Interface file, there is having one Method corresponding to each Method on the SVC file.
> On the Interface file, we can get the definition of methods only.
> In the Interface file, the Interface comes under [ServiceContract].
> Each Interface method comes under [OperationContract] as shown below.

Create A WCF Service In Visual Studio, Create A WCF Service, WCF Service, Create Service In Asp.Net, Create A WCF Service In Asp.Net MVC, WCF Service In Asp.Net MVC, Asp.Net, WCF, REST, MVC

> On the Service file (SVC file), we have to write down the logic of the method.
> Performing database operation or implementing business logic will be done on the SVC file.

Create A WCF Service In Visual Studio

> In the above example, GetData would return a string value.
> The defintion of methods on SVC file will be same as in Interface file.
> Defintion means Input, Output and Method Name under [OperationContract] on the Interface file.

Compile And Run A WCF Service

> Set WCF project as Set As Start Project.
> For Running the WCF Service, just set the SVC file as Set As Start Page.
> Then click DEBUG --> Start Debugging.

Create A WCF Service In Visual Studio, Create A WCF Service, WCF Service, Create Service In Asp.Net, Create A WCF Service In Asp.Net MVC, WCF Service In Asp.Net MVC, Asp.Net, WCF, REST, MVC

> This will open WCF Test Client.
> There just double click on the GetData method to test the Service.
> Here we have given the Input as 1 and the output obtained is "You entered 1".
> By this way we can create and test WCF Service in Visual Studio.

Watch Video of this Content on Video Streaming


Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Technomark.in

Book Train Tickets on IRCTC Quickly During Tatkal Period

Technomark.in

Before You Copy Any Image From Internet

View All

Privacy StatementDisclaimerSitemap