REST and SOAP are two different approaches to communication between software applications.
REST APIs typically use HTTP methods such as GET, POST, PUT and DELETE. Data is often exchanged in JSON format.
SOAP web services operate using a formal messaging protocol and typically utilise XML. They are used, amongst other things, in existing enterprise environments.
Which method is most suitable depends on the available interfaces, the technical architecture and the requirements of the applications.
In the case of Exact integrations, both technologies may be relevant. It is therefore important to consult the documentation for the specific Exact product.