URL " http:// <server>/ArcGIS/rest/service/GPTask/MapServer/jobs/<jobid>" not found
Hi I am Using ArcGIS Server 10.03 SP3. I created a geoprocessing service in the server which returns a result map service. I successfully created the gp service and map service with same name. I need to display the result in my application using ArcGIS Javascript API v3.3. The logic works like the sample application http://developers.arcgis.com/en/javascript/samples/gp_resultmapservice/
I tested the gp service in the REST Web interface and successfully executed.The result map is obtaining after completion of the task.
But when I use it in the JS API (ver. 3.3) front end , the fire bug tool shows success execution of the gp task , but when it executes
map.addLayer(gpLayer);
the response shows
dojo.io.script.jsonp_dojoIoScript9._jsonpCallback({"currentVersion":10.03,"error":{"code":400,"message":"Unable to complete operation.","details":["Invalid URL"]}});
When I tried the url http:// <mygisServer>/ArcGIS/rest/service/GPTask/MapServer/jobs/<jobid>
The page not found error shows.
When I changed the code with
gp.getResultImageLayer(jobinfo.jobId, "output", imageParameters, function (gpLayer) { map.addLayer(gpLayer) });
I got the result .
Can anybody help to find the exact reason? I need to include the service via ArcGISDynamicMapServiceLayer
I find out the issue. The above program is only work with ArcGIS 10.1 Server ,I think if I upgrade my 10.03 version server with 10.1 this feature will work
I find out the issue. The above program is only work with ArcGIS 10.1 Server ,I think if I upgrade my 10.03 version server with 10.1 this feature will work