Service Layer Indices

Discussion created by rlwatson on Feb 25, 2010
Latest reply on Feb 26, 2010 by khutchins-esristaff
I have a feature service and understand that using the Services Directory I can get the URL of any layer in the service.  The URLs to the layers all have a suffix which is a integer index.  What I noticed is that this index seems to change from time to time.  I am not sure what triggers the change as I have been editing the underlying map document and stopping and starting the service.  I certainly did not add, remove, or reorder layers.

The reason why this concerns me is that the samples all seem to use these indices in order to reference a layer.  Is this the correct approach or should I be doing something else?