SOAP defines the overall XML message structure, including its envelope, header, and body components. It also specifies conventions for representing remote procedure calls and responses within the message. Consequently, both functions are essential parts of the SOAP specification, making other options incomplete.