SOAP has more bureaucracy than REST.
Basically the difference is that in SOAP, all data types have to be pre-defined in the interface contract - so the SOAP layer itself will already issue an error, if a list is sent where there should be a string (if SOAP has a list).
In REST, the payload can be any JSON - and eventually a check has to be done in the application itself for some of the data arriving in JSON, otherwise there will be a malfunction.
As a concrete example this happened in a project where I was: the front-end sent a list, where in the backend we expected a string, and this triggered an error in the view.
But note that if the project was being done with proper testing and documentation this would not have happened - and also that this particular mistake posed no safety risk at all.
In general, REST frameworks allow you to specify field validation - this is just not required. With the specified fields not the difference in safety or reliability of the application.
On the other hand, the weight of specifications of each view, and the redundant data in each payload SOAP, THEY MAKE IT A VERY BAD PROTOCOL TO WORK ON ALMOST ANY TOPIC. There are many other ways to validate data besides replicating the specification of payload everywhere using XML.
Define safe..
– Maniero
It is likely that the response you got has to do with the SOAP standard having a well-defined "schema" and each tag/attribute in XML having a function and the security implementation also taking place defined in the message. REST has the "body" of the free message without a mandatory "schema" and the way to authenticate/authorize depends more on the programmer than on the "Protocol" chosen.
– Pagotti
@bigown confidence, guarantee, stability... I think that was the context in which the company responded, at least that’s what gives the impression.
– Filipe Moraes
has a question for the OS on this subject, http://stackoverflow.com/questions/853620/secure-web-services-rest-over-https-vs-soap-ws-security-which-is-better
– Jeferson Almeida
There can be a lot of differences between REST and SOAP. But to say that SOAP is safer than REST is what is popularly called fib, talk-to-sleep or hairy lie. What can happen is to say that "it is easier to ensure safety with SOAP", what then may be true.
– Victor Stafusa
Perhaps the person who mentioned security was actually referring to character breaking, spacing, etc. It is very common for people to use the safe word to refer to possible losses by "truncating" something, which I think is a big mistake, because it confuses a lot, especially in IT.
– Guilherme Nascimento