How to let ArcGIS Server see relationship classes defined in a geodatabase

Discussion created by stevel on Sep 26, 2011
Latest reply on Nov 13, 2016 by stevel
I have an ArcSDE geodatabase which contains multiple relationship classes.

If I add this layer to ArcMap, the relationship is automatically detected (eg, the Identify dialog allows me to view the related features).

However, if I publish this map document to ArcGIS Server, the REST endpoints for the layer don't show the relationship classes.

This sample REST directory does show the related data. How has this been set up?