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.
|
Blog: Provides a list of Dotnet FAQS which are of Difference between kind.
Blog Category: Content Aggregation
Total Posts: 255
Total Questions & Answers: 380
Source: Websites, blogs, forums, ebooks,books and other references
Note: The information provided in this blog may contain typos
3.11.2014
Difference between WCF and ASP.NET Web API
Subscribe to:
Post Comments (Atom)
Thanks for your encouraging comments.Please let me communicate the information you want to post in my blog to my email - umarali981@gmail.com.
ReplyDeleteso nice article and useful to Dot Net learners. we are also providing Dot NEt online training our Cubtraining global leader in providing in Dot Net course.
ReplyDeleteThanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing. Android Training in chennai | Android Training chennai | Android course in chennai | Android course chennai
ReplyDeleteGreat Article..
ReplyDeleteWeb API 2.2 Training
Online Web-API 2.2 Training
Online Web-API Training from India
Web-API Training in Chennai
this is really too useful and have more ideas from yours. keep sharing many techniques. eagerly waiting for your new blog and useful information. keep doing more.
ReplyDeletedot net training in chennai
Dot Net Training in Chennai
ReplyDeleteMicrosoft Dot Net Training in Chennai
BestDotNetTraining is an MS.NET portal providing high end quality online training courses. We have all topics of MS.NET like C#, ASP.NET, MVC, WPF, WCF etc covered in-depth. Our teaching methodology includes in-depth theory on every topic which prepares you for interview and followed by practical demonstration of the subject so that you can find doing project very easy. Our online training course are designed in such a way that any beginner can start and eventually grow as advanced developer.
Dot Net Training in Chennai
Microsoft Dot Net Training in Chennai
ReplyDeleteThis is excellent information. It is amazing and wonderful to visit your site.Thanks for sharng this information,this is useful to me...
Android Training in Chennai
Ios Training in Chennai
The blog is excellent. It is helpful for me. Thanks for sharing article. android training in chennai
ReplyDeleteThanks for sharing a good article....it is very nice and informative blog.
ReplyDeleteDot Net Online Training Hyderabad
This comment has been removed by the author.
ReplyDeleteYour new valuable key points imply much a person like me and extremely more to my office workers. With thanks; from every one of us.
ReplyDeleteJava Training Institute Bangalore
I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
ReplyDeletegoogle-cloud-platform-training-in-chennai
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
ReplyDeleteHadoop Training Institute In chennai
amazon-web-services-training-institute-in-chennai
Ciitnoida provides Core and java training institute in noida. We have a team of experienced Java professionals who help our students learn Java with the help of Live Base Projects. The object-oriented, java training in noida , class-based build of Java has made it one of most popular programming languages and the demand of professionals with certification in Advance Java training is at an all-time high not just in India but foreign countries too.
ReplyDeleteBy helping our students understand the fundamentals and Advance concepts of Java, we prepare them for a successful programming career. With over 13 years of sound experience, we have successfully trained hundreds of students in Noida and have been able to turn ourselves into an institute for best Java training in Noida.
java training institute in noida
java training in noida
best java training institute in noida
java coaching in noida
java institute in noida
ReplyDeleteNice blog and absolutely outstanding. You can do something much better but i still say this perfect.Keep trying for the best.
Embedded training in chennai | Embedded training centre in chennai | Embedded system training in chennai | PLC Training institute in chennai | IEEE final year projects in chennai | VLSI training institute in chennai
Thanks a lot very much for the high your blog post quality and results-oriented help. I won’t think twice to endorse to anybody who wants and needs support about this area.
ReplyDeleteaws training in chennai
It is really amazing...thanks for sharing....provide more useful information...
ReplyDeleteEmbedded training in chennai | Embedded training centre in chennai | Embedded system training in chennai | PLC Training institute in chennai | IEEE final year projects in chennai | VLSI training institute in chennai
Hello, I read your blog occasionally, and I own a similar one, and I was just wondering if you get a lot of spam remarks? If so how do you stop it, any plugin or anything you can advise? I get so much lately it’s driving me insane, so any assistance is very much appreciated.
ReplyDeleteHadoop Training in Bangalore
Hadoop Training in Chennai
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
ReplyDeleteDevops Training in pune
Devops Training in Chennai
Devops Training in Bangalore
AWS Training in chennai
AWS Training in bangalore
Very good brief and this post helped me alot. Say thank you I searching for your facts. Thanks for sharing with us!
ReplyDeletepython training in chennai
python training in chennai
python training in Bangalore
Woah this blog is wonderful i like studying your posts. Keep up the great work! You understand, lots of persons are hunting around for this info, you could help them greatly.
ReplyDeletejava training in marathahalli | java training in btm layout
java training in jayanagar | java training in electronic city
Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
ReplyDeleteangularjs Training in btm
angularjs Training in electronic-city
angularjs online Training
angularjs Training in marathahalli
angularjs interview questions and answers
Superbbb blog!!! Thanks for sharing your knowledge with us.
ReplyDeleteSelenium training in Chennai
Selenium Courses in Chennai
best ios training in chennai
Digital Marketing Training in Chennai
JAVA J2EE Training Institutes in Chennai
Big Data Course in Chennai
Big Data Training Chennai
big data classes in chennai
The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea.
ReplyDeletehere by i also want to share this.
Java training in Chennai
Java training in Bangalore
Java online training
Java training in Pune
I greatly appreciate your blog writing,really it’s very pleasure journey and keep sharing this .
ReplyDeleteMobile phone display replacement | Mobile phone Water damage service | Mobile service center in chennai | Dell laptop service center in chennai | Tablet service center in chennai | Mobile phone glass replacement | Mobile phone display replacement
Awesome share, When i was read this blog i learnt lot of things & its truly have good stuff related to developing technology, Thank you so much for sharing this blog. Keep doing more blog like this.
ReplyDeleteDot Net Training in Chennai
Java Training Institute in Chennai
PHP Course in Chennai
Software Testing Training in Chennai
thanks for sharing this information
ReplyDeleteGoogle Cloud Training in Bangalore
Azure DevOps training in Bangalore
informatica Training in Bangalore
Blue Prism Training in Bangalore
MERN StackTraining in Bangalore
MEAN Stack Training in Bangalore
RPA Training in Bangalore
Qlikview Training in Bangalore
This comment has been removed by the author.
ReplyDeleteI wanted to build my career in IT. Hats-off to the trainers at the training centre. They provide complete assistance and always ready to guide.
ReplyDeletecore java training institutes in bangalore
core java training in bangalore
best core java training institutes in bangalore
core java training course content
core java training interview questions
core java training & placement in bangalore
core java training center in bangalore
"Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
"
Fantastic blog!!! Thanks for sharing with us, Waiting for your upcoming data.
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
Here is the site(bcomexamresult.in) where you get all Bcom Exam Results. This site helps to clear your all query.
ReplyDeleteUtkal University B.Com 2nd, 4th, 6th Sem Result 2020
BA 3rd year Result 2019-20
Sdsuv University B.COM 3rd/HONOURS Sem Exam Result 2018-2021
Nice Blog. We are making the Best Software training in bangalore.
ReplyDeleteCore Java training in bangalore
places to learn Core Java in bangalore
Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.
ReplyDelete.Net Online Training Hyderabad
Visit us: Dot Net Online Training
This is quite helpful, and I wish you will share more ideas. continue to share your many methods. forward anticipating your new blog and informative posts. Do more and more.
ReplyDeleteBest Juniour Colleges In Hyderabad For MEC