Web Services - what is it?

What does a web service mean? I am not looking for a theoretical explanation, I am looking for something practical.

I thought that all I can call from an external client is a web service, so the underlying PHP that returns JSON data can be a web service.

But then I started reading about web services at W3Schools.org, and I got confused. If the PHP URL that returns the JSON data is a web service, why do I need to do SOAP, WDSL, etc. To create a web service. Isn't that an extra job?

Also, if SOAP is a way to send data back and forth, what about other types of transport?

What distinguishes a RESTful web service from a SOAP-based web service?

+4
source share
2 answers

When you talk about a web service, people usually misunderstand what this means, a web service is just a way of interacting between a and b that abstracts the use of local technology standards. The WSDL determines how the SOAP message is sent over the channel. REST uses JSON over HTTP, WSDL uses SOAP over HTTP.

The advantage of a web service is that, say, you are developing one piece of code in .net and you want to use JAVA to use that code. You can directly interact with the abstract layer and not know what technology was used to develop the code.

SOA is a set of design paradigms and standards that will tell you how to develop your services; in SOA, each service must comply with the principles listed below. WSDL is usually associated, but is not essential for a SOA solution. If you want to learn about SOA google "Thomas Erl SOA".

SOA Priorities

  • Standardized Service Contract
  • Service loose clutch
  • Service abstraction
  • Service reuse
  • Service autonomy
  • Statelessness service
  • Service discovery
  • Service Features
+8
source

This Q & A Restful vs Other Web Services gives a lot of light to what is a web server, as well as differences from SOAP and REST. Id recommends reading all the answers (many of them are very good).

0
source

Source: https://habr.com/ru/post/1489787/


All Articles