Solved

Examples of Web API, REST web services and SOA

Posted on 2016-08-20
7
185 Views
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?
http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-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?
0
Comment
Question by:newbieweb
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 78

Assisted Solution

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

Author Comment

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

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)
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 75

Accepted Solution

by:
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  ; )
0
 
LVL 12

Assisted Solution

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

Author Closing Comment

by:newbieweb
ID: 41764290
thanks
0
 
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.
1

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now