ArcGIS API for JavaScript: EOC/EOC_RESPONSE_LAYERS (MapServer)

Built using the ArcGIS API for JavaScript