Are you trying to describe how SSL works, or is it really some framework specific protocol invented in order to decrease interoperability? Your description is not very clear, but I've got an impression that it is SOAP over SSL/TLS. Have a look onto SOAP::Lite.