|
Answer» WCF: It is a framework used for DEVELOPING SOAP (Service Oriented Applications PROTOCOLS). It also supports various transport protocols as given above. ASP.NET Web API: It is a framework used for developing non-SOAP-based services. It is limited to HTTP-based services.
No, it's not true that ASP.NET Web API has replaced WCF. WCF was generally DEVELOPED to DEVELOP SOAP-based services. ASP.NET Web API is a new way to develop non-SOAP-based services such as XML, JSON, etc. WCF is still considered a better choice if one has their service using HTTP as the transport and they want to move to some other transport LIKE TCP, NetTCP, MSMQ, etc. WCF also allows one-way communication or duplex communication.
|