Question: what is difference between web api and wcf in c#?
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.