We have been unsuccessful at getting this to fire for a wms layer. Putting an alert in the function passed to esri.setRequestPreCallback never fires when adding the WMS Layer but we can verify that it fires for other layers including a KML layer.I don't believe it has anything to do with the creation of the wms layer but below is the code:var wmsLayerInfo = new esri.layers.WMSLayerInfo({name:"cbntn:cbntn_indicators",title:"WMS Layer"});
var info = {
layerInfos: [wmsLayerInfo],
extent: chesMap.map.extent
};
var wms = new esri.layers.WMSLayer(url,{
resourceInfo: info,
visibleLayers: ["cbntn:cbntn_indicators"],
id: ''+chesMap.tempModel.getLabel(chesMap.tempItem)
});