Bumping this question as I am having the same issue. I am NOT looking to query an Image Service. I want to run an IdentifyTask on a raster layer in a DynamicMapService using a polygon as input. Is this possible? The code sample I am using returns only one record. I assume it is the first or last coordinate of the ring, but I really want to get an array of all the values in the raster.