Here, you can find some differences between WCF and Webservices.
For serialization in a web service, we use System.Xml.serialization namespace.
WCF uses the System.Runtime.Serialization namespace for serialization.
For serialization in a web service, we use System.Xml.serialization namespace.
WCF uses the System.Runtime.Serialization namespace for serialization.
In a web service, we need to add the [WebService] attribute to the class.
In WCF, we need to add the [ServiceContract] attribute to the class for defining the contracts.
We can host a web service in IIS.
We can host WCF in IIS, WAS (Windows Activation Service), self-hosting and a Windows Service.
In WCF, we need to add the [ServiceContract] attribute to the class for defining the contracts.
We can host a web service in IIS.
We can host WCF in IIS, WAS (Windows Activation Service), self-hosting and a Windows Service.
Add the [WebMethod] attribute to the method in a web service.
Add the [OperationContract] attribute to the method in WCF.
Add the [OperationContract] attribute to the method in WCF.
No comments:
Post a Comment