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