Message classes for message based communication in services