nqazi

Toolbox as geoprocessing service

Discussion created by nqazi on Oct 3, 2012
Latest reply on Oct 4, 2012 by nqazi
I have created a toolbox using a Model builder and than using ARCGIS server Manager published this on the server as geoprocessing service. the URL of the service is :
http://na-lap-3z8/ArcGIS_server/services/Toolboxes_Lesson1/GPServer

Now I wish to access this service using the python. I used following code:
arcpy.ImportToolbox("http://na-lap-3z8/ArcGIS_server/rest/services;Toolboxes_Lesson1","abc")

however i received the following error:
Runtime error <type 'exceptions.ValueError'>: Error opening Toolbox.

The folder where this toolbox is shared and can be seen from the ARCGIS manager. Any clue what is wrong in my code or what should i do to access this GP service.
Regards
Nadeem

Outcomes