Exporting the REST handler

By default, the services you create and deploy in ArcGIS Server Manager are available through Manager's internal Web server. This, however, is not a recommended production environment. By exporting the REST handler into a standard .war file, you can deploy this as an application to an ESRI-supported J2EE server. To do this, follow these steps:

  1. In Manager, go to the Services tab.
  2. Click the Configure Services Handler panel.
  3. Click the Export tab.
  4. In the drop-down box for Export Web Services, choose REST Service.
  5. Enter any name for the WAR file that will be created.
  6. Enter the URL for the ArcGIS Web services handler if it has been exported and deployed to an external application server. Leave this field blank to use the out-of-the-box ArcGIS Web services handler. It is recommended that you use an external, production-quality application server to host the ArcGIS Web services handler.
  7. Enter the credentials of a user who is a member of the ArcGIS Server administrators group. Click Test Connection to validate the connection information.
  8. If using a distributed installation of ArcGIS Server, specify additional GIS servers for failover or round robin as necessary. This step is optional.
  9. To secure access to the exported REST handler, configure the security options. This step is optional.
  10. Click Export.
  11. A file download window will appear. Click Save.
  12. In the file dialog box, choose All Files for the file type and browse to the location where you wish to export the WAR file.

You will now be able to deploy this WAR file to any standard J2EE server. After deployment, you can verify it by viewing the Services Directory for the newly deployed REST handler. For example, if the name of the WAR file or instance was rest, you could browse to the following URL:

http://yourserver:<port>/rest/services

This would open the Services Directory for the newly deployed REST handler. You can also verify the REST admin page by opening the following URL:

http://yourserver:<port>/rest/admin


11/18/2013