Summary
These instructions for disabling the spatialdirect.pl Perl file are for a default Data Delivery Extension 9.1 installation. This should also be enough information to make the changes for any distributed configuration as well.
Procedure
Common variables:
<DDE> : refers to the DDE root installation directory
<ArcIMS> : refers to the ArcIMS web content root directory
<mapName> : refers to the directory name for a specific map within the <ArcIMS>/Website directory
<WebServerDocRoot> : refers to the document root directory for your web server
<hostname> : refers to the web server or servlet engine host/address for your website
<servletEnginePort> : refers to the port on which the servlet engine is listening for requests
- Edit the DDE Translation Servlet properties. For a default DDE installation, using the supplied Tomcat servlet engine. These will be defined in the file: <DDE>\tomcat\webapps\servlet\WEB-INF\web.xml. If the default is not being used, then determine where/how these properties are defined for the servlet engine. Find the servletURL param and change its value from:
Code:
http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl
to:
Code:
http://<hostname>:<servletEnginePort>/servlet/translationServlet
- For each ArcIMS website that has been integrated with the DDE, edit <ArcIMS>\Website\<mapName>\FME\fmeDownload.htm. Find and change the following line from:
Code:
<form name="FMEDownload" action="/cgi-bin/DDE/spatialDirect.pl" method="post" onSubmit="return validateForm(this)">
to:
Code:
<form name="FMEDownload" action="http://<hostname>:<servletEnginePort>/servlet/translationServlet" method="post" onSubmit="return validateForm(this)">
- Edit <WebServerDocRoot>\safeViewerHTML\javascript\spatialDirectHeader.js. Find and change the following line from:
Code:
var servletURL="http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl";
to:
Code:
var servletURL="http://<hostname>:<servletEnginePort>/servlet/translationServlet";
- Edit <WebServerDocRoot>\safeViewerHTML\javascript\translationSuccessBody.js. Find and change the following line from:
Code:
var servletURL="http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl";
to:
Code:
var servletURL="http://<hostname>:<servletEnginePort>/servlet/translationServlet";
- Edit <WebServerDocRoot>\safeViewerHTML\javascript\translationFailureBody.js. Find and change the following line from:
Code:
var servletURL="http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl";
to:
Code:
var servletURL="http://<hostname>:<servletEnginePort>/servlet/translationServlet";
- Edit <WebServerDocRoot>\safeViewerHTML\login.html. Find and change the following line from:
Code:
<FORM METHOD="POST" ACTION="http://<hostname>:80/cgi-bin/DDE/spatialDirect.pl">
to:
Code:
<FORM METHOD="POST" ACTION="http://<hostname>:<servletEnginePort>/servlet/translationServlet">
- Once all updates have been made, save the changes, stop and restart DDE.
- To ensure that the spatialDirect.pl script is no longer being referenced, rename or delete it from its current location:
Code:
<WebServerRoot>/cgi-bin/DDE/spatialDirect.pl
- Clear the browser cache before loading the ArcIMS web map page to ensure that it loads the correct reference in the fmeDownload.htm page.