I have a REST service which needs to export various cached image services for a given extent at a large size. I therefore cannot use the export REST call, but I'm going to have to do what the web mapping APIs do and read each tile, mosaicking them together. For this I can see that the format is http://mapservice-url/tile/level/row/column. The question is, how, given an extent, do I calculate the list of row/column combinations? In javascript this is done with esri.TileUtils.getCandidateTileInfo().
Is there anything I can use to achieve this in a REST service?