SlideShare a Scribd company logo
S.No WCF ASP.NET Web API
1 What is WCF ?
WCF is Microsoft’s unified programming
model for building service-oriented
applications. It enables developers to build
secure, reliable, transacted solutions that
integrate across platforms and interoperate
with existing investments.
What is ASP.NET Web API ?
ASP.NET Web API is a framework that
makes it easy to build HTTP services that
reach a broad range of clients, including
browsers and mobile devices. ASP.NET Web
API is an ideal platform for building RESTful
applications on the .NET Framework.
2 Protocol Support:
HTTP, TCP, UDP, and custom transports.
i.e., Enables building services that support
multiple transport protocols (HTTP, TCP,
UDP, and custom transports) and allows
switching between them.
Protocol Support:
HTTP only.
i.e, Provides first-class programming model
for HTTP.More suitable for access from
various browsers, mobile devices etc enabling
wide reach.
3 Message Exchange Patterns:
Request-Reply, One-Way & Duplex
Message Exchange Patterns:
By default Request-Reply only.But additional
message exchange patterns can be supported
through SignalR and WebSockets integration.
4 Hosting:
Self Hosting, IIS Hosting & Windows
Activation Service.
Hosting:
Self Hosting & IIS Hosting
5 Open Source or Licensed ?
It is not an open source .Ships with the
.NET framework. It can be consumed by
any client that understands xml.
Open Source or Licensed ?
Ships with .NET framework but is open-
source and is also available out-of-band as
independent download.
6 How to describe WCF services ?
WCF SOAP services can be described in
WSDL allowing automated tools to generate
client proxies even for services with
complex schemas.
How to describe ASP.NET Web API ?
There is a variety of ways to describe a Web
API ranging from auto-generated HTML help
page describing snippets to structured
metadata for OData integrated APIs.
7 Whether it supports MVC features ?
WCF does not support the MVC features
such as routing, controllers, action results,
filter etc.,
Whether it supports MVC features ?
ASP.NET Web API supports the MVC
features such as routing, controllers, action
results, filter, model binders, IOC container or
dependency injection, unit testing that makes
it more simple and robust.
8 Support for higher level protocols:
Supports building services with WS-*
standards like Reliable Messaging,
Transactions, Message Security.
Support for higher level protocols:
There is no support for higher level protocols
such as Reliable Messaging or Transactions.
ASP.NET Web API uses only basic protocol
and formats such as HTTP, WebSockets, SSL,
JQuery, JSON, and XML.
9 Encoding Support:
Text, MTOM, and Binary
Encoding Support:
Supports UTF-8 encoding format by
default .Also, we can add any format as a
MediaTypeFormatter.
i.e., Responses are formatted by Web API’s
MediaTypeFormatter into JSON, XML.
10 When to go for WCF ?
Choose WCF when we want to create a
service that should support special scenarios
such as one way messaging, message
queues, duplex communication etc.
Choose WCF when we want to create a
service that can use fast transport channels
when available, such as TCP, Named Pipes,
or may be even UDP (in WCF 4.5), and we
also want to support HTTP when all other
transport channels are unavailable.
When to go for ASP.NET Web API ?
Choose Web API when we want to create a
resource-oriented services over HTTP that
can use the full features of HTTP (like URIs,
request/response headers, caching,
versioning, various content formats).
Choose Web API when we want to expose our
service to a broad range of clients including
browsers, mobiles, iphone and tablets.
Reference:
http://onlydifferencefaqs.blogspot.in/2014/03/difference-between-wcf-and-aspnet-web.html

More Related Content

PDF
ASP.NET MVC difference between questions list 1
PDF
Difference between asp.net web api and asp.net mvc
PDF
Difference between asp.net web forms and asp.net mvc
PDF
Difference between asp.net mvc 3 and asp.net mvc 4
PPT
ASP.NET MVC Presentation
PPT
TDD with ASP.NET MVC 1.0
PPT
Introduction to ASP.NET MVC 1.0
PPTX
What's new in asp.net mvc 4
ASP.NET MVC difference between questions list 1
Difference between asp.net web api and asp.net mvc
Difference between asp.net web forms and asp.net mvc
Difference between asp.net mvc 3 and asp.net mvc 4
ASP.NET MVC Presentation
TDD with ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0
What's new in asp.net mvc 4

What's hot (20)

PPTX
Difference between MVC 3, 4, 5 and 6
PPTX
Asp.net c# MVC-5 Training-Day-1 of Day-9
PPT
Silver Light By Nyros Developer
PDF
Asp 1a-aspnetmvc
PDF
Mobile for Enterprise
PPTX
Asp.net MVC training session
PPT
MVC Architecture in ASP.Net By Nyros Developer
PPTX
Asp.net Overview and Controllers
PPTX
Head first asp.net mvc 2.0 rtt
PPTX
Combining HTML5 with MVC framework to simplify realtime collaboration for we...
PPTX
MVC & CodeIgniter
PPTX
Everything you need to know about mern stack programming
PPTX
Continuous workflow for a large react native app - mobile at wix
PPTX
ASP.NET MVC for Begineers
PPT
ColdFusion framework comparison
PPTX
Asp.net mvc 4
PDF
Basics of asp.net mvc
PPTX
Asp.net mvc presentation by Nitin Sawant
PPSX
Asp.net mvc
PPTX
ASP.NET MVC Presentation
Difference between MVC 3, 4, 5 and 6
Asp.net c# MVC-5 Training-Day-1 of Day-9
Silver Light By Nyros Developer
Asp 1a-aspnetmvc
Mobile for Enterprise
Asp.net MVC training session
MVC Architecture in ASP.Net By Nyros Developer
Asp.net Overview and Controllers
Head first asp.net mvc 2.0 rtt
Combining HTML5 with MVC framework to simplify realtime collaboration for we...
MVC & CodeIgniter
Everything you need to know about mern stack programming
Continuous workflow for a large react native app - mobile at wix
ASP.NET MVC for Begineers
ColdFusion framework comparison
Asp.net mvc 4
Basics of asp.net mvc
Asp.net mvc presentation by Nitin Sawant
Asp.net mvc
ASP.NET MVC Presentation
Ad

Viewers also liked (9)

PDF
Real World Dependency Injection - phpday
PPTX
Dapper performance
PPTX
Dependency injection in asp.net core
PPTX
Introduction the Repository Pattern
PDF
Repository and Unit Of Work Design Patterns
PPTX
Real World Asp.Net WebApi Applications
PPTX
ASP.NET Web API and HTTP Fundamentals
PPTX
Web API or WCF - An Architectural Comparison
PDF
The Top Skills That Can Get You Hired in 2017
Real World Dependency Injection - phpday
Dapper performance
Dependency injection in asp.net core
Introduction the Repository Pattern
Repository and Unit Of Work Design Patterns
Real World Asp.Net WebApi Applications
ASP.NET Web API and HTTP Fundamentals
Web API or WCF - An Architectural Comparison
The Top Skills That Can Get You Hired in 2017
Ad

Similar to Difference between wcf and asp.net web api (20)

PPT
PPT
Web Service Security
PPTX
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
PDF
WCF Interview Questions By Scholarhat PDF
PPT
Session 1: The SOAP Story
PDF
ASP.NET Web API Interview Questions By Scholarhat
DOC
WCF tutorial
PPTX
1. WCF Services - Exam 70-487
PPT
Net35 Overview
PPT
Service Oriented Development With Windows Communication Foundation 2003
PPT
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
PPTX
WCjffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
PPTX
Complete Architecture and Development Guide To Windows Communication Foundati...
PPT
Web services
PPTX
Web service, wcf, web api
PPT
.Net3.5 Overview
PPT
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
PPT
Enterprise Software Architecture
PPTX
WCF (Windows Communication Foundation)
Web Service Security
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
WCF Interview Questions By Scholarhat PDF
Session 1: The SOAP Story
ASP.NET Web API Interview Questions By Scholarhat
WCF tutorial
1. WCF Services - Exam 70-487
Net35 Overview
Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
WCjffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
Complete Architecture and Development Guide To Windows Communication Foundati...
Web services
Web service, wcf, web api
.Net3.5 Overview
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Enterprise Software Architecture
WCF (Windows Communication Foundation)

More from Umar Ali (20)

PDF
Difference between ActionResult() and ViewResult()
ODT
Link checkers 1
PDF
Affiliate Networks Sites-1
PDF
Technical Video Training Sites- 1
PDF
US News Sites- 1
PDF
How to create user friendly file hosting link sites
PDF
Weak hadiths in tamil
PDF
Bulughul Maram in tamil
PDF
Asp.net website usage and job trends
PDF
Indian news sites- 1
PDF
Photo sharing sites- 1
PDF
File hosting search engines
PDF
Ajax difference faqs compiled- 1
PDF
ADO.NET difference faqs compiled- 1
PDF
Dotnet differences compiled -1
PDF
.NET Differences List
PDF
Difference between ajax and silverlight
PDF
Difference between is and as operators in c#
PDF
Difference between c# generics and c++ templates
PDF
Var vs iEnumerable
Difference between ActionResult() and ViewResult()
Link checkers 1
Affiliate Networks Sites-1
Technical Video Training Sites- 1
US News Sites- 1
How to create user friendly file hosting link sites
Weak hadiths in tamil
Bulughul Maram in tamil
Asp.net website usage and job trends
Indian news sites- 1
Photo sharing sites- 1
File hosting search engines
Ajax difference faqs compiled- 1
ADO.NET difference faqs compiled- 1
Dotnet differences compiled -1
.NET Differences List
Difference between ajax and silverlight
Difference between is and as operators in c#
Difference between c# generics and c++ templates
Var vs iEnumerable

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Big Data Technologies - Introduction.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
KodekX | Application Modernization Development
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
MYSQL Presentation for SQL database connectivity
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
Modernizing your data center with Dell and AMD
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPT
Teaching material agriculture food technology
Review of recent advances in non-invasive hemoglobin estimation
madgavkar20181017ppt McKinsey Presentation.pdf
NewMind AI Monthly Chronicles - July 2025
Big Data Technologies - Introduction.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
KodekX | Application Modernization Development
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
MYSQL Presentation for SQL database connectivity
NewMind AI Weekly Chronicles - August'25 Week I
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
Modernizing your data center with Dell and AMD
“AI and Expert System Decision Support & Business Intelligence Systems”
Per capita expenditure prediction using model stacking based on satellite ima...
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Understanding_Digital_Forensics_Presentation.pptx
GamePlan Trading System Review: Professional Trader's Honest Take
The Rise and Fall of 3GPP – Time for a Sabbatical?
Teaching material agriculture food technology

Difference between wcf and asp.net web api

  • 1. S.No WCF ASP.NET Web API 1 What is WCF ? WCF is Microsoft’s unified programming model for building service-oriented applications. It enables developers to build secure, reliable, transacted solutions that integrate across platforms and interoperate with existing investments. What is ASP.NET Web API ? ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework. 2 Protocol Support: HTTP, TCP, UDP, and custom transports. i.e., Enables building services that support multiple transport protocols (HTTP, TCP, UDP, and custom transports) and allows switching between them. Protocol Support: HTTP only. i.e, Provides first-class programming model for HTTP.More suitable for access from various browsers, mobile devices etc enabling wide reach. 3 Message Exchange Patterns: Request-Reply, One-Way & Duplex Message Exchange Patterns: By default Request-Reply only.But additional message exchange patterns can be supported through SignalR and WebSockets integration. 4 Hosting: Self Hosting, IIS Hosting & Windows Activation Service. Hosting: Self Hosting & IIS Hosting 5 Open Source or Licensed ? It is not an open source .Ships with the .NET framework. It can be consumed by any client that understands xml. Open Source or Licensed ? Ships with .NET framework but is open- source and is also available out-of-band as independent download. 6 How to describe WCF services ? WCF SOAP services can be described in WSDL allowing automated tools to generate client proxies even for services with complex schemas. How to describe ASP.NET Web API ? There is a variety of ways to describe a Web API ranging from auto-generated HTML help page describing snippets to structured metadata for OData integrated APIs. 7 Whether it supports MVC features ? WCF does not support the MVC features such as routing, controllers, action results, filter etc., Whether it supports MVC features ? ASP.NET Web API supports the MVC features such as routing, controllers, action results, filter, model binders, IOC container or dependency injection, unit testing that makes it more simple and robust. 8 Support for higher level protocols: Supports building services with WS-* standards like Reliable Messaging, Transactions, Message Security. Support for higher level protocols: There is no support for higher level protocols such as Reliable Messaging or Transactions. ASP.NET Web API uses only basic protocol and formats such as HTTP, WebSockets, SSL, JQuery, JSON, and XML. 9 Encoding Support: Text, MTOM, and Binary Encoding Support: Supports UTF-8 encoding format by default .Also, we can add any format as a
  • 2. MediaTypeFormatter. i.e., Responses are formatted by Web API’s MediaTypeFormatter into JSON, XML. 10 When to go for WCF ? Choose WCF when we want to create a service that should support special scenarios such as one way messaging, message queues, duplex communication etc. Choose WCF when we want to create a service that can use fast transport channels when available, such as TCP, Named Pipes, or may be even UDP (in WCF 4.5), and we also want to support HTTP when all other transport channels are unavailable. When to go for ASP.NET Web API ? Choose Web API when we want to create a resource-oriented services over HTTP that can use the full features of HTTP (like URIs, request/response headers, caching, versioning, various content formats). Choose Web API when we want to expose our service to a broad range of clients including browsers, mobiles, iphone and tablets. Reference: http://onlydifferencefaqs.blogspot.in/2014/03/difference-between-wcf-and-aspnet-web.html