| Difference between WCF vs Web API
Below are the 7 main difference between WCF and Web API
(1)WCF have option for Request-Reply, One-Way or duplex option while Web API is by default Request-Reply only.
(2)WCF doesnot support any MVC features on the other hand Web API supports MVC features.
(3)WCF stands for Windows Communication Foundation whereas API stands for Application Program Interface.
(4)WCF is mainly used for developing SOAP based services on the other hand Web API used for both SOAP base and RestFul services.
(5)WCF supports HTTP, Custom transport protocol and UDP while Web API supports only HTTP protocol.
(6)WCF supports message security, message queues, duplex communication, transaction whereas Web API does not support this.
(7)WCF offers Text, MTOM and Binary Encoding support on the other hand Web API supports the UTF-8 encoding format. | | |