ArcGIS API for JavaScript: OnlinePublished (MapServer)

Built using the ArcGIS API for JavaScript