You can choose Loaction as HTTP , File or FTP
Here I am using HTTP .
Here I am using HTTP .
Replace Service.cs content with the below
using System;
using System.Runtime.Serialization;
using System.ServiceModel;
[ServiceContract]
public class Employee
{
[OperationContract]
public string GetName()
{
return string.Format("TECH-UPDATE");
}
}
Replace Service.svc content with the below
<%@ ServiceHost Language="C#" Debug="true" Service="Employee" CodeBehind="~/App_Code/Service.cs" %>
Replace web.config System.ServiceModel Tag with this
Open Browser type http://machinename(localhost)/wcf/service.svc in the Address bar