Skip to main content

Posts

Showing posts with the label RSS

WCF Syndication RSS/Atom

1 Create a RESTful WCF Service  Open Visual Studio Select  File  >  New  >  Project Select  WCF Service Library  template under  Visual C# > WCF  templates Change the name to  ProductServiceLibrary  and click  OK Visual studio will add reference to System.ServiceModel, System.Runtime.Serialization and will add some files with sample code.  Delete IService1.cs and Service1.cs Add reference to System.ServiceModel.Web Add a new class called ProductService 1.1 Create the Data Contract  Open ProductService.cs file that you created. Add  using System.Runtime.Serialization; Add  using System.ServiceModel; Add  using System.ServiceModel.Web; Add  using using System.ServiceModel.Syndication; Add the following code in the ProductService.cs class      [DataContract]     public class ProductReview      {     ...