ArcGIS Server (Web applications)  

ArcGIS Server Custom Tool Command

Description

This sample takes the ags_simple sample and extends it with a custom command and tool. The command counts the features in the current view extent. The tool counts the features in a user dragged box.

This sample also demonstrates the use of the Value Objects and SOAP ports that are returned from the ADF.

Example Code

Code for this example is located in ArcGISInstall/java/samples/server/webadf.ags_custom_tool_command

Instructions

  1. Create and start an ArcGIS map service. You must create a service named 'usa' from the map configuration file at %ARCGISHOME%\java\samples\data\mxds\usa.mxd.
  2. Open a command window.
  3. Navigate to the folder containing the build.xml file.
  4. Type arcgisant build. Note: The location %ARCGISHOME%/java/tools/ant/bin should be in your system path.
  5. Provide response to the input prompt with relevant connection information
  6. An exploded web application and a WAR file for the sample will be created under the folder called build.
  7. You can either deploy this web application or import the WAR file directly into your IDE.
  8. Deploy the web application in any supported servlet engine or application server.
  9. After deployment access the sample by typing the URL (e.g. http://[host]:[port]/[samplename]) in a web browser. The default value for [samplename] is ags_custom_tool_command

Files

Products

Server

Platforms

Windows, Solaris, and Linux

Release

Since 9.2