ArcGIS API for JavaScript: Base/BaseLayerQueryService (MapServer)
Built using the ArcGIS API for JavaScript