CGI interview question

How to consume SOAP/REST Webservices?