Difference between WCF and Web API

Difference between WCF and Web API

What is WCF?

WCF stands for Windows Communication Foundation. It is used to create a distributed and interoperable Applications. WCF is an effective platform for developing service-oriented applications. It allows developers to create secure, reliable, and high profile development solutions which can be integrated across platforms and interoperate with existing investments.

What is Web API?

ASP.NET Web API is a framework which allows you to build HTTP services for browsers and mobile devices. It is an ideal platform for developing RESTful applications on the ASP .NET Framework.


Why use WCF?

Here, are pros/benefits of using WCF:

  • WCF is an ideal option if you are planning to use .NET Framework 3.5.
  • WCF support multiple protocols such as HTTP, TCP, Named pipe.
  • WCF service is useful if you want to build service with standards like Transactions Messaging security and Reliable Message Security.
  • You can use Request-Reply, One Way, and Duplex message exchange patterns with WCF.

Why used Web API?

  • Web API provides supports for convention-based CRUD Actions since it works with HTTP verbs ( GET, PUT, POST, and DELETE)
  • It is easy to define, expose, and consume in a REST-ful way.
  • ASP.Net Web API allows you to showcase your data and services to various devices.
  • Web API is open source, so it is an ideal option for creating RESTful services over the .NET platform.
  • Allows you scalable, decoupled development of a Web Service which can be shared and used by other developers to access web services.
  • It is also helpful to build simple, non-SOAP-based HTTP Services.

Characteristics of WCF

  • Highly configurable transports
  • Better options for serialization
  • Well-integrated with IIS
  • Easy for self-hosting
  • Very rich metadata
  • Complex model for publication
  • Rich data contracts

Characteristics of Web API

  • Tightly coupled to HTTP
  • Easy to test
  • Offers support for content negotiation
  • Allows open-ended formatting
  • No reliance on a platform
  • Solid resource-orientation
  • Level 2 experience with nascent hypermedia support




要查看或添加评论,请登录

Ankita Sharda的更多文章

  • C# Developer

    C# Developer

    1. Advantages of C# over Java I have found some interesting advantages of C# over Java and for that I have also won the…

  • Oracle

    Oracle

    Oracle SQL Developer is the Oracle Database IDE A free graphical user interface, Oracle SQL Developer allows database…

  • human resource management (HRM)

    human resource management (HRM)

    Human resource management (HRM) is the process of employing people, training them, compensating them, developing…

  • What Are PHP Developers?

    What Are PHP Developers?

    PHP developers develop programs, applications, and web sites using the dynamic scripting language PHP. PHP is known for…

  • What is React?

    What is React?

    React.js is an open-source JavaScript library that is used for building user interfaces specifically for single-page…

  • What is SAP?

    What is SAP?

    SAP stands for Systems Applications and Products in Data Processing. SAP, by definition, is also the name of the ERP…

  • C# developers

    C# developers

    C# C# is a simple & powerful object-oriented programming language developed by Microsoft. C# can be used to create…

  • What does a C++ Developer do?

    What does a C++ Developer do?

    C++ is one of the most popular programming languages in the world. It is widely used across the globe in a variety of…

  • PeopleSoft

    PeopleSoft

    Top products PeopleSoft Selective Adoption 9.2 allows users to decide which updates they want and when they want them…

  • What is Manpower Planning?

    What is Manpower Planning?

    What is Manpower Planning – Introduction Though the organisation of men for managing a purpose is an age-old thing, the…

社区洞察

其他会员也浏览了