Skip To Content

Deploying the Export Network tool as a service

The Export Network tool enables external systems to synchronize with the Roads and Highways LRS Network to update routes, gaps, concurrences, and measure translations. The Export Network tool can be published to ArcGIS Server as a geoprocessing service, which allows it to be invoked as a REST web service.

To publish as a geoprocessing service, you must author a geoprocessing task using the Export Network geoprocessing tool. Follow the instructions listed in step 3 to deploy the Export Network geoprocessing tool.

Learn more about geoprocessing services

  1. Start ArcMap.
  2. Browse to My Toolboxes in the Catalog window.
  3. Create a toolbox and add the Export Network geoprocessing tool.
    1. Right-click My Toolboxes and click New > Toolbox.

      Creating a toolbox in ArcCatalog

      A new toolbox is created.

    2. Right-click your new toolbox and click Add > Tool.

      The Add Tool dialog box appears.

    3. Expand Location Referencing Tools and check Export Network.

      Adding the Export Network tool to your toolbox

  4. Double-click the Export Network geoprocessing tool.

    The Export Network dialog box appears.

    Export Network geoprocessing tool

    Do not change the geodatabase version in the .mxd file used to publish the service. This will cause the geoprocessing service to fail even though the service will publish successfully.

  5. Select the network layer to export from the Network Layer drop-down menu and specify a location for Output Export File.

    When you author a geoprocessing task, follow these guidelines:

    • Use a layer as an input to the Network Layer field.
    • Do not set the Last Invoked Time, LRS Time (optional), and Last LRS Time (optional) parameters for the result from which you are publishing. The date and time parameter values will become the default value in your service, preventing web service invocations from not providing a default value.

  6. Click OK.
  7. Once the geoprocessing tool has executed successfully, open the result in the Results window.

    This may take several minutes, as the entire network will be exported. This is required to ensure that the time parameters don't have default values.

  8. Right-click the result and click Share As > Geoprocessing Service. This will open a step-by-step wizard that defines the service and the initial task within the service.
  9. After you have successfully published the Export Network geoprocessing service to ArcGIS Server, you can access its REST endpoint through Server Manager.
    1. Open your ArcGIS REST Services Directory in a web browser.

      The URL is http://<server name>:6080/arcgis/rest/services.

    2. Browse to Services and select the Export Network GP Task to access its REST endpoint.