The message type is the name of the package plus the name of the file. For example if your package name is my_pkg_msgs and the file where you defined the message is MyMsg.msg, then the message type is my_pkg_msgs.MyMsg.