We are in the process of moving this xApp writing guide to https://docs.o-ran-sc.org.
Please refer to App Writing Guide for latest guide.
For message types, see https://rancodev.atlassian.net/wiki/spaces/RICPLT/pages/60784719/RIC+message+types