Examples of Web API, REST web services and SOA

Posted on 2016-08-20
Last Modified: 2016-08-21
I have been a .NET developer for many years and have done full stack on many jobs, so have written web services, made AJAX endpoints and may things. But I have a hard time recalling exactly what I may have done that could be described as Web API and RESTful web services.

Is that possible? What is Web API on a high level?
What part of this is Web API?

And I do not recall explicitly using Get/Put/Update/Delete so does that mean these web services were not REST? Do these correspond to the two types of attributes I have used on MVC, Get and Set?
GET - Get
PUT - Set

And I have done SOA services also, I think. What kinds of design issues would qualify a web service to be SOA?
Question by:newbieweb
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
LVL 81

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 125 total points
ID: 41763913
webapi2 uses JSON

Author Comment

ID: 41763919
So, when I use AJAX to pass JSON, this is consider Web API 2?
LVL 81

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 125 total points
ID: 41763975
when dealing with rest api's I normally use Windows Communication Framework (WCF)
Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

LVL 75

Accepted Solution

käµfm³d   👽 earned 250 total points
ID: 41764054
REST is an architectural style, not a technology. Web API is Microsoft's implementation of a framework that makes building RESTful services quicker and easier. BUT, you can certainly write a Web API service that is not truly RESTful. Just because a service uses HTTP and its verbs does not implicitly mean the service is RESTful. SOAP services use HTTP and verbs, but they are not RESTful services (typically).

SOA means "service-oriented architecture," but "service" does not automatically mean "web service." Most often, a service is a web service. A service simply performs some operation at the behest of the larger application.

when dealing with rest api's I normally use Windows Communication Framework (WCF)
*Blech*  WCF is nice when it works, but when it fails, it fails hard. To each his own, I guess  ; )
LVL 12

Assisted Solution

funwithdotnet earned 125 total points
ID: 41764066
I thought this article was good at defining REST.

Author Closing Comment

ID: 41764290
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 41764463
webapi2 uses JSON
Just saw this bit again. Partially true. It uses JSON out of the box, but you can also use XML or any other media type formatter that you choose. I wrote one such formatter at the office that makes use of Protocol Buffers via Marc Gravell's protobuf-net. JSON, XML, Protocol Buffers, etc. are all just ways to represent data, and Web API makes representing data in various formats easy via the MediaTypeFormatters.

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question