Question: what is the difference between wcf service and web api?
Answer: WCF is used for developing SOAP-based services whereas Web API is used for both SOAP-based and RESTful services. ... WCF supports HTTP, UDP, and custom transport protocol whereas Web API supports only HTTP protocol. WCF offers Text, MTOM, and Binary Encoding support whereas Web API supports the UTF-8 encoding format.