AnsweredAssumed Answered

submitJob / output file problems

Question asked by jay.gregory on Oct 12, 2012
Latest reply on Oct 16, 2012 by jay.gregory
Hi, I have a simple geoprocessing service exposed to REST on ArcGIS for Server 10.0 (I've attached the screenshot here). 
Using the JS API, I have a submitJob task that runs the geoprocessing tool (a lot of code was taken from this sample).  However, the result KMZ file doesn't seem to be in the directory that job info claims.  I modified the downloadfile function to
function downloadFile(outputFile){         console.log("downloading");   map.graphics.clear();   console.log(outputFile);         var theurl = outputFile.value.url;           //window.location = theurl;       }
.
The outputFile.value.url is http://myservername/arcgisjobs/airportsexport2_gpserver/j154fac0763164443b0ad3456c4b4220f/scratch/results.kmz, but when I navigate to that directory on the server, there is no results.kmz file there. 
Is something wrong with my model?  Where is the KMZ file?

On a somewhat related note, is this the best way to generate a KMZ from a user defined polygon?  I know I can query the REST entpoint directly, but I'm unsure how to do that without directly making a GET or POST AJAX request in Javascript?  But mostly, where is that KMZ file?

Thanks for your help....

Jay
[ATTACH=CONFIG]18396[/ATTACH]

Attachments

Outcomes