This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer.
See the getfeatureinfo-image.js source to see how this is done.