Web API x Webservices

Asked

Viewed 2,136 times

9

Web API was created to better replace a Webservice? If not, what is the exact difference between the two and when to use one or the other?

2 answers

9

No, Webapi is to create web services. He uses a technique Restful to communicate interaction points. Web service is a general technique, Webapi is a specific technology from Microsoft to handle web services. When you use Webapi you are making one web service, then there is no dichotomy between them.

In the .NET Core it is not even a separate technology from MVC (see more in some questions like that one, that one and that one).

  • @bigdown, I didn’t understand, the Webapi was not created to replace Webservice, but to create Webservices, Although it is only a Microsoft technology, for those who only handle it, it is more feasible to create a Webapi than a certain Webservice ?

  • What would a Webservice be different from a web service? There is a link to it?

7


Take a look at these sites, they make a very interesting comparison about the difference between the web service models that we have.

https://codigosimples.net/2016/02/25/differenca-entre-wcf-wcf-rest-web-api-e-web-service/

http://netcoders.com.br/wcf-web-api-estudo-comparativo/

In my opinion, I consider that a Webapi is also a type of Webservices but based on Rest.

The Webapi Rest scenario is simpler to implement and if you want to make it available to a wide variety of customers (mobile, website, etc.) this is the most practical solution in my view!

  • While this link may answer the question, it is best to include the essential parts of the answer here and provide the link for reference. Replies per link only can be invalidated if the page with the link is changed. - Of Revision

  • Truth @Renan was afraid to copy the answer from other sites because of rights, you see no problems?

  • Quoting an excerpt from a page does not violate copyright by the laws of Brazil, Europe and the countries of North America, so I think you are well covered by law. Just don’t forget to link the source.

  • Thanks @Renan thanks so much for the tips ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.