Chandu first WCF used to create service, which supports different protocols like HTTP , TCP , Named Pipes and MSMQ as transport protocol. So basically WCF used in ASP.Net to create services because WCF services supports HTTP protocol. So finally you can say WCF replaced Web Services.
If this is helpful for you then please accept my Answer.
As you know, there is a way already exist to achieve the same using ASMX (normal) webservices. There are lot of benefits given by WCF, that's why WCF has a bit more success over than Webservices. Please refer the below url for the benefit list :
WCF is a generic communication mechanism that allows you to setup generic client/host communication between two parties . In olden times we used to do this asmx web services but they are becoming obsolete and WCF is being widely used . WCF is quite powerful and it combines the features of plain old asmx web services, Remoting and MS Message Queuing .
So I would say WCF is not a replacement to web service but it is how we implement interprocess communication these days in ASP.NET
You may refer here for how to create a WCF service :
Sujeet SumanPosted Oct 16, 2015, 9:37 AM
Francis SusaimichaelPosted Oct 16, 2015, 8:15 AM
Priyaranjan K SPosted Oct 16, 2015, 8:04 AM