WO2011082629A1 - 数据交互的方法和装置 - Google Patents

数据交互的方法和装置 Download PDF

Info

Publication number
WO2011082629A1
WO2011082629A1 PCT/CN2010/080180 CN2010080180W WO2011082629A1 WO 2011082629 A1 WO2011082629 A1 WO 2011082629A1 CN 2010080180 W CN2010080180 W CN 2010080180W WO 2011082629 A1 WO2011082629 A1 WO 2011082629A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data interaction
data content
client
server
Prior art date
Application number
PCT/CN2010/080180
Other languages
English (en)
French (fr)
Inventor
曹家齐
李建军
薛明
Original Assignee
北京世纪高通科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京世纪高通科技有限公司 filed Critical 北京世纪高通科技有限公司
Publication of WO2011082629A1 publication Critical patent/WO2011082629A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Definitions

  • the present invention relates to the field of traffic information and digital maps, and more particularly to a method and apparatus for data interaction.
  • WEB-GIS Network Geographic Information System
  • WEB-GIS refers to a geographic information system based on the Internet platform, where client application software uses network protocols and is used on the Internet. It is composed of multiple hosts, multiple databases and multiple clients on the Internet in a distributed connection, including the following four parts: WEB-GIS browser, WEB-GIS server, WEB-GIS editor (Editor) ), WEB-GIS information agent (inf orma t ion agent).
  • the data interaction between the WEB-GIS browser and the WEB-GIS server is synchronously and interactively, and the client triggers an HTTP request to the server, and the server returns the request and returns.
  • a new HTML page to the client is synchronously and interactively, and the client triggers an HTTP request to the server, and the server returns the request and returns.
  • the WEB-GIS server in the process of processing the request, and during the time when the map raster image is transmitted, the user is in most of the time Waiting state, the screen content is also blank.
  • the load is small, the user's waiting time may be limited, and there is no delay.
  • the map changes generated by the WEB-GIS server are converted into raster images and then propagated in the binary stream on the network. The same data. Repeated transmission on the network, the load is large, the efficiency is very low, resulting in the user's operation response time is too long.
  • Embodiments of the present invention provide a method and apparatus for data interaction to solve The same data is repeatedly transmitted on the network, the load is large, and the efficiency is very low, which leads to the problem that the user's operation response time is too long.
  • a data interaction method is applied to a network geographic information system, where the network geographic information system includes a data interaction device, and the data interaction method includes: the data interaction device according to a preset XMLHTTP request object and the network geographic The input content of the client in the information system generates an XMLHTTP request; the data interaction device sends the XMLHTTP request to the server in the network geographic information system to implement asynchronous interaction between the server and the client. .
  • a device for data interaction comprising:
  • a generating unit configured to generate an XMLHTTP request according to the preset XMLHTTP request object and the input content of the client in the network geographic information system;
  • the first sending unit is configured to send an XMLHTTP request generated by the generating unit to a server end in the network geographic information system, so as to implement asynchronous data interaction between the server end and the client.
  • the method and device for data interaction use the preset XMLHTTP request object to send an XMLHTTP request to the WEB-GI S server to implement data between the WEB-G IS server and the WEB-G IS client.
  • Asynchronous interaction when the WEB-G IS client sends a request to the WEB-G IS server, these requests are not sent directly to the WEB-G IS server, but are processed by the data interaction device and then sent to the WEB-GI S server.
  • the WEB-G IS server returns data to the WEB-GI S client through the data interaction device, the WEB-G IS client does not need to update the entire webpage, but only updates a part of the webpage, and solves the same data in the prior art. Repeated transmission on the network, the load is large, the efficiency is very low, resulting in the user's operation response time is too long.
  • FIG. 1 is a flowchart of a method for data interaction according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for data interaction according to another embodiment of the present invention
  • FIG. 3 is a flowchart 1 of step 202 in a flowchart of a method for data interaction provided by the embodiment of the present invention shown in FIG. 2
  • 4 is a second flowchart of step 202 in the flowchart of the method for data interaction provided by the embodiment of the invention shown in FIG. 2;
  • FIG. 5 is a schematic structural diagram of a device for data interaction according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a device for data interaction according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a device for data interaction according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method and device for data interaction.
  • the data interaction method provided by the embodiment of the present invention is applied to a network geographic information system, where the network geographic information system includes a data interaction device, and the data interaction method includes:
  • Step 101 The data interaction apparatus generates an XMLHTTP request according to the preset XMLHTTP request object and the input content of the client in the network geographic information system;
  • Step 102 The data interaction device sends the XMLHTTP request to a server in the network geographic information system to implement asynchronous interaction between the server and the client.
  • the data interaction method provided by the embodiment of the present invention sends an XMLHTTP request to the WEB-G IS server by using a preset XMLHTTP request object, so as to implement asynchronous data interaction between the WEB-GIS server and the WEB-GIS client, WEB -
  • the GIS client sends a request to the WEB-GIS server
  • these requests are not sent directly to the WEB-GIS server, but are processed by the data interaction device and then sent to the WEB-GIS server.
  • the WEB-GIS server passes the data.
  • the WEB-GIS client When the interactive device returns data to the WEB-GIS client, the WEB-GIS client does not need to update the entire webpage, but only updates a part of the webpage, and solves the problem that the same data is repeatedly transmitted on the network due to the same data in the prior art, and the load is large and efficient. Very low, resulting in a problem that the user's operation response time is too long.
  • a method for data interaction provided by the embodiments of the present invention includes:
  • Step 201 The data interaction apparatus generates an XMLHTTP request according to the preset XMLHTTP request object and the input content of the client in the network geographic information system;
  • the preset of the XMLHTTP request object is implemented by the following method:
  • the openO method has three parameters, the first parameter, indicating how to submit our HTTP request to the server. Because the amount of WebGIS data is large, the POST method is selected; the second parameter Is a URL indicating the so-called network address that is intended to obtain the data content; the third parameter true represents the submission of an asynchronous XMLHTTP request.
  • Step 202 The data interaction device sends the XMLHTTP request to a server in the network geographic information system to implement asynchronous interaction between the server and the client.
  • the sending of the XMLHTTP request is by sending the XMLOUp request object's sendO method:
  • the sendO method is used to send a request to the server, and of course, the parameter transfer operation can also be performed.
  • the asynchronous interaction between the server and the client is implemented in the step 202, and the method includes:
  • Step 2021 the data interaction device receives the data content returned by the server, where the data content is obtained by the server according to the XMLHTTP request to the database request response in the network geographic information system;
  • Step 2022 The data interaction device sends the data content to the client.
  • the data content is a data content of a string type or a data content of a standard XML type.
  • the data content of the String type can be obtained through the responseText property of the XMLHttp request object, or the standard XML type data content can be obtained through the responseXML property of the XMLHttp request object.
  • the method further includes:
  • Step 2023 the data interaction device determines, according to the attribute of the XMLHTTP request object, whether the data content is complete and whether the data content is correct.
  • the preset return function is implemented by the following method:
  • Specify a function and then assign the handle of the function, which is the function name in JavaScript, to the onreadystatechange property in the XMLHttpRequest object.
  • Step 2024 When the data content is complete and the data content is correct, the data interaction apparatus allows the data content to be sent to a client of the network geographic information system.
  • the data content is allowed to be sent to the client of the network geographic information system.
  • the data interaction method provided by the embodiment of the present invention sends an XMLHTTP request to the WEB-GIS server by using a preset XMLHTTP request object, so as to implement asynchronous data interaction between the WEB-GIS server and the WEB-GIS client, WEB-
  • a preset XMLHTTP request object so as to implement asynchronous data interaction between the WEB-GIS server and the WEB-GIS client, WEB-
  • these requests are not sent directly to the WEB-GIS server, but are processed by the data interaction device and then sent to the WEB-GIS server.
  • the WEB-G IS server When the WEB-G IS server returns data to the WEB-G IS client through the data interaction device, the WEB-G IS client does not need to update the entire web page, but only updates a part of the web page, and solves the problem in the prior art due to the same data. Repeated transmission on the network, the load is large, the efficiency is very low, resulting in the problem that the user's operation response time is too long.
  • the device for data interaction includes: a generating unit 301, configured to generate an XMLHTTP request according to a preset XMLHTTP request object and an input content of a client in a network geographic information system; For details, refer to step 202 shown in Figure 2, and details are not described herein.
  • the first sending unit 302 is configured to send an XMLHTTP request generated by the generating unit to the server in the network geographic information system, so as to implement asynchronous data interaction between the server and the client.
  • XMLHTTP request generated by the generating unit
  • the server in the network geographic information system, so as to implement asynchronous data interaction between the server and the client.
  • the apparatus for data interaction provided by another embodiment of the present invention further includes:
  • the receiving unit 303 is configured to receive the data content returned by the server, where the data content is obtained by the server according to the XMLHTTP request to the database request response in the network geographic information system; For details, refer to step 2021 shown in Figure 3, and details are not described herein.
  • the second sending unit 304 is configured to send the data content received by the receiving unit to the client.
  • the second sending unit 304 refers to step 2022 shown in Figure 3, and details are not described herein.
  • the device for data interaction further includes:
  • the determining unit 305 is configured to determine, according to the attribute of the XMLHTTP request object, whether the data content received by the receiving unit is complete and whether the data content is correct. For the specific implementation method, refer to step 2023 shown in FIG. 3, I will not repeat them here.
  • the enabling unit 306 is configured to allow the second sending unit to send the data content to a client of the network geographic information system when the data content is complete and the data content is correct. For a specific implementation method, refer to step 2024 shown in FIG. 3, I won't go into details here.
  • the data interaction device is an AJAX engine located between the WEB-GIS server and the WEB-GIS client.
  • the device for data interaction provided by the embodiment of the present invention sends an XMLHTTP request to the WEB-G IS server by using a preset XMLHTTP request object, so as to implement asynchronous data interaction between the WEB-GIS server and the WEB-GIS client, WEB -
  • the GIS client sends a request to the WEB-GIS server
  • these requests are not sent directly to the WEB-GIS server, but are processed by the data interaction device and then sent to the WEB-GIS server.
  • the WEB-GIS server passes the data.
  • the WEB-GIS client When the interactive device returns data to the WEB-GIS client, the WEB-GIS client does not need to update the entire webpage, but only updates a part of the webpage, and solves the problem that the same data is repeatedly transmitted on the network due to the same data in the prior art, and the load is large and efficient. Very low, resulting in a problem that the user's operation response time is too long.
  • the method and apparatus for data interaction provided by the embodiments of the present invention are applicable to a network geographic information system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Description

数据 交互 的 方 法和装置 本申请要求于 2010 年 1 月 11 日提交中国专利局、 申请号为 201010033885.7 , 发明名称为 "数据交互的方法和装置" 的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及交通信息和数字地图领域, 尤其涉及一种数据交互 的方法和装置。
背 景技术
网络地理信息系统 (WEB-GIS) 指基于 Internet平台, 客户端 应用软件釆用网络协议, 运用在 Internet 上的地理信息系统。 一般 由多主机, 多数据库和多个客户端以分布式连接在 Internet 上而组 成, 包括以下四个部分: WEB-GIS浏览器 ( browser ) , WEB-GIS 务器, WEB-GIS 编辑器 (Editor ) , WEB-GIS 信息代理(inf orma t ion agent)。
现有技术中,网络地理信息系统中, WEB-GIS browser与 WEB-GIS 服务器之间进行数据交互多釆用同步交互的方式, 由客户端触发一个 HTTP请求到服务器, 服务器对该请求处理后返回一个新的 HTML页到 客户端。
在实现本发明的过程中, 发明人发现, WEB-GIS 釆用同步数据 交互的方式的过程中, WEB-GIS服务器在处理请求时,以及在传送地图 栅格图像的时间内,用户多数时间处于等待的状态,屏幕内容也是一 片空白。 当负载比较小时, 用户等待的时间可能有限,没有体现出延 迟, 但在 WEB-GIS中, WEB-GIS服务器产生的地图改变转换成栅格图 片后以二进制流的方式在网络传播, 同样的数据在网络上反复传输, 负载较大, 效率很低, 从而导致用户的操作响应时间过长的问题。 发 明 内 容
本发明的实施例提供一种数据交互的方法和装置, 以解决由于 同样的数据在网络上反复传输, 负载较大, 效率很低, 从而导致用户 的操作响应时间过长的问题。
为达到上述目的, 本发明的实施例釆用如下技术方案:
一种数据交互的方法, 应用于网络地理信息系统, 所述网络地 理信息系统包括数据交互装置, 所述数据交互的方法包括: 所述数据 交互装置根据预设的 XMLHTTP请求对象和所述网络地理信息系统中客 户端的输入内容生成 XMLHTTP 请求; 所述数据交互装置发送所述 XMLHTTP请求给所述网络地理信息系统中的服务器端, 以实现所述服 务器端与所述客户端之间的数据异步交互。
一种数据交互的装置, 包括:
生成单元, 用于根据预设的 XMLHTTP请求对象和网络地理信息 系统中客户端的输入内容生成 XMLHTTP请求;
第一发送单元, 用于发送生成单元生成的 XMLHTTP请求给网络 地理信息系统中的服务器端, 以实现所述服务器端与所述客户端之间 的数据异步交互。
本发明实施例提供的数据交互的方法和装置, 利用预设的 XMLHTTP 请求对象发送 XMLHTTP 请求给 WEB- GI S 服务器端, 以实现 WEB-G I S 服务器端与 WEB-G I S 客户端之间的数据异步交互, WEB-G I S 客户端向 WEB-G I S 服务器端发送请求时, 这些请求不是直接发送给 WEB-G I S服务器端, 而是通过数据交互装置处理后再发送给 WEB-GI S 服务器端, WEB-G I S服务器端通过数据交互装置返回数据给 WEB-GI S 客户端时, WEB-G I S客户端不需要更新整个网页, 而只是更新网页一 部分, 解决了现有技术中由于同样的数据在网络上反复传输, 负载较 大, 效率很低, 从而导致用户的操作响应时间过长的问题。
附 图 说明
图 1为本发明实施例提供的数据交互的方法流程图;
图 2为本发明又一实施例提供的数据交互的方法流程图; 图 3为图 2所示的发明实施例提供的数据交互的方法流程图中 步骤 202的流程图一; 图 4为图 2所示的发明实施例提供的数据交互的方法流程图中 步骤 202的流程图二;
图 5为本发明实施例提供的数据交互的装置结构示意图一; 图 6为本发明实施例提供的数据交互的装置结构示意图二; 图 7为本发明实施例提供的数据交互的装置结构示意图三。 具体 实 施方 式
为了解决现有技术中由于同样的数据在网络上反复传输, 负载 较大, 效率很低, 从而导致用户的操作响应时间过长的问题, 本发明 实施例提供一种数据交互的方法和装置。
如图 1所示, 本发明实施例提供的数据交互的方法, 应用于网 络地理信息系统, 所述网络地理信息系统包括数据交互装置, 所述数 据交互的方法包括:
步骤 101, 所述数据交互装置根据预设的 XMLHTTP请求对象和 所述网络地理信息系统中客户端的输入内容生成 XMLHTTP请求;
步骤 102, 所述数据交互装置发送所述 XMLHTTP请求给所述网 络地理信息系统中的服务器端, 以实现所述服务器端与所述客户端之 间的数据异步交互。
本发明实施例提供的数据交互的方法, 利用预设的 XMLHTTP请 求对象发送 XMLHTTP请求给 WEB-G IS服务器端, 以实现 WEB-GIS服务 器端与 WEB-GIS 客户端之间的数据异步交互, WEB-GIS 客户端向 WEB-GIS服务器端发送请求时, 这些请求不是直接发送给 WEB-GIS服 务器端, 而是通过数据交互装置处理后再发送给 WEB-GIS服务器端, WEB-GIS服务器端通过数据交互装置返回数据给 WEB-GIS客户端时, WEB-GIS客户端不需要更新整个网页, 而只是更新网页一部分, 解决 了现有技术中由于同样的数据在网络上反复传输, 负载较大, 效率很 低, 从而导致用户的操作响应时间过长的问题。
为了使本领域技术人员能够更清楚地理解本发明实施例提供的 技术方案, 下面通过具体的实施例, 对本发明实施例提供的数据交互 的方法进行详细说明。 如图 2所示, 本发明另一个实施例提供的数据交互的方法, 包 括:
步骤 201, 所述数据交互装置根据预设的 XMLHTTP请求对象和 所述网络地理信息系统中客户端的输入内容生成 XMLHTTP请求;
在所述步骤 201 中, 所述 XMLHTTP请求对象的预设通过以下方 法实现:
初始化工作: 使用 HTML标签 <scr ipt language= "JavaScript" >表示开始一段 JavaScript, 并且使用 </scr ipt>做为结束, 其中包含 的就是 JavaScript代码。
声明 XmlHttp请求对象:
var xmlHttp = new Ac t i veXOb jec t ( "Msxmll2. XMLHTTP" ); 值得说明的是, XmlHttpRequest 是根据浏览器内置的, Firefox浏览器使用 var xmlLHttpReq = new XMLHttpReques t 0。
设置 XMLHttp请求的相关属性: 如, openO方法有三个参数, 第一个参数, 表示以何种方式向服务器提交我们的 HTTP请求, 因为 WebGIS数据量较大, 所以选择 POST的方式; 第二个参数是一个 URL, 表示打算获取数据内容的所谓的网络地址; 第三个参数 true代表提 交的是一个异步的 XMLHTTP请求。
步骤 202, 所述数据交互装置发送所述 XMLHTTP请求给所述网 络地理信息系统中的服务器端, 以实现所述服务器端与所述客户端之 间的数据异步交互。
在本实施例中, 所述发送 XMLHTTP请求是通过调用 XMLHUp请 求对象的 sendO方法: sendO方法用于向服务器发送请求, 当然也可 进行传参操作。
如图 3所示, 所述步骤 202中所述实现所述服务器端与所述客 户端之间的数据异步交互, 包括:
步骤 2021, 所述数据交互装置接收所述服务器端返回的数据内 容, 所述数据内容是由所述服务器端根据所述 XMLHTTP请求向所述网 络地理信息系统中的数据库请求响应得到的; 步骤 2022, 所述数据交互装置发送所述数据内容给所述客户 端。
在本实施例中,所述数据内容是 string类型的数据内容或标准 的 XML类型的数据内容。可以通过 XMLHttp请求对象的 responseText 属性得到 String类型的数据内容, 也可以通过 XMLHttp请求对象的 responseXML属性得到标准的 XML类型数据内容。
进一步的, 为了保证异步数据交互的准确性, 如图 4所示, 所 述发送所述数据内容给所述客户端之前, 还包括:
步骤 2023, 所述数据交互装置根据所述 XMLHTTP请求对象的属 性判断所述数据内容是否完整以及所述数据内容是否正确;
在本实施例中, 通过一个预设的返回函数来判断所述数据内容 是否完整以及所述数据内容是否正确。
所述预设返回函数, 通过以下方法实现:
指定一个函数, 之后将这个函数的句柄, 也就是 JavaScript 中 的 函 数 名 称 , 赋 值 给 XMLHttpRequest 对 象 中 的 onreadystatechange属性。 首先判断 XMLHtt 请求对象 readyState 属性值是否等于 4, 4代表数据全部接收。 然后判断 XMLHttpRequest 对象 status属性值是否等于 200, 200代表服务器端返回的是正确的 结果。
步骤 2024, 当所述数据内容完整且所述数据内容正确时, 所述 数据交互装置允许发送所述数据内容给网络地理信息系统的客户端。
在本实施例中,只有在所述步骤 2023中得到的 XMLHttp请求对 象 readyState属性值等于 4,且 XMLHttpRequest对象 status属性值 等于 200时, 允许发送所述数据内容给网络地理信息系统的客户端。
本发明实施例提供的数据交互的方法, 利用预设的 XMLHTTP请 求对象发送 XMLHTTP请求给 WEB-GIS服务器端, 以实现 WEB-GIS服务 器端与 WEB-GIS 客户端之间的数据异步交互, WEB-GIS 客户端向 WEB-GIS服务器端发送请求时, 这些请求不是直接发送给 WEB-GIS服 务器端, 而是通过数据交互装置处理后再发送给 WEB-GIS服务器端, WEB-G I S服务器端通过数据交互装置返回数据给 WEB-G I S客户端时, WEB-G I S客户端不需要更新整个网页, 而只是更新网页一部分, 解决 了现有技术中由于同样的数据在网络上反复传输, 负载较大, 效率很 低, 从而导致用户的操作响应时间过长的问题。
本发明实施例提供的数据交互的装置, 如图 5所示, 包括: 生成单元 301 , 用于根据预设的 XMLHTTP请求对象和网络地理 信息系统中客户端的输入内容生成 XMLHTTP请求; 具体的实现方法可 以参见如图 2所示的步骤 202所述, 此处不再赘述。
第一发送单元 302 , 用于发送生成单元生成的 XMLHTTP请求给 网络地理信息系统中的服务器端, 以实现所述服务器端与所述客户端 之间的数据异步交互。 具体的实现方法可以参见如图 2 所示的步骤 202所述, 此处不再赘述。
如图 6所示, 本发明又一实施例提供的数据交互的装置, 还包 括:
接收单元 303 , 用于接收所述服务器端返回的数据内容, 所述 数据内容是由所述服务器端根据所述 XMLHTTP请求向所述网络地理信 息系统中的数据库请求响应得到的; 具体的实现方法可以参见如图 3 所示的步骤 2021所述, 此处不再赘述。
第二发送单元 304 , 用于发送所述接收单元接收的数据内容给 所述客户端。 具体的实现方法可以参见如图 3所示的步骤 2022所述, 此处不再赘述。
进一步的, 为了保证异步数据交互的准确性, 如图 7所示, 所 述数据交互的装置, 还包括:
判断单元 305 , 用于根据所述 XMLHTTP请求对象的属性判断所 述接收单元接收的数据内容是否完整以及所述数据内容是否正确; 具 体的实现方法可以参见如图 3所示的步骤 2023所述, 此处不再赘述。
允许单元 306 , 用于当所述数据内容完整且所述数据内容正确 时, 允许所述第二发送单元发送所述数据内容给网络地理信息系统的 客户端。 具体的实现方法可以参见如图 3所示的步骤 2024所述, 此 处不再赘述。
所述数据交互装置是位于所述 WEB-GIS服务器端与 WEB-GIS客 户端之间的 AJAX引擎。
本发明实施例提供的数据交互的装置, 利用预设的 XMLHTTP请 求对象发送 XMLHTTP请求给 WEB-G IS服务器端, 以实现 WEB-GIS服务 器端与 WEB-GIS 客户端之间的数据异步交互, WEB-GIS 客户端向 WEB-GIS服务器端发送请求时, 这些请求不是直接发送给 WEB-GIS服 务器端, 而是通过数据交互装置处理后再发送给 WEB-GIS服务器端, WEB-GIS服务器端通过数据交互装置返回数据给 WEB-GIS客户端时, WEB-GIS客户端不需要更新整个网页, 而只是更新网页一部分, 解决 了现有技术中由于同样的数据在网络上反复传输, 负载较大, 效率很 低, 从而导致用户的操作响应时间过长的问题。
本发明实施例提供的数据交互的方法及装置适用于网络地理信 息系统。
本领域普通技术人员可以理解实现上述实施例方法中的全部或 部分步骤是可以通过程序来指令相关的硬件完成, 所述的程序可以存 储于一计算机可读存储介质中, 如 R0M/RAM、 磁碟或光盘等。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术 范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以所述权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种数据交互的方法, 应用于网络地理信息系统, 其特征在于, 所述网络地理信息系统包括数据交互装置, 所述数据交互的方法包括: 所述数据交互装置根据预设的 XMLHTTP 请求对象和所述网络地理 信息系统中客户端的输入内容生成 XMLHTTP请求;
所述数据交互装置发送所述 XMLHTTP 请求给所述网络地理信息系 统中的服务器端, 以实现所述服务器端与所述客户端之间的数据异步 交互。
2、 根据权利要求 1所述的方法, 其特征在于, 所述实现所述服务 器端与所述客户端之间的数据异步交互, 包括:
所述数据交互装置接收所述服务器端返回的数据内容, 所述数据 内容是由所述服务器端根据所述 XMLHTTP 请求向所述网络地理信息系 统中的数据库请求响应得到的;
所述数据交互装置发送所述数据内容给所述客户端。
3、 根据权利要求 2所述的方法, 其特征在于, 所述发送所述数据 内容给所述客户端之前, 还包括:
所述数据交互装置根据所述 XMLHTTP 请求对象的属性判断所述数 据内容是否完整以及所述数据内容是否正确;
当所述数据内容完整且所述数据内容正确时, 所述数据交互装置 允许发送所述数据内容给网络地理信息系统的客户端。
4、 根据权利要求 3 所述的方法, 其特征在于, 所述数据内容是 s t r i ng类型的数据内容或标准的 XML类型的数据内容。
5、 一种数据交互的装置, 其特征在于, 包括:
生成单元, 用于根据预设的 XMLHTTP 请求对象和网络地理信息系 统中客户端的输入内容生成 XMLHTTP请求;
第一发送单元, 用于发送生成单元生成的 XMLHTTP 请求给网络地 理信息系统中的服务器端, 以实现所述服务器端与所述客户端之间的 数据异步交互。
6、 根据权利要求 5所述的装置, 其特征在于, 还包括: 接收单元, 用于接收所述服务器端返回的数据内容, 所述数据内 容是由所述服务器端根据所述 XMLHTTP 请求向所述网络地理信息系统 中的数据库请求响应得到的;
第二发送单元, 用于发送所述接收单元接收的数据内容给所述客 户端。
7、 根据权利要求 6所述的装置, 其特征在于, 还包括:
判断单元, 用于根据所述 XMLHTTP 请求对象的属性判断所述接收 单元接收的数据内容是否完整以及所述数据内容是否正确;
允许单元, 用于当所述数据内容完整且所述数据内容正确时, 允 许所述第二发送单元发送所述数据内容给网络地理信息系统的客户
PCT/CN2010/080180 2010-01-11 2010-12-23 数据交互的方法和装置 WO2011082629A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010033885A CN101815064A (zh) 2010-01-11 2010-01-11 数据交互的方法和装置
CN201010033885.7 2010-01-11

Publications (1)

Publication Number Publication Date
WO2011082629A1 true WO2011082629A1 (zh) 2011-07-14

Family

ID=42622181

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/080180 WO2011082629A1 (zh) 2010-01-11 2010-12-23 数据交互的方法和装置

Country Status (2)

Country Link
CN (1) CN101815064A (zh)
WO (1) WO2011082629A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815064A (zh) * 2010-01-11 2010-08-25 北京世纪高通科技有限公司 数据交互的方法和装置
CN104077117A (zh) * 2013-03-26 2014-10-01 联想(北京)有限公司 信息处理方法和控制点设备
CN106126595A (zh) * 2016-06-20 2016-11-16 浪潮电子信息产业股份有限公司 一种文件下载方法及装置
CN108540545B (zh) * 2018-03-27 2020-05-08 武汉理工大学 基于多Agent的云计算环境中空间数据双向双重异步传输方法
CN109032583B (zh) * 2018-07-25 2022-06-17 北京小米移动软件有限公司 数据交互方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090125799A1 (en) * 2007-11-14 2009-05-14 Kirby Nathaniel B User interface image partitioning
CN101441631A (zh) * 2007-11-19 2009-05-27 上海新纳广告传媒有限公司 一种用于异步网页浏览的数据访问方法
CN101815064A (zh) * 2010-01-11 2010-08-25 北京世纪高通科技有限公司 数据交互的方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090125799A1 (en) * 2007-11-14 2009-05-14 Kirby Nathaniel B User interface image partitioning
CN101441631A (zh) * 2007-11-19 2009-05-27 上海新纳广告传媒有限公司 一种用于异步网页浏览的数据访问方法
CN101815064A (zh) * 2010-01-11 2010-08-25 北京世纪高通科技有限公司 数据交互的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHOU CAILAN ET AL.: "Application ofAJAX in the Secondary Development Based on Map Service.", JOURNAL OF WUHAN UNIVERSITY OF TECHNOLOGY(INFORMATION & MANAGEMENT ENGINEERING)., vol. 29, no. 7, July 2007 (2007-07-01), pages 49 *

Also Published As

Publication number Publication date
CN101815064A (zh) 2010-08-25

Similar Documents

Publication Publication Date Title
US7533419B2 (en) Human interactive proof service
US9032282B2 (en) Method and web content management system for A/B testing or multivariate testing of websites on computers being connected to a web content management system
CN104184832B (zh) 网络应用中的数据提交方法及装置
WO2017049769A1 (zh) 一种用于在移动应用中提供目标页面的方法与设备
CA2420017A1 (en) Developing applications online
US20170272499A1 (en) Method and device for loading webpage
JP2004234111A5 (zh)
RU2014145195A (ru) Технологии для автоматической синдикации содержимого по сети
WO2018001124A1 (zh) 网页文件发送方法、网页渲染方法及装置、网页渲染系统
WO2011082629A1 (zh) 数据交互的方法和装置
TW201035861A (en) Content rendering on a computer
CN104427627A (zh) 测试数据获取方法、客户端与服务器
CN103051706A (zh) 应用于动态网站的动态网页请求处理系统和方法
EP2659397A2 (en) Method and web server for implementing web access
CN109408701A (zh) 一种网络爬虫爬取路径的展示方法和装置
CN107357890A (zh) 一种网页文件处理方法、装置及系统和存储设备
US10103961B2 (en) Collecting client-side application performance monitoring information
CN103237003A (zh) 对网络中的高访问流量进行响应的方法和装置
WO2013013557A1 (zh) 网络媒介信息的展示处理方法和系统
CN110515631B (zh) 应用安装数据包的生成方法、服务器及计算机存储介质
WO2011153707A1 (en) Providing answer box functionality to third party search engines
CN114297544A (zh) 一种远程浏览方法、装置、设备及存储介质
WO2012028033A1 (zh) 消息更新的方法和装置
CN113836454A (zh) 一种内容展示页面的展示方法、装置、介质及设备
WO2012070925A1 (en) Method and system for asynchronous processing in a web application server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10841972

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10841972

Country of ref document: EP

Kind code of ref document: A1