untitled

Similar documents
untitled

ArcGIS Sever.NET ArcGIS Server Web JAVA ArcGIS Server Web

untitled

<4D F736F F D20B9FABCD2BBFAB9D8B0ECB9ABBDA8D6FEBACDB4F3D0CDB9ABB9B2BDA8D6FEC4DCBAC4BCE0B2E2CFB5CDB3C8EDBCFEBFAAB7A2D6B8B5BCCBB5C3F7CAE92E646F63>

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

路演公告.PDF

untitled

第一章 章标题-F2 上空24,下空24

<4D F736F F F696E74202D20BFD5BCE4D0C5CFA2B9B2CFEDBCBCCAF5CCBDCCD62E707074>

信息

声 明 本 公 司 及 全 体 董 事 监 事 高 级 管 理 人 员 承 诺 不 存 在 任 何 虚 假 记 载 误 导 性 陈 述 或 重 大 遗 漏, 并 对 其 真 实 性 准 确 性 完 整 性 承 担 个 别 和 连 带 的 法 律 责 任 本 公 司 负 责 人 和 主 管 会 计 工

TopTest_Adminstrator.doc

% ~ AAA

ebook140-9

untitled

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID

EJB-Programming-4-cn.doc

目次 

ebook140-8

ebook140-11

untitled

EJB-Programming-3.PDF

untitled

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

(Geographic data or geodata ) 30 (Buelher, K and L. Mckee1996) (Open GIS Consortium OGC) OGC GIS Open GIS OGC (Geography Markup Langu

weblogic

Microsoft Word - Functional_Notes_3.90_CN.doc

CAS CAS GY/Z GY/Z Extensible Markup Language (XML) 1.0 File Transfer Protocol, RFC959, RFC1123, RFC228, RFC2577, RFC

一 個 SQL Injection 實 例 的 啟 示 頁 2 / 6 因 此, 在 知 名 網 站 上 看 到 SQL Injection, 讓 人 驚 心, 卻 不 意 外 網 站 專 案 外 包 是 目 前 業 界 的 常 態, 而 在 價 格 取 勝 的 制 度 下, 低 價 得 標 的 S

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF

final

用户大会 论文集2.2.doc

1 Par t IBM 7 Par t 2 I BM IBM Par t Q & A

epub83-1

1. 2. Flex Adobe 3.

温州市政府分散采购

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6

epub 61-2

概述

10 IBM Louis V. Gerstner, Jr. 15 Moore's Law EPC PC 2-2

Microsoft Word - 01.DOC

) ( ) ( ) ( ) 1. ( ) (1) ( ) End-to- End ( ) ( ) ( ) ( PayPass Paywave Jspeedy) (FISC II) (2) / NFC (Near Field Communication) ( ) NFC TS

FileMaker 15 ODBC 和 JDBC 指南

(DMO) 1 1 Microsoft Windows SQL Server 2005 SQL Server Analysis ServicesNotification Services SQL Server 8 SQL Server IP SQL Server 2005 SQL Server 20

TX-NR3030_BAS_Cs_ indd

BYOD IP+Optical (IP NGN) API 4. End-to-End (Service Aware) 5. IP NGN (IP Next Generation Network) ( ) Prime Carrier Management Access Edge Co

IP505SM_manual_cn.doc

<4D F736F F D2031A3AD4A617661BCBCCAF5CAC6CDB7D5FDBEA22E646F63>

Windows Server2003終端機服務 (M )

<4D F736F F D C9CFB0EBC4EACFB5CDB3BCAFB3C9CFEEC4BFB9DCC0EDCAA6C9CFCEE7CAD4BEED>

基于ECO的UML模型驱动的数据库应用开发1.doc

<ADB6ADB1C25EA8FAA6DB2D4D56432E706466>

untitled

untitled

(TestFailure) JUnit Framework AssertionFailedError JUnit Composite TestSuite Test TestSuite run() run() JUnit

分 类 号 密 级 UDC 注 1 学 位 论 文 基 于 身 份 信 息 的 云 聚 合 技 术 研 究 ( 题 名 和 副 题 名 ) 边 汤 贵 ( 作 者 姓 名 ) 指 导 教 师 唐 雪 飞 副 教 授 电 子 科 技 大 学 成 都 ( 姓 名 职 称 单 位 名 称 ) 申 请 学

投影片 1

多層次傳銷與獎金系統

IC-900W Wireless Pan & Tilt Wireless Pan & Tilt Remote Control / Night Vision FCC ID:RUJ-LR802UWG

RunPC2_.doc

目 录 目 录 前 言 3 第 一 章 通 信 行 业 GIS 应 用 解 决 方 案 5 1 GIS CAD 与 图 5 2 图 的 组 成 8 3 如 何 看 待 图 的 价 值? 10 4 图 的 一 致 性 问 题 12 5 GIS 的 应 用 之 路 从 组 件 化 到 服 务 化 15

FileMaker 16 ODBC 和 JDBC 指南

行 政 院 國 家 科 學 委 員 會 補 助 專 題 研 究 計 畫 成 果 報 告 期 中 進 度 報 告 Web Service UDDI 系 統 實 作 The Implementation of UDDI System for Web Service 計 畫 類 別 : 個 別 型 計 畫

ebook 185-6

RUN_PC連載_12_.doc

Azure_s

1 SQL Server 2005 SQL Server Microsoft Windows Server 2003NTFS NTFS SQL Server 2000 Randy Dyess DBA SQL Server SQL Server DBA SQL Server SQL Se

untitled

chapter 2 HTML5 目錄iii HTML HTML HTML HTML HTML canvas

第 1 章 概 述 1.1 计 算 机 网 络 在 信 息 时 代 中 的 作 用 1.2 计 算 机 网 络 的 发 展 过 程 *1.2.1 分 组 交 换 的 产 生 *1.2.2 因 特 网 时 代 *1.2.3 关 于 因 特 网 的 标 准 化 工 作 计 算 机 网 络 在

Visual C# 2010 與 UML 開發實戰 C# 第 5 章物件導向基礎 C# C# 第 6 章資料與變數 C# 第 7 章判斷式與迴圈 C# 第 8 章陣列與集合 C# 第 9 章偵錯與例外狀況處理 Visual Studio 2010 C# try...catch ix

序号:001

PowerPoint Presentation

目 录 1. 前 言 为 什 么 要 用 ESB 技 术 发 展 业 务 需 求 IT 需 求 IT 与 业 务 一 致 性 要 求 TongIntegrator ESB v5 简 介..

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 ->

13 根 据 各 种 网 络 商 务 信 息 对 不 同 用 户 所 产 生 的 使 用 效 用, 网 络 商 务 信 息 大 致 可 分 为 四 级, 其 中 占 比 重 最 大 的 是 ( A ) A 第 一 级 免 费 信 息 B 第 二 级 低 收 费 信 息 C 第 三 级 标 准 收 费

AL-M200 Series



SiteView技术白皮书

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

SSIS 2012SSIS 2005SSISVisual Studio Visual Studio 2010Package SSISSSIS Integration Services SSIS /2008/ R2 SSIS D Integration Serv

RUN_PC連載_10_.doc


f2.eps

<4D F736F F D D352DBED6D3F2CDF8D7E9BDA8D3EBB9DCC0EDCFEEC4BFBDCCB3CCD5FDCEC42E646F63>

Partition Key: 字 符 串 类 型, 表 示 当 前 Entity 的 分 区 信 息 这 个 Property 对 于 Table Service 自 动 纵 向 和 横 向 扩 展 至 关 重 要 Row Key: 字 符 串 类 型, 在 给 定 Partition Key 的

ArcIMS ArcIMS Shape ArcIMS Monitor ArcIMS Tasker ArcIMS Windows NT UNIX ArcIMS ArcIMS MapService ArcIMS ArcIMS ArcIMS ArcIMS JAVA Windows NT UNIX ArcI

LiveBOS产品白皮书

目 录 1. 业 务 流 程 系 统 开 发 面 临 的 挑 战 与 机 遇 业 务 流 程 管 理 新 一 代 开 源 业 务 流 程 开 发 平 台 BPMX BPMX3 是 什 么 为 什 么 要 优 先 采 用 BPMX

3.1 SQL Server 2005 Analysis Services Unified Dimension Model (UDM) 3 ( Ad-Hoc) SQL Server 2005 E - R T-SQL(Star Schema) (Data Mart) (ETL) ( Ora


IoC容器和Dependency Injection模式.doc

2 ADO.NET Internet 1.2

untitled

ebook

A API Application Programming Interface 见 应 用 程 序 编 程 接 口 ARP Address Resolution Protocol 地 址 解 析 协 议 为 IP 地 址 到 对 应 的 硬 件 地 址 之 间 提 供 动 态 映 射 阿 里 云 内

Logitech Wireless Combo MK45 English

數位圖書館/博物館相關標準 2

Transcription:

ArcGIS Server Web services

Web services Application Web services Web Catalog ArcGIS Server Web services 6-2

Web services? Internet (SOAP) :, : Credit card authentication, shopping carts GIS:, locator services, address matching, etc. 6-3

Web services? ArcMap Require credit card or authentication you want to manage Integrate applications Web service (.NET, Java).NET 6-4

Web services: The WSDL WSDL (Web Service ) WSDL XML Method calls and parameter types used Example: http://localhost/webcatalog/redlandsmap.aspx?wsdl Universal Description Discovery Integration (UDDI) WSDL directory source Lists all registered and publicly available services http://www.uddi.org/find.html: Select a node and search 6-5

WSDL http://locahost/webcatalog/redlandsmap.aspx?wsdl <?xml version"1.0" encoding"utf-8"?> <?xml version"1.0" encoding"utf-8"?> <definitions xmlns:soap"http://schemas.xmlsoap.org/wsdl/soap/" <definitions xmlns:soap"http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs"http://www.w3.org/2001/xmlschema" xmlns:xs"http://www.w3.org/2001/xmlschema" targetnamespace"http://www.esri.com/schemas/arcgis/9.0" targetnamespace"http://www.esri.com/schemas/arcgis/9.0" xmlns:e"http://www.esri.com/schemas/arcgis/9.0" xmlns"http://schemas.xmlsoap.org/wsdl/"> xmlns:e"http://www.esri.com/schemas/arcgis/9.0" xmlns"http://schemas.xmlsoap.org/wsdl/"> <types> <types> <xs:schema targetnamespace"http://www.esri.com/schemas/arcgis/9.0" <xs:schema targetnamespace"http://www.esri.com/schemas/arcgis/9.0" xmlns"http://www.esri.com/schemas/arcgis/9.0"> xmlns"http://www.esri.com/schemas/arcgis/9.0"> <xs:element name"getdocumentinfo"> <xs:element name"getdocumentinfo"> <xs:complextype /> <xs:complextype /> </xs:element> </xs:element> <xs:element name"getdocumentinforesponse"> <xs:element name"getdocumentinforesponse"> <xs:complextype> <xs:complextype> <xs:sequence> <xs:sequence> <xs:element name"result" type"propertyset" /> <xs:element name"result" type"propertyset" /> </xs:sequence> </xs:sequence> </xs:complextype> </xs:complextype> </xs:element> </xs:element> <xs:element name"getmapcount"> <xs:element name"getmapcount"> 6-6

Web services? SOAP HTTP XML Internet Web service client HTTP request HTTP response Web service 6-7

Web services ArcGIS Server? ADF SOAP Web services ADF GIS Server SOAP Web service public function myfcn (string) as string 6-8

ArcGIS Server Web services Web service ADF server objects SOAP API Server object SOAP API Web catalog ArcObjects server context ArcObjects (SOM,SOC) ArcObjects 6-9

ArcGIS Server Web services 1. ASP.NET Web service 2. ESRI assemblies 3. Web service 4. Web service 6-10

1. ASP.NET Web service ArcGIS Server.NET ADF 6-11

2. ESRI assemblies assemblies Project > Add Reference ESRI.ArcGIS.Server ESRI.ArcGIS.Server.WebControls (Connection class) Add imports statements 6-12

3. Web service HTTP SOAP [WebMethod] ArcObjects Web service must impersonate a member of the ArcGIS Server users group <WebMethod()> _ <WebMethod()> _ Public Function LocateAddress(ByVal Address String) String Public Function LocateAddress(ByVal Address String) String End Function End Function 6-13

Web <WebMethod()> <WebMethod()> Public Public Function Function LocateAddress(ByVal LocateAddress(ByVal Address Address String) String) String String serverconnection ServerConnection serverconnection ServerConnection SOM IServerObjectManager SOM IServerObjectManager servercontext servercontext IServerContext IServerContext geocodeserver IGeocodeServer geocodeserver IGeocodeServer Try Try 'Connect 'Connect to to the the GIS GIS Server Server serverconnection serverconnection ServerConnection("Sparticle") ServerConnection("Sparticle") serverconnection.connect() serverconnection.connect() 'Get 'Get Server Server Context Context SOM SOM serverconnection.serverobjectmanager serverconnection.serverobjectmanager servercontext servercontext SOM.CreateServerContext("RedlandsGeocode", SOM.CreateServerContext("RedlandsGeocode", "GeocodeServer") "GeocodeServer") 'Geocode 'Geocode the the address address geocodeserver geocodeserver servercontext.serverobject servercontext.serverobject propset propset IPropertySet IPropertySet servercontext.createobject("esrisystem.propertyset") servercontext.createobject("esrisystem.propertyset") propset.setproperty("street", propset.setproperty("street", Address) Address) results results IPropertySet IPropertySet results results servercontext.createobject("esrisystem.propertyset") servercontext.createobject("esrisystem.propertyset") results results geocodeserver.geocodeaddress(propset, geocodeserver.geocodeaddress(propset, Nothing) Nothing) point point IPoint IPoint results.getproperty("shape") results.getproperty("shape") Return Return point.x point.x & & " " " " & & point.y point.y Catch Catch Finally Finally servercontext.releasecontext() servercontext.releasecontext() End End Try Try End End Function Function 6-14

Impersonation agsusers Web.config <identity <identity impersonate true impersonate true username Joe username Joe password mypass /> password mypass /> ESRI.ArcGIS.Server.WebControls Impersonation class Identity class (domain, username, password) 'Setup 'Setup impersonation impersonation impersonate impersonate Impersonation Impersonation Impersonation Impersonation id id Identity Identity Identity Identity id.username id.username "Joe" "Joe" id.password id.password "mypass" "mypass" id.domain id.domain "avworld" "avworld" impersonate.identityobject(id) impersonate.identityobject(id) impersonate.impersonate() impersonate.impersonate() 6-15

4. Web service Visual Studio F5 Web service web Web 6-16

Web services SOAP Web Windows Web service 6-17

: WSDL 1. 2. WSDL http://sparticle/demoservice/service1.asmx?wsdl Add directive to reference Web service namespace 3. Web service getpoint getpoint GeocodeAddress GeocodeAddress GeocodeAddress GeocodeAddress results results String String results results getpoint.locateaddress(txtaddress.text) getpoint.locateaddress(txtaddress.text) 'Extract 'Extract the the x x and and y y values values from from the the string string coordarray() coordarray() String String results.split(" results.split(" ") ") x, x, y y String String x x coordarray(0) coordarray(0) y y coordarray(1) coordarray(1) point point IPoint IPoint Point Point point.putcoords(x, point.putcoords(x, y) y) Do Do something something with with point point MessageBox.Show(point.x MessageBox.Show(point.x & & " " " " & & point.y) point.y) 6-18

server objects Web services, server objects SOAP SOM SOAP server objects Web services Web catalog Web Catalog Web service server objects 6-19

Web service catalog.net ADF Web Service Catalog server localhost server objects Web catalog impersonation agsusers 6-20

ArcGIS Server Web services: Web Web Service Catalog Web services web service catalogs, SOAP Web service SOAP URLs Web Catalog http://localhost/redlandswebcatalog/default.aspx?wsdl Web service http://localhost/redlandswebcatalog/redlandsmap.aspx?wsdl http://localhost/redlandswebcatalog/redlandsgeocode.aspx?wsdl 6-21

server object Web catalog server object Map, Query, Data Geocode, reverse geocode Utility.vb web catalog server object [ServerObject Name].aspx.vb server object 6-22

ArcCatalog Web catalog URL All web.config Windows 6-23

Web catalog Web catalog GetServiceDescriptions: server objects 6-24

Mapserver Web service Mapserver object SOAP API 6-25

Geocode server Web service Geocode server object SOAP API 6-26

ArcGIS Web service : Web 1. 2. Web reference wsdl 3. Web services Export Export map map as as image image Use Use exercise exercise code code web web service service map map redlands.redlandsmap redlands.redlandsmap redlands.redlandsmap redlands.redlandsmap mapinfo mapinfo redlands.mapserverinfo redlands.mapserverinfo map.getserverinfo(map.getdefaultmapname) map.getserverinfo(map.getdefaultmapname) mapdesc mapdesc redlands.mapdescription redlands.mapdescription mapdesc mapdesc mapinfo.defaultmapdescription mapinfo.defaultmapdescription imagetype imagetype redlands.imagetype redlands.imagetype redlands.imagetype redlands.imagetype imagedisplay imagedisplay redlands.imagedisplay redlands.imagedisplay redlands.imagedisplay redlands.imagedisplay imagedesc imagedesc redlands.imagedescription redlands.imagedescription redlands.imagedescription redlands.imagedescription imagetype.imageformat imagetype.imageformat redlands.esriimageformat.esriimagejpg redlands.esriimageformat.esriimagejpg imagetype.imagereturntype imagetype.imagereturntype redlands.esriimagereturntype.esriimagereturnurl redlands.esriimagereturntype.esriimagereturnurl imagedisplay.imageheight imagedisplay.imageheight 400 400 imagedisplay.imagewidth imagedisplay.imagewidth 500 500 imagedisplay.imagedpi imagedisplay.imagedpi 150 150 imagedesc.imagedisplay imagedesc.imagedisplay imagedisplay imagedisplay imagedesc.imagetype imagedesc.imagetype imagetype imagetype mapimage mapimage redlands.mapimage redlands.mapimage mapimage mapimage map.exportmapimage(mapdesc, map.exportmapimage(mapdesc, imagedesc) imagedesc) 6-27

6 Web ADF WebCatalog ArcCatalog WebCatalog Web service ServiceLocations Web Web service WebCatalog 6-28

Web services? server objects Web service? Web service server objects? WebCatalog? WebCatalog server object? Web Catalog services? 6-29