This document will help you understand how to set up your XML message template inside of Tourplan as well as how to generate the Itinerary message code out of Tourplan.