ArcGIS API for JavaScript: CIVIX/RWSS_Layers_Publish (MapServer)

Built using the ArcGIS API for JavaScript