How to retrieve Drawing info data and renderer values of a layer in a map service

Discussion created by AttentiDev on Apr 9, 2013
Latest reply on Apr 9, 2013 by evtguy

I need to build a table of content from POI layer resides in a map service.
The categories for drawing the layer are defined in the 'drawing info' section in the layer properties of the rest service.
Unfortunately I didn't find any way to retrieve that data through the java script API

(I am using java script API version 2.5, ArcGIS server version 10.1, ArcSDE 10.1)
I will appreciate any assistance.