ArcGIS API for JavaScript: Elements/ServiceConnection_OPs (FeatureServer)

Built using the ArcGIS API for JavaScript