I have to create a web map application with webservices (WMS or WFS).
I use the API for JavaScript of ESRI (4.0) and MapImageLayers for my data. But I didn't find how to add popups (or "popupTemplate"= to a MapImageLayer.
I use this sample for my code (https://developers.arcgis.com/javascript/latest/sample-code/sandbox/sandbox.html?sample=layers-mapimagelayer-sublayers)