Vertex interview question

Explain in detail how to create and consume a REST or SOAP based WS