Creating getMessage DefinedService