zoukankan      html  css  js  c++  java
  • ArcGIS Server SOE(二)

    ArcGIS Server SOE(一):https://www.cnblogs.com/2008nmj/p/13896020.html

    开发环境:Visual Studio 2012+ArcGIS Server 10.2

    Simple REST SOE

    Purpose
    This sample illustrates the basic framework for creating a server object extension (SOE) that will be hosted as an ArcGIS Server REST SOE. The SOE extends the functionality of a map service with a single operation to echo input text. 
    All the information needed to deploy the SOE is included in this sample encapsulated in a .soe file. Deploying the SOE from this file does not require you to open Visual Studio. However, you can open the Visual Studio solution included with this sample to explore the coding patterns used in the SOE.
    The instructions below assume that you have installed the developer kit on the machine running ArcGIS Server Manager. If you installed the developer kit on some other machine, you'll need to copy the .soe file to the machine running Manager, or otherwise make the .soe file visible to Manager by placing it in a shared folder.

    How to use

    See How to use ArcGIS samples for help running the sample.

    Deploy the SOE
      1. Log in to ArcGIS Server Manager and click Site.
      2. Click Extensions.
      3. Click Add Extension.
      4. Click Browse and navigate to the .soe file, which by default is located at <ArcGIS DeveloperKit install location>SamplesArcObjectsNetServerSimpleRESTSOECSharpSimpleRESTSOEinDebugNetSimpleRESTSOE.soe.
      5. Click OK.

    Enable the SOE on a service
      1. Start ArcMap and click File > Open.
      2. Browse to or type the location of USA.mxd, which is located in <ArcGIS Developer Kit Location>SamplesdataUsa.
      3. Click File > Share As > Service.
      4. Click Save a service definition and click Next.
      5. Choose "No available connection" and check "Include data in service definition when publishing".
      6. Change the Server type to ArcGIS Server.
      7. Leave the Service name as USA and click Next.
      8. Choose a location where you want to save the service definition, then click Continue.
      9. Click Stage to create the service definition. In the success message, note the path of your service definition (.sd).
      10. Copy the USA.sd file to the machine running ArcGIS Server Manager.
      11. On the machine running ArcGIS Server Manager, log in to Manager and click Services.
      12. If necessary, click the Manage Services tab.
      13. Click Publish Service.
      14. Click Browse, browse to the location of USA.sd on the local machine, and click Open. Then click Next.
      15. Accept the default properties for the service by clicking Next.
      16. Click Publish. This creates the USA map service.
      17. On the Services tab of Manager, select the USA map service and select Capabilities. In the list of available capabilities, find ".Net Simple REST SOE" and check the box to enable it. If there is a list of available operations allowed, select all of them.
      18. Click the Save and Restart button to restart the service.

    Test the SOE in ArcGIS Server Services Directory
      1. Open a browser and navigate to the root REST services endpoint for ArcGIS Server (for example: http://<server name>:6080/arcgis/rest/services). You'll see a list of services, including the USA map service created in the previous section.
      2. Click the USA map service created in the previous section and scroll to the bottom of the map service description page. The section titled Supported Extensions includes the SOE NetSimpleRESTSOE. If you don't see the extension, you can attempt to hit its URL directly at http://<server name>:6080/arcgis/rest/services/<name of service>/MapServer/exts/NetSimpleRESTSOE.
      3. Click the SOE name. The REST SOE description page displays one subresource called layers and one operation called getLayerCountByType.
      4. Click the subresource called layers and view all layers in the host map service. Click the back button.
      5. Click the getLayerCountByType operation and type in either "feature", "raster" or "all" and click either the echo (GET) or echo (POST) button. The operation will return the number of layers of the type you specified.
    file:///D:/ArcGIS/DeveloperKit10.2/Samples/ArcObjectsNet/ServerSimpleRESTSOE/ReadMe.htm

    参考1:https://wenku.baidu.com/view/09136f9b58fb770bf68a5518.html(强大的服务器端扩展SOE)

    参考2:https://younghappy.blog.csdn.net/article/details/105431604(SOE入坑指南)

  • 相关阅读:
    Drools只执行一个规则或者执行完当前规则之后不再执行其他规则(转)
    使用redis作为缓存,数据还需要存入数据库中吗?(转)
    双亲委派
    SpringBoot整合Mybatis传参的几种方式
    Drool规则引擎详解(转)
    IDEA导出可执行的jar包
    十:SpringBoot-配置AOP切面编程,解决日志记录业务
    九:SpringBoot-整合Mybatis框架,集成分页助手插件
    七:SpringBoot-集成Redis数据库,实现缓存管理
    八:SpringBoot-集成JPA持久层框架,简化数据库操作
  • 原文地址:https://www.cnblogs.com/2008nmj/p/14498855.html
Copyright © 2011-2022 走看看