how does the legend function read each layer service and return the attribute info

Discussion created by ngalford on Jul 12, 2012
Latest reply on Jul 13, 2012 by ngalford
I'm looking to recreate a function and the internal process of the service reading functionality is important to this. at what point does "legendLayers" parse the service information and how. if anyone has already done this I would be more than happy to share my newly finished legend control after this is completed.