What is the difference between Webservice and WCF
Answer Posted / ashish
1 File Format/Extension :
i) ASP.net service - '.asmx'
ii) WCF service - '.svc'
2 Hosting :
i) ASP.net service - Can be hosted in IIS also can be hosted in a Windows Service.
ii) WCF service - Very flexible, can be hosted in IIS, Windows Activation Services(WAS), Managed Windows Services and It also supports Self-Hosting.
3 Transport Protocols/Binding :
i) ASP.net service - It supports HTTP & TCP protocols along with custom binding.
ii) WCF service - supports HTTP, WS-HTTP, TCP, Custom, Named Pipes, MSMQ & P2P(Point to Point) etc.
4 Data Transformation :
i) ASP.net service - XML serializer for Data Transformation.
ii) WCF service - DataContractSerializer for Data Transformation.
5 Serialization NameSpace :
i) ASP.net service - System.XML.Serialization
ii) WCF service - System.RunTime.Serialization
6 Supported Operations :
i) ASP.net service - only One-Way and Request-Response type.
ii) WCF service - Includes One-Way, Request-Response and Duplex.
7 Encoding :
i) ASP.net service - It uses following encoding mechanisms -
XML1.0, MTOM (Message Transmission Optimization Mechanism), DIME (Direct Internet Message Encapsulation)
ii) WCF service - It uses following encoding mechanisms -
XML1.0, MTOM, Binary
Read more differences here - http://www.csharptutorial.in/2012/01/cnet-difference-between-web-service-and.html
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is globalization and localization in asp net?
How you can add an event handler?
What are the authentication types in asp.net?
what is loosely coupled solution? How it can be used?
What is the use of data set in asp.net?
What is the difference between file-based dependency and key-based dependency?
What is http only cookie?
What are the steps to follow to host a web application on a web server?
What is difference between mvc and asp.net? : Asp.Net MVC
What do you mean by authentication?
Difference between singleton and singlecall.
What are demand-paging and pre-paging?
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
What is a ashx file?
How many languages are supported by .NET at present time?