1.

Write the difference between WCF and Web Services

Answer»
WCFWeb Services
DataContractSerializer is used by WCF to determine which fields are serialized into XML.XMLSerializer is used by Web services that do not determine which fields are serialized into XML. 
HTTP, TCP, and MSMQ are other protocols supported by WCF that can be extended to provide a comprehensive solution, ENSURE transactions, and provide a reliable experience. HTTP and HTTPS during communication is the only protocol supported by Web services.
MTOM, XML, and BINARY message encoding are supported.XML and MTOM (Message Transmission Optimization Mechanism) message encoding is supported.  
Hosting options include IIS, Windows activation services, self-hosting, and Windows services. Hosting is only possible in IIS. 
Compared to Web Services, WCF is faster and more reliable.WCF is faster and more reliable than Web Services.
WCF services are defined by the ServiceContract and OperationContract attributes. Web services are defined by WEBSERVICE and WebMethod attributes.
RESTFUL SERVICE is supported, but with limitations. It is perfect for building RESTFUL services. 


Discussion

No Comment Found