SOAP is a web API protocol used to define the basic structure of the messages and methods of communication. In contrast, REST establishes communication between the client and the server.