Howto: 如何在Java平台为ArcGIS Server创建新的内部SOAP和REST访问端点

文章编号 : 37017
软件: ArcGIS Server 9.3, 9.3.1
操作系统: Windows 2003Server, Vista, 2008Server Solaris 9, 10 Linux Red Hat AS/ES 4.0, AS/ES 5.0 Linux-SUSE Server 10
已邀请:

EsriSupport

赞同来自:

摘要: 以下的内容描述了如何在Java平台为ArcGIS Server在8399端口上为内置的Tomcat创建新的内部SOAP和REST访问端点。新的端点可以在内置Tomcat的8399端口上以不同的名字被访问到。
同时,创建新的SOAP和REST端点可以帮助诊断ArcGIS Server在8399端口上的可用性。
内容:
以下操作的概念在Windows和Unix/Linux平台均使用,下面的叙述是基于Windows环境下的ArcGIS Server for Java。 1.从C:\Program Files\ArcGIS\java\manager\software复制rest.war和services.war文件到一个临时的目录。 2.将WAR文件重命名为新的名字,比如newservices.zip或newrest.zip。 3.解压缩newservices.zip和newrest.zip文件。 4.复制解压后的文件夹到C:\Program Files\ArcGIS\java\web_output目录。 5.使用文本编辑器编辑 C:\Program Files\ArcGIS\java\manager\service\tomcat\managerappserver\conf\server.xml文件。 6.在文件底部,复制以下行: <Context path="/arcgis/services" docBase="../services"/>。 在已经存在的行之下粘贴上面的内容,将SOAP端点名称改为新的名字,如:“newarcgis/newservices” 修改后这行大概是这样的样子:<Context path="/newarcgis/newservices" docBase="../newservices"/>. 7.在同一个文件中,复制以下行:<Context path="/arcgis/rest" docBase="../rest"/>。 在已经存在的行之下粘贴上面的内容,将REST端点名称改为新的名字,如:'newarcgis/newrest'. 修改后这行大概是这样的样子: <Context path="/newarcgis/newrest" docBase="../newrest"/>. 8.这部分内容看起来应该是这个样子: <Context path="" docBase="../"/>
<Context path="/arcgis/kml" docBase="../kml"/>
<Context path="/arcgis/wms" docBase="../wms"/>
<Context path="/arcgis/enterprise" docBase="../enterprise"/>
<Context path="/arcgis/explorer" docBase="../explorer"/>
<Context path="/arcgis/manager" docBase="../manager"/>
<Context path="/arcgis/applications" docBase="../applications"/>
<Context path="/arcgis/server" docBase="c:/arcgisserver"/>
<Context path="/arcgis/rest" docBase="../rest"/>
<Context path="/newarcgis/newrest" docBase="../newrest"/>
<Context path="/arcgis/sdk" docBase="../sdk"/>
<Context path="/arcgis/services" docBase="../services"/>
<Context path="/newarcgis/newservices" docBase="../newservices"/>
<Context path="/arcgis/tokens" docBase="../tokens"/>
9.保存上面的文件

10.备份以下文件: C:\Program Files\ArcGIS\java\web_output ewservices\WEB-INF\classes\arcgis_wshandler.properties.
11.复制 C:\Program Files\ArcGIS\java\web_output\services\WEB-INF\classes\arcgis_wshandler.properties文件覆盖 C:\Program Files\ArcGIS\java\web_output ewservices\WEB-INF\classes\arcgis_wshandler.properties文件。
arcgis_wshandler.properties文件也可以被手动修改,但是密码不能加密, 这个文件看起来应该类似这样:

arcgis.som.domain=server_name
arcgis.som.username=arcgismanager
arcgis.som.password=arcgis_manager_password
arcgis.som.password.encrypted=false

#cluster type can be none or failover or roundrobin arcgis.som.resource.clustertype=none arcgis.som.resource.hosts=server_name
#recheck failed som after n incoming request arcgis.som.recheckfailedsomcount=100
#List of foldernames to allow; the default is blank, causing all folders to be allowed #set timeout for check tile file access. Timeout unit is second.
arcgis.webservice.generatedtileaccess.timeout=60 arcgis.som.foldernames= arcgis.webservices.relativeurls=false arcgis.webservices.security.authenticationtype=NONE arcgis.webservices.security.roles=. arcgis.webservices.security.tokenserviceurl=
12.备份以下文件 C:\Program Files\ArcGIS\java\web_output ewrest\WEB-INF\classes\server.properties。

13.复制C:\Program Files\ArcGIS\java\web_output est\WEB-INF\classes\server.properties文件覆盖 C:\Program Files\ArcGIS\java\web_output ewrest\WEB-INF\classes\server.properties文件。
server.properties文件也可以被手动修改,但是密码不能加密, 这个文件看起来应该类似这样:

com.esri.rest.HOST=${Host} com.esri.rest.DOMAIN=server_name com.esri.rest.USER_NAME=arcgismanager com.esri.rest.PASSWORD=arcgis_manager_password com.esri.rest.PASSWORD_ENCRYPTED=false com.esri.rest.SOAP_URL=http://server_name:8399/arcgis/services com.esri.rest.SOAP_HTTPS_URL= #Secondary Hosts (for failover / roundrobin), if any - comma separated. e.g. host2, host3 com.esri.rest.SECONDARY_HOSTS=
#If secondary hosts are specified, the type of server cluster. Valid values are: failover, roundrobin com.esri.rest.SERVER_CLUSTER_TYPE=${ServerClusterType}
14.在 Windows服务中重启 'ArcGIS Server Manager Service' 和 'ArcGIS Server Object Manager' 服务。 15.(可选) 新的SOAP and REST handlers可以在浏览器中通过以下的URL访问: http://%26lt%3Bserver_name%26g ... Fwsdl http://<server_name>:8399/newarcgis/newrest 16.(可选) 在ArcCatalog > GIS Servers > Add GIS server > Use GIS services > Internet URL. 添加以下URL: http://%26lt%3Bserver_name%26g ... vices测试。




创建时间:2009-07-21
最近更新: 2010-07-08


原文链接
http://support.esrichina.com.cn/2009/0721/657.html

要回复问题请先登录注册