ASMX ? Web service class inheritance for ASMX is called Web Service ? In ASMX, Web service class attribute is called as Web Service Attribute. ? In ASMX, Web service method attribute is called as Web Method Attribute. ? In ASMX, Data class attribute is called as XmlRootAttribute ? In ASMX, Data class field attribute is called as XmlElementAttribute ? In ASMX, HTTP endpoint resource is called as .ASMX ? In ASMX, Serialization attribute is called as XMLSerializer attribute. SVC ? There is no Web service class inheritance for SVC. ? In SVC, Web service class attribute is called as Service Contract Attribute. ? In SVC, Web service method attribute is called as Operation Contract Attribute. ? In SVC, Data class attribute is called as Data Contract Attribute. ? In SVC, Data class field attribute is called as Data Member Attribute. ? In SVC, HTTP endpoint resource is called as .SVC ? In SVC, Serialization attribute is called as Data Contract Serialize attribute.
The basic differences between WCF and ASMX services:- 1) ASMX services only support HTTP protocols where in WCF services supports other protocols like TCP, Namedpipes, MSMQ etc. 2) ASMX services have less security than WCF services. 3) ASMX services can be hosted in IIS only where in WCF services can be hosted in multiple ways e.g. Self Hosting, IIS Hosting , Hosting in Windows service, WAS Hosting. 4) ASMX uses XMLSerializer where in WCF uses DataContractSerializer which is faster than XMLSerializer. 5) The purpose of ASMX services is to send and receive data using SOAP over HTTP protocol. However, WCF services can send and receive data using any format over different protocols like HTTP, HTTPS, TCP, MSMQ etc.