Vertex Interview Question

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