Using the ElementTree Module to Generate SOAP Messages

The Simple Object Access Protocol (SOAP) is an XML-based protocol for “information exchange in distributed environments”. SOAP can be used in many different ways, but the most common approach is to use it for RPC requests over HTTP, where a client application sends a SOAP request message to a remote server, and the server returns a SOAP response message to the client.

In this article series, I’m going to use the ElementTree module to generate and process SOAP messages.