SOAP uses only XML for exchanging information in its message format whereas REST is not restricted to XML and its the choice of implementer which Media-Type to use like XML, JSON, Plain-text. Moreover, REST can use SOAP protocol but SOAP cannot use REST.
Read moreWhen should I use SOAP over REST?
Stateful operations. Performing repetitive, chained tasks such as the financial industry requires means that you may need to retain certain client data within the server for future use. By default, REST is stateless. RESTful apps will not save any previous transactions, but SOAP supports stateful operations .
Read moreWhat is difference between REST and SOAP?
Representational state transfer (REST) is a set of architectural principles. Simple object access protocol (SOAP) is an official protocol maintained by the World Wide Web Consortium (W3C). The main difference is that SOAP is a protocol while REST is not .8 Nis 2019
Read more