Capgemini interview question

How does a SOAP webservice works