I am working on a multi-step geoprocessing tool that I want to publish as a geoprocessing service. I am attempting to following the process from the ArcGIS Tutor data (see Select Data Section of Geoprocessing Services) where the first step is geocoding an address typed in by a user.
I built a model with just the geocode addresses tool. An address locator was built based on a street centerline layer that I have.
This tool works on a set of servers where UNC paths are used. I am attempting this same routine on a laptop set up as a web server so that I can teach this kind of process to some students.
I have mimicked the UNC path for the local machine by using \\127.0.0.1\<shared folder> where all of the data, the address locator, the scratch folder, and the MXD that contains the geocoding tool set up as a ToolLayer. The source street centerline shapefile and the address locator are in a folder called ToolData in the UNC path above.
The address to be entered by a user is set up as a Record Set and the output will be a point shapefile set up in the scratch workspace (i.e. the scratch folder in the above path).
Testing the actual model in ArcMap, works. Testing the model as a Tool Layer in ArcMap works. Publishing the MXD contining the toollayer as a geoprocessing service is successful, but testing the geoprocessing service in ArcMap did not work
I have the following set up:
1. Set the geoprocessing scratch workspace to the above path (\\127.0.0.1\<shared folder>\scratch) 2. Set the path in the actual address locator (before I built the address locator to \\127.0.0.1\<shared folder>\ToolData\street_centerline.shp) 3. Creating a "New" ArcGIS Server service I have the \\127.0.0.1\<shared folder>\MXD\ArcMap.MXD (the MXD with the tool layer in it) 4. All paths in the model input point to \\127.0.0.1\<shared folder>...
I have a feeling there is a permission problem when I attempt this on a stand alone server that I am testing on where the both the data reside, and ArcGIS Server 10 is installed. The geoprocessing service using the geocode addresses tool does work correctly on a "real" server environment using UNC paths, etc.
Any additional insight is appreciated....in my class room environment as well as my "testing" machine are not set up to hit a separate server for doing ArcGIS Server...my machine, plus each of the machines in the lab are set up as their own ArcGIS Server.