The AspNetCompatibilityRequirements attribute indicate that the class will have access to ASP.NET platform features such as session state, file authorization and url authorization similar to an ASMX service.Each Web Service method needs to be decorated with the OperationContract attribute when adding it to the WCF class.Let's add a method called GetProduct that returns an instance of the Product c