Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 571 Bytes

Questions.md

File metadata and controls

10 lines (9 loc) · 571 Bytes
  • What is the reason for choosing Web API over WCF?

    Click to see the answer
    • WCF also provides REST based API using WebHttpBinding, but Web API has more features.
    • WCF supports multiple protocols, while Web API supports http only.
    • Web API is suitable for clients with less bandwidth as it uses less bandwidth. This is not the case with WCF service.
    • Letter comparsion - WCF is like a letter inside an envelope while Web API is like a postcard. Here SOAP adds another layer (envelope).