Description:
This sample demonstrates how to use the ADF web controls with ArcIMS. It uses the map, overview and TOC webcontrols to work with an ArcIMS service.
The sample shows basic map operations like zooming and panning. The Java sample also shows how to geocode an address and display the results on a map with an ArcIMS service. The Java sample requires ArcIMS Java Connector libraries and .Net sample requires .Net Link libraries and access to an ArcIMS service.
|
Products:
Platforms: Windows, Solaris, LinuxMinimum ArcGIS Release: 9.0 |
How to use:
[CS]
- Design Time:
- Verify that the ArcIMS .Net Connector is installed and functioning properly on the development and deployment machines.
For information on installing and configuring this connector, consult the ArcIMS installation guide.
- Navigate to c:\inetpub\wwwroot.
- Create a folder called Accessing_ArcIMS_service.
- Inside this folder, create 2 new folders: VBNet and CSharp.
- Navigate to <install location>\DeveloperKit\samples\Server_Development and unzip Accessing_ArcIMS_serviceVBNet.zip or Accessing_ArcIMS_serviceCSharp.zip, depending on your language preference.
- Copy the contents of the uncompressed file to the appropriate VBNet or CSharp folder created previously.
- Open the IIS Manager from Control Panel > Administrative Tools > Internet Information Services.
- In the console tree view on the left, navigate to Local Computer > Web Sites > Default Web Site.
- Expand 'Default Web Site' and navigate to the Accessing_ArcIMS_service folder.
- To enable the C# version, select CSharp. For the VB.Net version, select VBNet.
- Right-click and choose Properties.
- On the Directory tab, click the Create button in the Application Settings section of this panel. Click OK to dismiss the Properties dialog.
- Launch Visual Studio .NET and open the Accessing_ArcIMS_service project file (MapView.vbproj or MapView.csproj) located at c:\inetpub\wwwroot\Accessing_ArcIMS_service.
- In the Solution Explorer, right-click Default.aspx and select 'Set As Start Page'.
- If using Visual Studio .Net, expand the References in the Solution Explorer.
Verify that the ESRI.ArcIMS.Server and ESRI.ArcIMS.Server.TCP references are available.
If they are not, right click on References and choose "Add Reference".
Under the .Net tab, click Browse. Navigate to the location where the ArcIMS .Net Connector is installed.
Use the Ctrl key and the mouse to select both the ESRI.ArcIMS.Server.dll and the ESRI.ArcIMS.Server.TCP.dll.
Click Open. In the Add reference dialog, verify that both .dlls were added to the reference list. Click OK.
- There is no need to set any of the map control properties. They will be dynamically populated at run-time.
- This sample defaults the ArcIMS application server port to 5300. If ArcIMS application server is using different port number make sure to edit the class files with right port number.
- Save the project.
- Click the "Debug" drop-down menu and choose "Start".
- Address any errors that might occur in the debugging process.
- Run Time:
- Browse to viewer's URL.
- Specify the host name of the ArcIMS Server to display Services from.
- Use the TOC to select the Image Service to display.
- You can navigate the image using the tools displayed in the ToolBar.
- To start over, enter a new ArcIMS Host.
[Java]
- Verify that the ArcIMS Java Connector is installed and functioning properly on the development and deployment machines. For information on installing and configuring this connector, consult the ArcIMS installation guide.
- Create a lib folder inside the sample's Java folder.
- Copy the ArcIMS Java Connector libraries arcims_jconnect.jar, jnet.jar, jcert.jar and jsse.jar from the Java Connector home location to the sample's lib folder.
- Open a command window.
- Navigate to the folder containing the build.xml file.
- Type, arcgisant build
Note: The location <ArcGIS_install_directory>/DeveloperKit/tools/ant/bin should be in your system path.
- Enter the name of a valid ArcIMS Server
- Enter the name of a valid ArcIMS Service
- Enter the name of an ArcIMS Service with a valid geocode index
- Deploy the arcims.war file created under the folder /dist to your application server.
- Run the application by typing the URL http://<webserver_host>/<application_name>/index.jsp
|
File
|
Description
|
| AssemblyInfo.vb |
Describes the assembly and specify versioning information. |
| Global.asax |
Contains code for responding to application-level events raised by ASP.NET or by HttpModules. |
| Global.asax.resx |
. |
| Global.asax.vb |
Code behind Global.asax. |
| Default.aspx |
User interface for displaying sample. |
| Default.aspx.resx |
. |
| Default.aspx.vb |
Code behind Default.aspx. |
| Web.config |
Application configuration files contain settings specific to this sample. |
| MapViewVB.vbproj |
The project file. |
| MapViewVB.vbproj.webinfo |
. |
| ArcIMSZoomIn.vb |
Class file containing zoom in code |
| AXLUtility.vb |
Class file containing code for handling ArcXML |
| Point.vb |
Class file containing point code |
| Service.vb |
Class file containing service code |
| Styles.css |
Style sheet being used by this sample. |
|
File
|
Description
|
| AssemblyInfo.cs |
Describes the assembly and specify versioning information. |
| Global.asax |
Contains code for responding to application-level events raised by ASP.NET or by HttpModules. |
| Global.asax.resx |
. |
| Global.asax.cs |
Code behind Global.asax. |
| Default.aspx |
User interface for displaying sample. |
| Default.aspx.resx |
. |
| Default.aspx.cs |
Code behind Default.aspx. |
| Web.config |
Application configuration files contain settings specific to this sample. |
| MapView.csproj |
The project file. |
| MapView.csproj.webinfo |
. |
| ArcIMSZoomIn.cs |
Class file containing zoom in code |
| AXLUtility.cs |
Class file containing code for handling ArcXML |
| Point.cs |
Class file containing point code |
| Service.cs |
Class file containing service code |
|
File
|
Description
|
| arcims.jsp |
JSP page for displaying the ArcIMS map. |
| geocode.jsp |
|
| index.jsp |
|
| AIMSGeocodeResults.java |
Concrete implementation for the Java ADF to display ArcIMS geocode results. |
| AIMSWebGeocode.java |
Concrete implementation for the Java ADF to geocode an address with ArcIMS services |
| AIMSWebApplicationFactory.java |
Concrete implementation for the Java ADF to work with ArcIMS services |
| AIMSWebContext.java |
WebContext implementation for ArcIMS |
| AIMSWebMap.java |
WebMap implementation for ArcIMS |
| AIMSWebOverview.java |
WebOverview implementation for ArcIMS |
| AIMSWebToc.java |
WebToc implementation for ArcIMS |
| AIMSZoomFullExtentListener.java |
Implementation for zooming to fullextent of an ArcIMS map |
| AIMSZoomInToolAction.java |
Implementation for zooming-in an ArcIMS map |
| AIMSPanToolAction.java |
Implementation for panning an ArcIMS map. |