Experis interview question

Diff between rest vs soap? when to use what?