1.

Differences Between Wcf And Web Api?

Answer»

WCF : 

  1. WCF is a framework USED for build/develop service oriented applications. 
  2. WCF can be CONSUMED by clients which can understand XML. 
  3. WCF supports wide range of PROTOCOLS like HTTP, TCP, Named Pipes and more.
  4. For each method there has to be attributes like – “WebGet” and “WebInvoke”
  5. For REST service we need to use attribute “WebInvoke”.

Web API:

  1. Web API is a framework used to build/develop HTTP based services.
  2. Web API is an open source platform.
  3. It supports only HTTP protocol.
  4. Web API can be hosted in IIS or in application.
  5. UNLIKE WCF Rest we can use full features of HTTP in Web API
  6. This returns XML or JSON to client.

WCF : 

Web API:



Discussion

No Comment Found