Do I need ArcGIS Server 10 in order to use the method getAllDetails() on an ArcGISDynamicMapServiceLayer? In the function below I always end up in allDetailsFault. The "URL" is correct.
I work with AGS 9.3.1 and the 2.0 flex API, and the beta flex viewer.
private function getLayerIDs():Array
{
var array:Array = new Array;
var agdynLayer:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(URL)
agdynLayer.getAllDetails(new AsyncResponder(allDetailsResult, allDetailsFault));
function allDetailsResult(event:AllDetails):void
{
//loop trough checkboxes and match with layerdetail.name and push layerdetail.id to array
}
function allDetailsFault( info : Object, token : Object = null ):void
{
//This is where I end up
}
return array;
}
Thanks
/Karl Magnusson
municipality of Växjö