What is SOAP technology?

Asked

Viewed 789 times

12

I’ve been following a project (a high school news site) where multiple languages (PHP to build the site where the news is posted and android, Ios, c#, where they will be accessed by the site developers as users) are used to make practically the same application, these languages are not compatible with each other, but need a service (common purpose), have a database with the same entities and all need to interact with this database.

There is a need to create a webservice, where all applications involved (written in different languages) can seek to interact with the database through a bridge rather than each one doing so directly in their own way.

How can this technology help? It is the only way to do this?

  • 2

    What project would this be? Give more information to help better.

  • 1

    No, there are currently more modern technologies like REST servers, where you can have an application server make the connection to the database and make methods available to clients. You should take a look at multilayer architectures, etc

  • @Artur_indio thanks guy , you could answer the question are exactly these methods I’m wanting ! I didn’t know the REST! Can you talk about how SOAP would do the same? What language you use, what methods are covered

1 answer

8


As mentioned above, there are other ways to do what you need using REST servers, an advantage of REST is that client layers can be developed in any programming language that has JSON support (Javascript Object Notation).

JSON has been widely used by web applications due to its ability to structure information in a much more compact way than the XML model, making the Parsing (analysis) of this information faster.

Generally speaking, the Web Services mentioned by vc came to allow applications developed in different languages, running on different platforms, to exchange data with each other in a transparent way. The communication protocol SOAP data is structured via XML.

But Web Services use SOAP over HTTP, that is, only HTTP is not sufficient to work with Web Services. SOAP encapsulates messages sent between client and server, resulting in more work and causing some slowness in the transmission of information.

A new paradigm that has become a viable alternative to SOAP and well used in multi-tier applications is REST (Representational State Transfer).

A Restful application - a term used to identify a system that follows the REST ideas - combines the use of the principles established by the REST technique as: a stateless client-server protocol (stateless), that is, each HTTP message contains all the information necessary to understand a request; and a well-defined set of operations that applies to all data processing resources.

The operations of a Restful application resemble the CRUD operations in traditional data persistence, they are: POST, GET, PUT and DELETE.

The implementation of all this depends on a lot of things, language, architecture, etc., this is just a general idea.

Good summaries here: https://www.devmedia.com.br/rest-tutorial/28912 https://www.devmedia.com.br/introducao-a-web-services-restful/37387

Browser other questions tagged

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