Configure application proxy

The proxy file allows the application to access services you author with geographic information from your organization. To configure the proxy to access your services, complete the following steps:

Add Service URLs

To configure the Water Access Locator application proxy, complete the following steps:

  1. Using Windows Explorer, browse to your <your directory>\Application\WaterAccessLocator\proxy folder and open proxy.config in Microsoft Notepad or another text editor.
  2. Enter the URL of each ArcGIS Services Directory referenced in your wter access locator map. Each URL must be enclosed in a set of serverURL tags. If default URLs are listed, ensure these URLs are not removed. All web traffic goes through the proxy and the default URLs are required by the application.
  3.         
               <serverUrl> url="http://yourserver/arcgis/rest/services/"></serverUrl>
            
         
  4. Save the file and exit.

Add and register an application with your ArcGIS Online organizational account (Optional)

This application can draw routes and provide directions using the World Route Service. To access this functionality, the application must be registered with an ArcGIS Online for organizations account.

These steps are not necessary if routing and directions will not be made available in your application. If routing has been disabled for your application, skip to the Publish Application topic.

To register your application, complete the following steps:

  1. Add the application to your ArcGIS Online for organizations account using the following parameters:
    • The item is: An Application and item type is Web Mapping
    • URL: Type the URL for you application
    • Purpose: Ready To Use
    • API: JavaScript
    • Title: Type the application title
    • Tags: Add the application tags
  2. Register your app using the following parameters:
    • App Type: Browser
    • Redirect URI: Type the fully qualified URI for your server and the web server port. This is usually port 80, not the port for ArcGIS for Server (port 6080), for example http://servername.domain:[80].
  3. Copy the App ID and App Secret values to a text file for use later in the configuration.

Add application registration to the proxy (Optional)

The proxy file allows the application to access the ArcGIS Online World Route Service. To configure the proxy to access routing services, complete the following steps:

  1. Using Windows Explorer, browse to <your web server directory>\WaterAccessLocator\proxy and open the proxy.config file in Microsoft Notepad or another text editor.
  2. Locate the routing service in the proxy.config file.
  3. Copy the App ID and App Secret values from the text file to the appropriate tags.
    App ID clientId="App ID"
    App Secret clientSecret="App Secret"
  4. Set the rateLimit and rateLimitPeriod values.
    Rate Limit rateLimit="50"
    Rate Limit Period (in minutes) rateLimitPeriod="10"
  5. Save the file and exit.
Top