SOAP is a lightweight, XML-based messaging protocol used to encode the information in Web service request and response messages before sending them over a network. SOAP messages are independent of any operating system or protocol, and may be transported using a variety of Internet protocols such as SMTP, MIME, and HTTP.