<div>SOAP API: It has been preferred for services within the enterprise. It supports data in the form of XML only. It requires WSDL for integration.</div>Rest API: It has been preferred for services that are exposed as public APIs.It supports both XML and JSON format and also preferred for mobile and web apps since JSON being Lighter the app runs smoother and faster