WO2013004120A1 - Method and device for calling document library system - Google Patents

Method and device for calling document library system Download PDF

Info

Publication number
WO2013004120A1
WO2013004120A1 PCT/CN2012/076532 CN2012076532W WO2013004120A1 WO 2013004120 A1 WO2013004120 A1 WO 2013004120A1 CN 2012076532 W CN2012076532 W CN 2012076532W WO 2013004120 A1 WO2013004120 A1 WO 2013004120A1
Authority
WO
WIPO (PCT)
Prior art keywords
uoml
document library
library system
network
instruction
Prior art date
Application number
PCT/CN2012/076532
Other languages
French (fr)
Chinese (zh)
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 WO2013004120A1 publication Critical patent/WO2013004120A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion

Definitions

  • the present invention relates to document library technology, and more particularly to a method and apparatus for calling a document library system. Background technique
  • the Chinese patent application with the application number 200910076749.3 provides a client/server model based unstructured data (UMML) processing system and unstructured data (UMML) processing method.
  • UMML unstructured data
  • a system for implementing a network call document library based on UOML is disclosed, which system is composed of a client and a remote server.
  • the client is configured to receive a predefined instruction from the application software, invoke a corresponding function in the client component according to the predefined instruction, and/or perform network communication with the server, to invoke a corresponding function in the server.
  • the server is configured to perform network communication with the client, and provide a corresponding function according to the call of the client; the predefined instruction is independent of the storage form of the unstructured data.
  • the local application when the local application wants to call the remote document library, the local application uses UOML to call the API interface of the client component, and the client component resolves the UOML, and then uses the custom protocol to communicate with the remote document library system. Finally, the local application software is operated on the remote document library system.
  • the local application software does not directly call the remote document library system through UOML, so that the remote document library system itself loses the document interoperability brought by using UOML.
  • the application scope of the remote document library system is also limited, for example, if the application software is a Java program or a browser application, and the client component of the document library system provides a C++ version. API, the application software cannot call the remote document library system by calling the client component of the document library system. And if you develop a document library that supports various programming languages The system will increase the development cost of the remote document library system.
  • an embodiment of the present invention provides a method and apparatus for invoking a document library system, which can directly call a remote document library system through UOML, realize a method of calling a local document library through UOML and a method of remote document library, and improve remote calling. s efficiency.
  • the embodiment of the present invention provides a method for calling a document library system, including: mapping a UOML operation instruction to a network request conforming to a network protocol;
  • the network request is sent to the remote document library system for its corresponding operation on the document data.
  • An embodiment of the present invention further provides an apparatus for calling a document library system, including:
  • the first module is applied to the local application side for mapping UOML operation instructions to network requests conforming to the network protocol;
  • the second module applied to the local application side for mapping UOML operation instructions to network requests conforming to the network protocol.
  • the embodiment of the present invention fully utilizes the network service transmission protocol independently of the programming language and UOML's own document interoperability, and realizes that the local program (including the browser application M uses UOML to directly call the remote document library system resource to operate; therefore,
  • the technical solution disclosed by the embodiment of the invention encapsulates the intermediate link of the local application calling the remote document library system, realizes the unification of the way of calling the local document library through the UOML and the way of the remote document library, and improves the remote calling efficiency.
  • FIG. 1 is a flowchart of a method for calling a document library system according to an embodiment of the present invention. detailed description
  • the embodiment of the present invention maps a UOML operation instruction to a network service protocol network request through a network service platform, and sends the network request to a remote document library system; the remote document library system remaps the received network request to a remote document library.
  • FIG. 1 is a flowchart of a method for calling a document library system according to an embodiment of the present invention. As shown in Figure 1, the method specifically includes:
  • Step 101 The local application calls the web service of the remote document library system.
  • Web Services uses protocols such as Single Object Access Protocol (SOAP), Remote Procedure Call Protocol (XML-RPC), and Lightweight Remote Procedure Call Protocol (JSON-RPC).
  • SOAP Single Object Access Protocol
  • XML-RPC Remote Procedure Call Protocol
  • JSON-RPC Lightweight Remote Procedure Call Protocol
  • Step 102 The local application maps the UOML operation instruction to a network request conforming to the Web Service protocol, and sends the network request to the remote document library system.
  • the UOML operation instruction includes an action of a UOML operation instruction and an object of a UOML operation instruction.
  • the UOML operation object is mapped to a composite data type of the Web Service protocol, specifically, the attribute of the UOML operation object is mapped to a single data type variable or complex data in the composite data type of the Web Service protocol.
  • the type variable, the child element of the UOML operation object corresponds to the single data type variable or the composite data type variable in the composite data type; meanwhile, the UOML operation action is mapped to the single data type variable in the Web Service protocol, which may be A single single data type, or a single data type variable in a data type.
  • the network request can be in the form of HTTP.
  • the WebService protocol calling function provided by the document library system may be invoked, and the UOML operation instruction object is assigned to the parameter of the WebService protocol calling function; specifically, the attribute mapping of the UOML operation instruction object may be For a single data type variable or a complex data type variable in a composite data type of the Web Service protocol, a child element of the UOML operation object corresponds to a single data type variable or a composite data type variable in the composite data type.
  • the same function call address may be provided for all UOML operations, such as http://docbase.xxx.com/action.jsp, and different actions in the UOML operation instruction are mapped to the function call address. Different function names.
  • different calling function addresses may be assigned to different UOML operation objects, such as a URL: http://docbase.xxx.com/UOML instruction name. jsp.
  • Step 103 The remote document library system remaps the received network request to its recognizable programming language instruction and operates on the document data according to the instruction.
  • Step 104 The remote document library system maps the operation result to generate a UOML return instruction to a network request of the Web Service protocol, and sends the network request to the local application.
  • Step 105 The local application parses and determines whether the document library system successfully operates the document data according to the returned network request.
  • a method for calling a document library system disclosed in the above embodiment of the present invention is described below by taking a remote document library as an example.
  • the Web Service of the remote document library system uses XML-RPC as the transport protocol to transmit a UOML command that opens the document (Open), including:
  • Step 1 The local application generates an Open UOML instruction, and encapsulates the instruction according to the XML-RPC protocol, that is, according to the above step 102, the instruction is encapsulated into an instruction conforming to the XML-RPC transmission protocol, and the XML string is as follows:
  • Step 2 The local application sends the encapsulated Open command to the remote document library system by way of HTTP request;
  • Step 3 The remote document library system receives the HTTP request and parses the Open instruction according to the XML-PRC protocol, and remaps the Open instruction to the instruction of the programming language recognized by the remote document library system;
  • Step 4 The remote document library system opens the document according to the document library system path included in the parsed instruction, and generates a UOML RET instruction, and encapsulates the UOML RET instruction according to the XML-RPC protocol, and encapsulates the encapsulated
  • the UOML RET instruction is returned to the local application as an HTTP request; the handle part of the UOML RET instruction encapsulated by the XML-RPC protocol is described by a URI, and the XML string is as follows:
  • the URI or DOI can be used to uniquely specify a specific object in the document library system, and it is the use of the document library system that the processing object of each instruction can be a fine-grained object. In this way, multiple objects of the same document or multiple attributes of an object can be processed by multiple network requests, which reduces the programming difficulty and the amount of data transferred at one time.
  • Step 5 The local application receives the returned HTTP request, parses the UOML RET instruction according to the XML-PRC protocol, and resolves whether the remote document library is successfully opened.
  • the process of step 1 and step 2 above may further be: calling an XML-PRC-compliant calling function of a remote document system URL of http: ⁇ docbase.xxx.com/action.jsp, Assign a value to the function parameter, such as mapping the action Open to the method name, and mapping the object of the Open instruction to the structure parameter.
  • the embodiment of the present invention further provides an apparatus for invoking a document library system, where the apparatus includes: a first module: applied to a local application side, configured to map a U0ML operation instruction to a data type of a network request in a network protocol;
  • the second module is applied to the local application side, and is used to send the network request to the remote document library system for operation on the remote document library system.
  • the device also includes:
  • the third module is applied to the remote document library system side, and is configured to re-map the received network request according to the network protocol to the remote document library system to recognize the instruction, and operate the document data according to the instruction;
  • the fourth module is applied to the remote document library system side, and is used to remap the UOML return instruction generated by the operation result to the network protocol network request, and return the network request to the local application.
  • the device also includes:
  • the fifth module is applied to the local application side for receiving the network request returned from the remote document library system, re-mapping the network request into a UOML return instruction, and parsing whether to implement the operation on the remote document library system.
  • the method for invoking a document library system fully utilizes the network service transmission protocol independently of the programming language and the UOML document interoperability, and realizes direct use of the UOML in a local program (including a browser application).
  • Remote document library system resources operate; in this case, the remote document library system can be described in languages such as Java, PHP, Python, etc., while local applications can use different languages such as C++, C#, JavaScript, etc. than the remote document library system. Description, as long as the local application and the remote document library system can communicate according to the network transport protocol of the Web Service;
  • the technical solution disclosed in the embodiment of the present invention encapsulates the intermediate link of the local application calling the remote document library system, realizes the unification of the way of calling the local document library through the UOML and the remote document library, and improves the remote calling efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed in the embodiments of the present invention is a method and device for calling document library system. Wherein, the said method comprises: mapping unstructured operation markup language (UOML) operating instructions into network requests conforming to the network protocol, and sending the network requests to a remote document library system for its corresponding operation on document data. The application of the method and device provided by the embodiments of the present invention enables reducing the intermediate links of that local application program calls the remote document library system, achieving a unified manner of UOML calling local document library and calling remote document library by calling the remote document library directly through UOML, and improving UOML remote operation efficiency of the document library.

Description

一种调用文档库系统的方法和装置 技术领域  Method and device for calling document library system
本发明涉及文档库技术,特别是涉及一种调用文档库系统的方法和装置。 背景技术  The present invention relates to document library technology, and more particularly to a method and apparatus for calling a document library system. Background technique
申请号为 200910076749.3 的中国专利申请提供了一种基于客户机 /服务 器模式的非结构化数据 ( UOML )处理系统和非结构化数据 ( UOML )处理 方法。在该专利申请中,公开了一种基于 UOML实现网络调用文档库的系统, 该系统由客户端以及远程服务器端构成。 其中, 客户端, 用于接收来自于应 用软件的预定义指令,根据所述预定义指令调用客户端组件中的相应功能和 / 或与服务器进行网络通信, 用以调用服务器端中的相应功能完成所述操作; 服务器端, 用于与客户端进行网络通信, 根据客户端的调用提供相应功能; 所述预定义指令与所述非结构化数据的存储形式无关。  The Chinese patent application with the application number 200910076749.3 provides a client/server model based unstructured data (UMML) processing system and unstructured data (UMML) processing method. In this patent application, a system for implementing a network call document library based on UOML is disclosed, which system is composed of a client and a remote server. The client is configured to receive a predefined instruction from the application software, invoke a corresponding function in the client component according to the predefined instruction, and/or perform network communication with the server, to invoke a corresponding function in the server. The server is configured to perform network communication with the client, and provide a corresponding function according to the call of the client; the predefined instruction is independent of the storage form of the unstructured data.
在这种方式下, 当本地应用程序想调用远程文档库时, 本地应用程序利 用 UOML调用客户端组件的 API接口, 客户端组件解析 UOML后, 再使用 自定义的协议和远程文档库系统通讯, 最终实现本地应用软件对远程文档库 系统的操作。  In this way, when the local application wants to call the remote document library, the local application uses UOML to call the API interface of the client component, and the client component resolves the UOML, and then uses the custom protocol to communicate with the remote document library system. Finally, the local application software is operated on the remote document library system.
现有的方法虽然实现了对远程文档库系统的操作, 但本地应用软件并未 直接通过 UOML调用远程文档库系统,使得远程文档库系统本身失去了使用 UOML所带来的文档互操作性。  Although the existing method implements the operation of the remote document library system, the local application software does not directly call the remote document library system through UOML, so that the remote document library system itself loses the document interoperability brought by using UOML.
此外由于文档库系统的客户端组件的使用, 也限制了远程文档库系统的 应用范围, 比如若应用软件为 Java程序或者是浏览器应用, 而文档库系统的 客户端组件提供的是 C++版本的 API, 则应用软件无法通过调用文档库系统 的客户端组件来调用远程文档库系统。 而若开发支持各种编程语言的文档库 系统, 则会增加远程文档库系统的开发成本。 In addition, due to the use of the client component of the document library system, the application scope of the remote document library system is also limited, for example, if the application software is a Java program or a browser application, and the client component of the document library system provides a C++ version. API, the application software cannot call the remote document library system by calling the client component of the document library system. And if you develop a document library that supports various programming languages The system will increase the development cost of the remote document library system.
上述现有技术存在的问题是因为通过 UOML调用本地文档库的方式和 调用远程文档库的方式的不统一造成的。 发明内容  The above prior art problems are caused by the inconsistency between the way in which the local document library is called by UOML and the way in which the remote document library is called. Summary of the invention
为此, 本发明实施例提供一种调用文档库系统的方法和装置, 可以直接 通过 UOML调用远程文档库系统, 实现通过 UOML调用本地文档库的方式 和远程文档库的方式的统一, 提高远程调用的效率。  To this end, an embodiment of the present invention provides a method and apparatus for invoking a document library system, which can directly call a remote document library system through UOML, realize a method of calling a local document library through UOML and a method of remote document library, and improve remote calling. s efficiency.
具体来说, 本发明实施例提供了一种调用文档库系统的方法, 包括: 将 UOML操作指令映射为符合网络协议的网络请求;  Specifically, the embodiment of the present invention provides a method for calling a document library system, including: mapping a UOML operation instruction to a network request conforming to a network protocol;
将该网络请求发送给远程文档库系统, 以供其对文档数据进行相应的操 作。  The network request is sent to the remote document library system for its corresponding operation on the document data.
本发明实施例还提供了一种调用文档库系统的装置, 包括:  An embodiment of the present invention further provides an apparatus for calling a document library system, including:
第一模块: 应用于本地应用程序侧,用于将 UOML操作指令映射为符合 网络协议的网络请求;  The first module is applied to the local application side for mapping UOML operation instructions to network requests conforming to the network protocol;
第二模块: 应用于本地应用程序侧,用于将 UOML操作指令映射为符合 网络协议的网络请求。  The second module: applied to the local application side for mapping UOML operation instructions to network requests conforming to the network protocol.
本发明实施例充分应用网络服务传输协议独立于编程语言和 UOML 本 身文档互操作性的特点,实现在本地程序(包括浏览器应用程序 M吏用 UOML 直接调用远程文档库系统资源进行操作; 因此, 本发明实施例公开的技术方 案筒化了本地应用程序调用远程文档库系统的中间环节, 实现了通过 UOML 调用本地文档库的方式和远程文档库的方式的统一, 提高了远程调用效率。 附图说明  The embodiment of the present invention fully utilizes the network service transmission protocol independently of the programming language and UOML's own document interoperability, and realizes that the local program (including the browser application M uses UOML to directly call the remote document library system resource to operate; therefore, The technical solution disclosed by the embodiment of the invention encapsulates the intermediate link of the local application calling the remote document library system, realizes the unification of the way of calling the local document library through the UOML and the way of the remote document library, and improves the remote calling efficiency. Description
图 1为本发明实施例提供的一种调用文档库系统的方法流程图。 具体实施方式 FIG. 1 is a flowchart of a method for calling a document library system according to an embodiment of the present invention. detailed description
为使本发明的目的、 技术方案及优点更加清楚明白, 以下参照附图并举 实施例, 对本发明作进一步详细说明。  The present invention will be further described in detail below with reference to the drawings and embodiments.
本发明实施例通过网络服务平台,将 UOML操作指令映射为网络服务协 议的网络请求, 并将该网络请求发送给远程文档库系统; 远程文档库系统将 接收到的网络请求重新映射为远程文档库系统编程语言识别的指令, 根据该 指令执行相应的文档操作。  The embodiment of the present invention maps a UOML operation instruction to a network service protocol network request through a network service platform, and sends the network request to a remote document library system; the remote document library system remaps the received network request to a remote document library. An instruction recognized by the system programming language to perform a corresponding document operation according to the instruction.
图 1为依据本发明实施例提供的调用文档库系统的方法流程图。 如图 1 所示, 该方法具体包括:  FIG. 1 is a flowchart of a method for calling a document library system according to an embodiment of the present invention. As shown in Figure 1, the method specifically includes:
步骤 101 : 本地应用程序调用远程文档库系统的 Web Service。  Step 101: The local application calls the web service of the remote document library system.
通常, Web Service采用的协议包括筒单对象访问协议(SOAP ) , 远程 过程调用协议( XML-RPC ) , 轻量级的远程过程调用协议( JSON-RPC ) 等 协议。  In general, Web Services uses protocols such as Single Object Access Protocol (SOAP), Remote Procedure Call Protocol (XML-RPC), and Lightweight Remote Procedure Call Protocol (JSON-RPC).
步骤 102: 本地应用程序将 UOML操作指令映射为符合 Web Service协 议的网络请求, 并将该网络请求发送给远程文档库系统。  Step 102: The local application maps the UOML operation instruction to a network request conforming to the Web Service protocol, and sends the network request to the remote document library system.
其中,所述 UOML操作指令包括 UOML操作指令的动作和 UOML操作 指令的对象。  The UOML operation instruction includes an action of a UOML operation instruction and an object of a UOML operation instruction.
在本发明一个实施例中, 将 UOML操作对象映射为 Web Service协议的 复合数据类型, 具体来说, 将 UOML操作对象的属性映射为 Web Service协 议的复合数据类型中筒单数据类型变量或复杂数据类型变量, UOML操作对 象的子元素对应于复合数据类型中的筒单数据类型变量或复合数据类型变 量; 同时, 将 UOML操作动作映射为 Web Service协议中的筒单数据类型变 量, 其既可以是一个单独的筒单数据类型, 也可以是某个符合数据类型中的 筒单数据类型变量。 在该实施例中, 网络请求可以为 HTTP的形式。 在本发明的另一实施例中,可以调用文档库系统提供的 WebService协议 调用函数,将 UOML操作指令对象赋值给 WebService协议调用函数的参数; 具体来说, 可以是将 UOML操作指令对象的属性映射为 Web Service协议的 复合数据类型中筒单数据类型变量或复杂数据类型变量, UOML操作对象的 子元素对应于复合数据类型中的筒单数据类型变量或复合数据类型变量。 在 本发明一实施例中, 可以为所有的 UOML操作提供同一函数调用地址, 如 http://docbase.xxx.com/action.jsp, 将 UOML操作指令中的不同动作映射为该 函数调用地址上的不同函数名称。 在本发明另一实施例中, 可以为不同的 UOML 操作对象分别分配不 同 的调用 函数地址, 如 URL: http://docbase.xxx.com/UOML指令名称. jsp。 In an embodiment of the present invention, the UOML operation object is mapped to a composite data type of the Web Service protocol, specifically, the attribute of the UOML operation object is mapped to a single data type variable or complex data in the composite data type of the Web Service protocol. The type variable, the child element of the UOML operation object corresponds to the single data type variable or the composite data type variable in the composite data type; meanwhile, the UOML operation action is mapped to the single data type variable in the Web Service protocol, which may be A single single data type, or a single data type variable in a data type. In this embodiment, the network request can be in the form of HTTP. In another embodiment of the present invention, the WebService protocol calling function provided by the document library system may be invoked, and the UOML operation instruction object is assigned to the parameter of the WebService protocol calling function; specifically, the attribute mapping of the UOML operation instruction object may be For a single data type variable or a complex data type variable in a composite data type of the Web Service protocol, a child element of the UOML operation object corresponds to a single data type variable or a composite data type variable in the composite data type. In an embodiment of the present invention, the same function call address may be provided for all UOML operations, such as http://docbase.xxx.com/action.jsp, and different actions in the UOML operation instruction are mapped to the function call address. Different function names. In another embodiment of the present invention, different calling function addresses may be assigned to different UOML operation objects, such as a URL: http://docbase.xxx.com/UOML instruction name. jsp.
步骤 103: 远程文档库系统将接收到的网络请求重新映射为其可识别的 编程语言指令, 并根据该指令对文档数据进行操作。  Step 103: The remote document library system remaps the received network request to its recognizable programming language instruction and operates on the document data according to the instruction.
步骤 104:远程文档库系统将操作结果生成 UOML返回指令映射为 Web Service协议的网络请求, 并将该网络请求发送给本地应用程序。  Step 104: The remote document library system maps the operation result to generate a UOML return instruction to a network request of the Web Service protocol, and sends the network request to the local application.
步骤 105: 本地应用程序根据该返回的网络请求, 解析判断文档库系统 是否成功的对文档数据进行了操作。  Step 105: The local application parses and determines whether the document library system successfully operates the document data according to the returned network request.
下面以打开远程文档库为例, 说明本发明上述实施例中公开的一种调用 文档库系统的方法。  A method for calling a document library system disclosed in the above embodiment of the present invention is described below by taking a remote document library as an example.
殳设远程文档库系统的 Web Service采用 XML-RPC作为传输协议, 传 输一个打开文档 (Open ) 的 UOML指令, 具体包括:  The Web Service of the remote document library system uses XML-RPC as the transport protocol to transmit a UOML command that opens the document (Open), including:
步骤一, 本地应用程序生成 Open 的 UOML 指令, 并将该指令按 XML-RPC协议封装, 即根据上述步骤 102, 将该指令封装成符合 XML-RPC 传输协议的指令, 其 XML串如下:  Step 1: The local application generates an Open UOML instruction, and encapsulates the instruction according to the XML-RPC protocol, that is, according to the above step 102, the instruction is encapsulated into an instruction conforming to the XML-RPC transmission protocol, and the XML string is as follows:
<?xml version="1.0"?> <methodCall> <?xml version="1.0"?> <methodCall>
<methodName>OPEN</methodName>  <methodName>OPEN</methodName>
<params>  <params>
<param>  <param>
<struct>  <struct>
<member>  <member>
<name> create</name>  <name> create</name>
<value>< boolean > false </ boolean ></value>  <value>< boolean > false </ boolean ></value>
</member>  </member>
<member>  <member>
<name>del_exist</name>  <name>del_exist</name>
<value>< boolean > false </ boolean ></value>  <value>< boolean > false </ boolean ></value>
</member>  </member>
<member>  <member>
<name> path </name>  <name> path </name>
<value>< string > /base/test. sep </ string ></value>  <value>< string > /base/test. sep </ string ></value>
</member>  </member>
</struct>  </struct>
</param>  </param>
</params>  </params>
</methodCall>  </methodCall>
从上述程序段可以看出, 将 Open指令的方法名称映射为 XML-RPC协 议中筒单数据变量——方法名称(Method Name ) , 将 Open指令的操作对象 映射为 XML-RPC协议中复合数据类型——结构体参数。 步骤二: 本地应用程序将封装后的 Open指令以 HTTP请求的方式发送 给远程文档库系统; As can be seen from the above program segment, the method name of the Open instruction is mapped to the single data variable in the XML-RPC protocol - Method Name, and the operation object of the Open instruction is mapped to the composite data type in the XML-RPC protocol. - Structure parameters. Step 2: The local application sends the encapsulated Open command to the remote document library system by way of HTTP request;
步骤三: 远程文档库系统收到 HTTP请求, 并按照 XML-PRC协议解析 Open指令, 即将 Open指令重新映射到远程文档库系统所能识别的编程语言 的指令;  Step 3: The remote document library system receives the HTTP request and parses the Open instruction according to the XML-PRC protocol, and remaps the Open instruction to the instruction of the programming language recognized by the remote document library system;
步骤四: 远程文档库系统根据解析后的指令中所包含的文档库系统路径 打开该文档, 并生成 UOML的 RET指令, 将所述的 UOML的 RET指令按 XML-RPC协议封装, 将封装后的 UOML的 RET指令以 HTTP请求的方式 返回给本地应用程序; 其中按 XML-RPC协议封装后的 UOML的 RET指令 中的 handle部分采用 URI进行描述, 其 XML串如下:  Step 4: The remote document library system opens the document according to the document library system path included in the parsed instruction, and generates a UOML RET instruction, and encapsulates the UOML RET instruction according to the XML-RPC protocol, and encapsulates the encapsulated The UOML RET instruction is returned to the local application as an HTTP request; the handle part of the UOML RET instruction encapsulated by the XML-RPC protocol is described by a URI, and the XML string is as follows:
<?xml version="1.0"?>  <?xml version="1.0"?>
<methodResponse>  <methodResponse>
<params>  <params>
<param>  <param>
<struct>  <struct>
<member>  <member>
<name> SUCCESS </name>  <name> SUCCESS </name>
<value>< boolean > false </ boolean ></value>  <value>< boolean > false </ boolean ></value>
</member>  </member>
<member>  <member>
<name> handle </name>  <name> handle </name>
<valuexstring>http://docbase.com/base/test.sep </ stringx/value> </member> </param> <valuexstring>http://docbase.com/base/test.sep </ stringx/value></member> </param>
</params>  </params>
</methodResponse>  </methodResponse>
这里, 由于远程调用无法保存对象句柄,所以可以采用 URI或 DOI来唯 一指定文档库系统中某个具体对象, 同时正是利用用文档库系统, 使得每条 指令的处理对象可以是细粒度的对象, 这样对于同一个文档的多个对象或一 个对象的多个属性都可以采用多条网络请求来处理, 减少了编程难度和一次 传递的数据量。  Here, since the remote call cannot save the object handle, the URI or DOI can be used to uniquely specify a specific object in the document library system, and it is the use of the document library system that the processing object of each instruction can be a fine-grained object. In this way, multiple objects of the same document or multiple attributes of an object can be processed by multiple network requests, which reduces the programming difficulty and the amount of data transferred at one time.
步骤五: 本地应用程序接收到返回的 HTTP请求, 按照 XML-PRC协议 解析 UOML的 RET指令, 解析是否成功打开远程文档库。  Step 5: The local application receives the returned HTTP request, parses the UOML RET instruction according to the XML-PRC protocol, and resolves whether the remote document library is successfully opened.
在本发明另一具体实施例中, 上述步骤一和步骤二的过程还可以是: 调用远程文档系统 URL 为 http:〃 docbase.xxx.com/action.jsp的符合 XML-PRC协议的调用函数, 为该函数参数赋值, 如将动作 Open映射为其中 的方法名称, 将 Open指令的对象映射为其中的结构体参数。  In another embodiment of the present invention, the process of step 1 and step 2 above may further be: calling an XML-PRC-compliant calling function of a remote document system URL of http:〃 docbase.xxx.com/action.jsp, Assign a value to the function parameter, such as mapping the action Open to the method name, and mapping the object of the Open instruction to the structure parameter.
或者, 当在远程文档库系统端每个动作都对应有一个调用函数原型时, 调用远程文档系统 URL为 http:〃 docbase.xxx.com/open.jsp的符合 XML-PRC协 议的调用函数。  Alternatively, when there is a call function prototype for each action on the remote document library system side, the XML-PRC protocol-compliant calling function with the remote document system URL of http:〃 docbase.xxx.com/open.jsp is called.
虽然上述实施例采用 XML-RPC为例, 本领域技术人员可以理解, 对其 他 Web service协议依然适用。  Although the above embodiment uses XML-RPC as an example, those skilled in the art can understand that other Web service protocols still apply.
本发明实施例还提供了一种调用文档库系统的装置, 所述装置包括: 第一模块: 应用于本地应用程序侧,用于将 U0ML操作指令映射为网络 协议中网络请求的数据类型;  The embodiment of the present invention further provides an apparatus for invoking a document library system, where the apparatus includes: a first module: applied to a local application side, configured to map a U0ML operation instruction to a data type of a network request in a network protocol;
第二模块: 应用于本地应用程序侧, 用于将该网络请求发送给远程文档 库系统, 以供其对远程文档库系统进行操作。 所述装置还包括: The second module: is applied to the local application side, and is used to send the network request to the remote document library system for operation on the remote document library system. The device also includes:
第三模块: 应用于远程文档库系统侧, 用于将收到的网络请求按照网络 协议重新映射为的远程文档库系统识别的指令, 根据该指令对文档数据进行 操作;  The third module is applied to the remote document library system side, and is configured to re-map the received network request according to the network protocol to the remote document library system to recognize the instruction, and operate the document data according to the instruction;
第四模块: 应用于远程文档库系统侧, 用于将操作结果生成的 UOML 返回指令重新映射为网络协议的网络请求, 并将该网络请求返回给本地应用 程序。  The fourth module: is applied to the remote document library system side, and is used to remap the UOML return instruction generated by the operation result to the network protocol network request, and return the network request to the local application.
所述装置还包括:  The device also includes:
第五模块: 应用于本地应用程序侧, 用于接收来自远程文档库系统返回 的网络请求,将该网络请求重新映射为 UOML返回指令,并解析是否实现对 远程文档库系统的操作。  The fifth module is applied to the local application side for receiving the network request returned from the remote document library system, re-mapping the network request into a UOML return instruction, and parsing whether to implement the operation on the remote document library system.
本发明实施例提供的一种调用文档库系统的方法, 充分应用网络服务传 输协议独立于编程语言和 UOML本身文档互操作性的特点,实现在本地程序 (包括浏览器应用程序)使用 UOML 直接调用远程文档库系统资源进行操 作; 在这种情况下, 远程文档库系统可以使用如 Java, PHP, Python等语言 描述,而本地应用程序可以使用与远程文档库系统不同的 C++, C#, JavaScript 等语言描述, 只要本地应用程序和远程文档库系统能够按 Web Service的网 络传输协议通信即可;  The method for invoking a document library system provided by the embodiment of the invention fully utilizes the network service transmission protocol independently of the programming language and the UOML document interoperability, and realizes direct use of the UOML in a local program (including a browser application). Remote document library system resources operate; in this case, the remote document library system can be described in languages such as Java, PHP, Python, etc., while local applications can use different languages such as C++, C#, JavaScript, etc. than the remote document library system. Description, as long as the local application and the remote document library system can communicate according to the network transport protocol of the Web Service;
因此, 本发明实施例公开的技术方案筒化了本地应用程序调用远程文档 库系统的中间环节,实现了通过 UOML调用本地文档库的方式和远程文档库 的方式的统一, 提高了远程调用效率。  Therefore, the technical solution disclosed in the embodiment of the present invention encapsulates the intermediate link of the local application calling the remote document library system, realizes the unification of the way of calling the local document library through the UOML and the remote document library, and improves the remote calling efficiency.
以上仅为本发明的较佳实施例, 并非用于限定本发明的保护范围。 凡在 本发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应包含 在本发明的保护范围之内。  The above are only the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求 Rights request
1、 一种调用文档库系统的方法, 其特征在于, 该方法包括:  A method for calling a document library system, the method comprising:
将 UOML操作指令映射为符合网络协议的网络请求;  Mapping UOML operation instructions to network requests that conform to network protocols;
将该网络请求发送给远程文档库系统, 以供其对文档数据进行相应的操 作。  The network request is sent to the remote document library system for its corresponding operation on the document data.
2、 根据权利要求 1所述的方法, 其特征在于, 所述将 UOML操作指令 映射为符合网络协议的网络请求包括:  2. The method according to claim 1, wherein the mapping the UOML operation instruction to the network protocol conforming to the network protocol comprises:
将 UOML操作指令的对象映射为网络协议的复合数据类型, 其中, UOML操作指令对象的属性对应于为网络协议的复合数据类型中筒单数据 类型变量或复杂数据类型变量, UOML操作指令对象的子元素对应于复合数 据类型中的筒单或复合数据类型变量;  Mapping the object of the UOML operation instruction to a composite data type of the network protocol, wherein the attribute of the UOML operation instruction object corresponds to a single data type variable or a complex data type variable in the composite data type of the network protocol, and the UOML operation instruction object The element corresponds to a single or composite data type variable in the composite data type;
将 UOML操作指令的动作映射为网络协议中的筒单数据类型变量。  The action of the UOML operation instruction is mapped to the data type variable in the network protocol.
3、 根据权利要求 1所述的方法, 其特征在于, 所述将 UOML操作指令 映射为符合网络协议的网络请求包括:  3. The method according to claim 1, wherein the mapping the UOML operation instruction to the network protocol conforming to the network protocol comprises:
调用远程文档库系统提供的 Web Service协议调用函数;  Calling the Web Service protocol call function provided by the remote document library system;
将 UOML操作指令对象赋值给 Web Service协议调用函数的参数。  Assign the UOML operation instruction object to the parameters of the Web Service protocol call function.
4、 根据权利要求 3 所述的方法, 其特征在于, 当远程文档库系统为所 有的 UOML操作提供同一函数调用地址时, 所述方法进一步包括:  The method according to claim 3, wherein when the remote document library system provides the same function call address for all UOML operations, the method further includes:
将 UOML操作指令的动作映射为该函数调用地址上对应的函数名称。  Map the action of the UOML operation instruction to the corresponding function name on the function call address.
5、 根据权利要求 1 所述的方法, 其特征在于, 远程文档库系统根据网 络请求对文档数据进行相应的操作的过程包括:  The method according to claim 1, wherein the remote document library system performs corresponding operations on the document data according to the network request, including:
将收到的网络请求按照网络协议重新映射为的远程文档库系统识别的 编程语言指令, 并根据该指令对对文档数据进行相应的操作。 The received network request is remapped into a programming language instruction recognized by the remote document library system according to the network protocol, and corresponding operations are performed on the document data according to the instruction.
6、 根据权利要求 1所述的方法, 其特征在于, 所述方法进一步包括: 接收来自远程文档库系统返回的符合网络协议的 UOML返回指令; 将该网络请求重新映射为本地应用程序识别的编程语言返回指令, 并解 析对远程文档库系统进行操作的操作结果。 6. The method of claim 1, wherein the method further comprises: receiving a UOML return instruction conforming to a network protocol returned from a remote document library system; re-mapping the network request to a programming identified by the local application The language returns instructions and parses the results of operations on the remote document library system.
7、 一种调用文档库系统的装置, 其特征在于, 包括:  7. An apparatus for invoking a document library system, comprising:
第一模块: 应用于本地应用程序侧, 用于将 UOML操作指令映射为符 合网络协议的网络请求;  The first module: is applied to the local application side, and is used for mapping the UOML operation instruction into a network request conforming to the network protocol;
第二模块: 应用于本地应用程序侧, 用于将 UOML操作指令映射为符 合网络协议的网络请求。  The second module: applied to the local application side, used to map UOML operation instructions to network requests that conform to the network protocol.
8、 根据权利要求 7所述的装置, 其特征在于, 进一步包括:  8. The device according to claim 7, further comprising:
第三模块: 应用于远程文档库系统侧, 用于将收到的网络请求按照网络 协议重新映射为的远程文档库系统识别的指令, 根据该指令对文档库系统进 行操作;  The third module is applied to the remote document library system side, and is configured to re-map the received network request according to the network protocol to the remote document library system to recognize the instruction, and operate the document library system according to the instruction;
第四模块: 应用于远程文档库系统侧, 用于将操作结果生成的 UOML 返回指令重新映射为网络协议的网络请求, 并将该网络请求返回给本地应用 程序。  The fourth module: is applied to the remote document library system side, and is used to remap the UOML return instruction generated by the operation result to the network protocol network request, and return the network request to the local application.
9、 根据权利要求 8所述的装置, 其特征在于, 进一步包括:  9. The device according to claim 8, further comprising:
第五模块: 应用于本地应用程序侧, 用于接收来自远程文档库系统返回 的网络请求, 将该网络请求重新映射为 UOML返回指令, 并解析是否实现 对远程文档库系统的操作。  The fifth module is applied to the local application side for receiving the network request returned from the remote document library system, re-mapping the network request into a UOML return instruction, and parsing whether the operation of the remote document library system is implemented.
PCT/CN2012/076532 2011-07-07 2012-06-06 Method and device for calling document library system WO2013004120A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110190418XA CN102299956A (en) 2011-07-07 2011-07-07 Method and device for calling document library system
CN201110190418.X 2011-07-07

Publications (1)

Publication Number Publication Date
WO2013004120A1 true WO2013004120A1 (en) 2013-01-10

Family

ID=45360126

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/076532 WO2013004120A1 (en) 2011-07-07 2012-06-06 Method and device for calling document library system

Country Status (2)

Country Link
CN (1) CN102299956A (en)
WO (1) WO2013004120A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299956A (en) * 2011-07-07 2011-12-28 北京书生数字图书馆软件技术有限公司 Method and device for calling document library system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1739097A (en) * 2003-01-15 2006-02-22 阿尔卡特公司 Push-based object request broker
CN101192141A (en) * 2006-11-20 2008-06-04 北京书生国际信息技术有限公司 Method for packaging UOML into application program interface
CN101783787A (en) * 2009-01-16 2010-07-21 北京书生国际信息技术有限公司 Unstructured data processing system and method in client/server mode
CN102299956A (en) * 2011-07-07 2011-12-28 北京书生数字图书馆软件技术有限公司 Method and device for calling document library system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1739097A (en) * 2003-01-15 2006-02-22 阿尔卡特公司 Push-based object request broker
CN101192141A (en) * 2006-11-20 2008-06-04 北京书生国际信息技术有限公司 Method for packaging UOML into application program interface
CN101783787A (en) * 2009-01-16 2010-07-21 北京书生国际信息技术有限公司 Unstructured data processing system and method in client/server mode
CN102299956A (en) * 2011-07-07 2011-12-28 北京书生数字图书馆软件技术有限公司 Method and device for calling document library system

Also Published As

Publication number Publication date
CN102299956A (en) 2011-12-28

Similar Documents

Publication Publication Date Title
CN111600909B (en) Data processing method, device, protocol conversion equipment and storage medium
US7894431B2 (en) System and method for communicating asynchronously with web services using message set definitions
JP5186565B2 (en) Aggregation on the client side for contextual request results
Lampesberger Technologies for web and cloud service interaction: a survey
US10313451B2 (en) System and method for providing a configuration wizard for use in creating representational state transfer services for execution in a service bus runtime
EP2765756A1 (en) Service configuration method and device
US9143378B2 (en) Rendering components within different browser environments
CN109815025B (en) Service model calling method, device and storage medium
US20230291741A1 (en) System and method to securely execute datacenter management operations remotely
US8332467B2 (en) Lightweight RRD extension framework
EP2608487A1 (en) Method, system and computer program product for providing composite web application
US9652269B2 (en) System and method for supporting representational state transfer services natively in a service bus runtime
US10382521B2 (en) Gateway that enables a browser-based application to communicate with a server-side application using a non-browser-compatible protocol
WO2023103727A1 (en) Routing method for service debugging, electronic device, medium and program product
WO2010133097A1 (en) Data sharing method, server and data sharing system for widget system
CN108446105A (en) A kind of Lightweight AP I Server Development Frameworks and development approach
Mangas et al. WOTPY: A framework for web of things applications
JP5678184B2 (en) Remote user interface management apparatus and method and system therefor
US20070282851A1 (en) Mapping and communicating data from a user interface to an application program
Kang et al. Android RMI: a user-level remote method invocation mechanism between Android devices
WO2013004120A1 (en) Method and device for calling document library system
JP2015159346A (en) federation method and network system
KR101270746B1 (en) Apparatus and Method for mediating web service
EP2101474A1 (en) Service bindings for web services
US9977700B2 (en) System and method for providing an application programming interface for deploying a service bus artifact from a local development environment to a cloud environment

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: 12807863

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: 12807863

Country of ref document: EP

Kind code of ref document: A1