Allscripts interview question

Explain REST/SOAP services