ArcGIS API for JavaScript: GPServices/MakeXYEventLayer (MapServer)

Built using the ArcGIS API for JavaScript