I'm new to WMS layers, and am looking for a way to retrieve a layer's attributes when clicking on the map, using the ArcGIS Server JS API.
The documentation is a bit sparse, but from this question it appears that I'll need to construct a query using GetFeatureInfo.
Before I re-invent the wheel, has anyone written a wrapper function or sample code which builds the appropriate query when the user clicks on the map?