Solved

Examples of Web API, REST web services and SOA

Posted on 2016-08-20
7
121 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 74

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 74

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

744 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

10 Experts available now in Live!

Get 1:1 Help Now