Processes messages to be sent via SOAP protocol