Recently, the author used ArcGIS Server 10 Java version to publish the GIS service. When ArcGIS manager is used to create the service, then, when you open the "ArcGIS Services Directory" Link, you will find that the webpage reports a resource error, such:
Figure 1
Later, it was found that the Service released in the Manager of Java version only published the soap interface of the service by default, while the rest interface requires the user to log on to the Information Server, such as Tomcat, Apache, and weblogic. Because a tomcat service is embedded in the server of Java version, this article uses this service directly to configure the rest interface. The rest configuration principle on other information publishers is basically the same as described in this article.
The rest interface configuration involves four steps:
1. Export the. War package corresponding to the est service in mangaer;
2. Place the. War package in the virtual directory of Tomcat;
3. Restart the three services of ArcGIS Server;
4. Verify that the rest interface is successfully released.
1. Export the. War package corresponding to the rest service in the Manager.
First, log on to ArcGIS manager. On the Services tab of navbar on the left of the Main Page, select the label "Configure services handler" (figure 2 ),
Figure 2
Select the "Export" tab on the right side of the page (Figure 3 ). Then, select "Rest service" in the "Export Web Services" drop-down box, and fill in "rest" in the "war file name" field (you can choose any name as needed ), in the "Soap URL" field, if you want to export all services in the server, enter "http: // <your
Host Name>: 8399/ArcGIS/services ". In the GIS server area, enter the user name and password used to log on to the server and the security domain (generally the machine name). Take the default values for other parameters. Finally, click the "Export" button at the bottom of the page. Rest. War is automatically downloaded to the local download directory (Figure 4). This download process generally takes 5 ~ 10 seconds.
Figure 3
Figure 4
2. Place the. War package in the virtual directory of Tomcat
A tomcat server is embedded in the Java Server, and the root directory of the Server Release directory is located in the "D: \ <your ArcGIS instal directory> \ server10.0 \ Java \ Manager \ web_output \ Web ". Put the rest. War file exported in the previous step in this directory.
Iii. Restart three services of ArcGIS Server
In the Windows Service Manager, restart the three services shown in ArcGIS server5.
Figure 5
About 10 seconds after the server service is restarted, store rest in the previous step. in the war file directory, you can find that the system automatically generates a folder named rest, the directory structure of the folder and rest. in war, the directory structure is consistent. That is to say, during the restart process, Tomcat automatically decompress the war to the directory at the same level, 6.
Figure 6
4. Verify that the rest interface is successfully released
Open "http: // <your host name >:>: 8399/rest/services" in the browser ", in this case, we can browse the list of all rest services shown in 7 released in server.
Figure 7
Copyright: This article was originally published in the blog Park, author of leshui fish, blog http://www.cnblogs.com/wowMVP
The copyright of this article is shared by the author and the blog Park. You are welcome to repost it, but you must keep this statement without the author's consent and provide the original article connection clearly on the article page. Otherwise, it is deemed as infringement, the author reserves the right to pursue legal liability. In addition, Please repost the information in the comments. Thank you for your cooperation.