ArcGIS Services Directory not open

Source: Internet
Author: User
Tags soap tomcat tomcat server
ArcGIS Server Java Rest Service

2011-12-14 17:17:04| Category: Default Category | Font size subscription

When you use ArcGIS Manager to create a service, and then open the link to ArcGIS services Directory, you find that the page has reported a failure to find the resource, as shown in the following figure:

Figure 1

It was later discovered that the services published in the original Java version of the manager only published the SOAP interface for the service, while the rest interface required the user to manually configure the information server, such as Tomcat, Apache, WebLogic, and so on. Because a tomcat service is embedded in the Java version of the server, this article uses the service directly to configure the rest interface, and the rest on the other information publishers is basically consistent with the principles described in this article.

The configuration of the rest interface involves four main steps:

1, in Mangaer to export EST service corresponding to the. War package;

2. Put the. War package into Tomcat's virtual directory;

3, restart the ArcGIS Server three services;

4. Verify that the rest interface is published successfully.

first, export the rest service's. War package in the manager

First log on to ArcGIS Manager, and in the NavBar Services tab on the left side of its main page, select the label "Configure Services Handler" (Figure 2),

Figure 2

Then select the Export tab on the right side of the page (Figure 3). Then in the Export Web Services drop-down box, select Rest Service and fill out "rest" at "WAR File name" (where you can take any name as needed), at the Soap URL, If you need to export all the services in the server, fill out the Http://<your host name>:8399/arcgis/services. The user name, password, and security domain (typically the machine name) for logging in to the server are filled out in the GIS server area, and the other parameters are default values. Finally, by clicking the "Export" button at the bottom of the page, Rest.war is automatically downloaded to the local download directory (Figure 4), which typically takes 5-10 seconds.

Figure 3

Figure 4

put the. War package into Tomcat's virtual directory

A tomcat server is embedded in the Java version of server, and the server publishing directory's root directory is located in the installation directory of ArcGIS Server "D:\<your ArcGIS instal directory>\server10.0\ Java\manager\web_output\web ". The Rest.war file that you exported in the previous step is then placed in the directory.

Iii. Three services to restart ArcGIS Server

In Windows Service Manager, restart the ArcGIS server in the three services shown in Figure 5.

Figure 5

After restarting the Server service for approximately 10 seconds, In the directory where the Rest.war files were stored in the previous step, you can find that the system automatically generates a rest folder with a directory structure consistent with the directory structure in Rest.war, which means that during the reboot, Tomcat automatically extracts the war into the sibling directory, as shown in Figure 6.

Figure 6

Iv. Verifying the success of the rest interface publication

With the Http://<<your host Name>:>:8399/rest/services open in the browser, we can browse to the list of all the rest services published in the server, as shown in Figure 7.

Figure 7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.