Description:
WCF is more popular now a days and for beginners, I will explain you step by step to create wcf service in asp.net c# with example following below:
WCF is more popular now a days and for beginners, I will explain you step by step to create wcf service in asp.net c# with example following below:
- Open Visual Studio and select File => New => Project => WCF Service Application.
- Now appear IService1.cs and Service1.svc page in solution explorer.
- You can remove the default methods and class.
- First of all create a class and its properties in IService1.cs page like below.
[DataContract]
public class Country
{
[DataMember]
public int ID { get; set; }
[DataMember]
public string CountryName { get; set; }
}
}