Create a RESTful WCF Service 1. Open Visual Studio, click File > New > Project 2. S elect WCF Service Library template under Visual C# > WCF templates 3. Change the name to StudentServiceLibrary and click OK 4. Visual studio will add reference to System.ServiceModel, System.Runtime.Serialization and will add some files with sample code. 5. Delete IService1.cs and Service1.cs 6. Add reference to System.ServiceModel.Web 7. Add a new class called StudentService Adding Data Contract 8. Open StudentService.cs file that you created and add the following code using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; 9. Add the following code in the StudentService.cs class namespace StudentServiceLibrary { [ DataContract ] ...
Education for everyone!