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

Method and device for calling document library system Download PDF

Info

Publication number
CN102299956A
CN102299956A CN201110190418XA CN201110190418A CN102299956A CN 102299956 A CN102299956 A CN 102299956A CN 201110190418X A CN201110190418X A CN 201110190418XA CN 201110190418 A CN201110190418 A CN 201110190418A CN 102299956 A CN102299956 A CN 102299956A
Authority
CN
China
Prior art keywords
uoml
network requests
operational order
procotol
remote document
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201110190418XA
Other languages
Chinese (zh)
Inventor
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING SURESENSE INTERNATIONAL INFORMATION TECHNOLOGY Co Ltd
BEIJING SURSEN NETWORK TECHNOLOGY Co Ltd
TIANJIN SHUSHENG INVESTMENT CO Ltd
BEIJING SURSEN DIGITAL LIBRARY SOFTWARE TECHNOLOGY Co Ltd
Original Assignee
BEIJING SURESENSE INTERNATIONAL INFORMATION TECHNOLOGY Co Ltd
BEIJING SURSEN NETWORK TECHNOLOGY Co Ltd
TIANJIN SHUSHENG INVESTMENT CO Ltd
BEIJING SURSEN DIGITAL LIBRARY SOFTWARE TECHNOLOGY Co Ltd
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 BEIJING SURESENSE INTERNATIONAL INFORMATION TECHNOLOGY Co Ltd, BEIJING SURSEN NETWORK TECHNOLOGY Co Ltd, TIANJIN SHUSHENG INVESTMENT CO Ltd, BEIJING SURSEN DIGITAL LIBRARY SOFTWARE TECHNOLOGY Co Ltd filed Critical BEIJING SURESENSE INTERNATIONAL INFORMATION TECHNOLOGY Co Ltd
Priority to CN201110190418XA priority Critical patent/CN102299956A/en
Publication of CN102299956A publication Critical patent/CN102299956A/en
Priority to PCT/CN2012/076532 priority patent/WO2013004120A1/en
Pending legal-status Critical Current

Links

Images

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

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)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method and a device for calling a document library system. The method comprises the following steps of: mapping a UOML (Unstructured Operation Markup Language) operational order into a network request in accordance with a network protocol, and transmitting the network request to a remote document library system for executing corresponding operations on document data. By utilizing the method and device provided by the embodiment of the invention, intermediate links for a local application program to call the remote document library system are simplified, the remote document library can be called directly through the UOML, the UOML can call the local document library and the remote document library in a uniform mode, and the efficiency of operating the remote document library by the UOML is improved.

Description

A kind of method and apparatus that calls document file library system
Technical field
The present invention relates to the document library technology, particularly relate to a kind of method and apparatus that calls document file library system.
Background technology
Application number provides a kind of unstructured data based on Client (UOML) treatment system and unstructured data (UOML) processing method for 200910076749.3 Chinese patent application.In this patent application, a kind of system based on UOML realization network call document library is disclosed, this system is made of client and remote server end.Wherein, client is used to receive the predefined instruction that comes from application software, calls the corresponding function in the client component and/or carries out network service with server according to described predefined instruction, finishes described operation in order to the corresponding function in the invoking server end; Server end is used for carrying out network service with client, provides corresponding function according to calling of client; The file layout of described predefined instruction and described unstructured data is irrelevant.
In this manner, when local application wants to call the remote document storehouse, local application utilizes UOML to call the api interface of client component, after client component is resolved UOML, re-use self-defining agreement and remote document storehouse system communication, finally realize of the operation of local application software remote document storehouse system.
Though existing method has realized the operation to remote document storehouse system, local application software is not directly called remote document storehouse system by UOML, makes remote document storehouse system itself lose and uses the document interoperability that UOML brought.
In addition because the use of the client component of document file library system, also limited the range of application of remote document storehouse system, such as if application software be java applet or browser application, and the client component of document file library system provides the API of C++ version, and then application software can't be called remote document storehouse system by the client component that calls document file library system.And if the document file library system of the various programming languages of development support, then can increase the development cost of remote document storehouse system.
The problem that above-mentioned prior art exists is to cause with the disunity that calls the mode in remote document storehouse because call the mode of local document library by UOML.
Summary of the invention
For this reason, the embodiment of the invention provides a kind of method and apparatus that calls document file library system, can directly call remote document storehouse system, realize calling the unification of the mode in the mode of local document library and remote document storehouse, improve the efficient of far call by UOML by UOML.
Specifically, the embodiment of the invention provides a kind of method of calling document file library system, comprising:
The UOML operational order is mapped as the network requests that meets procotol;
This network requests is sent to remote document storehouse system, document data is operated accordingly for it.
The embodiment of the invention also provides a kind of device that calls document file library system, comprising:
First module: be applied to the local application side, be used for the UOML operational order is mapped as the network requests that meets procotol;
Second module: be applied to the local application side, be used for the UOML operational order is mapped as the network requests that meets procotol.
The abundant application network of embodiment of the invention service host-host protocol is independent of the characteristics of programming language and the document interoperability of UOML own, is implemented in local program (comprising browser application) and uses UOML directly to call remote document storehouse system resource to operate; Therefore, the embodiment of the invention disclosed technical scheme has been simplified the intermediate link that local application calls remote document storehouse system, has realized calling by UOML the unification of the mode in the mode of local document library and remote document storehouse, has improved far call efficient.
Description of drawings
A kind of method flow diagram that calls document file library system that figure I provides for the embodiment of the invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
The embodiment of the invention is by network service platform, and the UOML operational order is mapped as the network requests of network service protocol, and this network requests is sent to remote document storehouse system; Remote document storehouse system is remapped to the instruction that remote document storehouse system programming language is discerned with the network requests that receives, and carries out corresponding document function according to this instruction.
The method flow diagram that calls document file library system that Fig. 1 provides for the foundation embodiment of the invention.As shown in Figure 1, this method specifically comprises:
Step 101: local application calls the Web Service of remote document storehouse system.
Usually, the agreement of Web Service employing comprises Simple Object Access Protocol (SOAP), remote procedure call protocol (XML-RPC), the remote procedure call protocol of lightweight agreements such as (JSON-RPC).
Step 102: local application is mapped as the network requests that meets Web Service agreement with the UOML operational order, and this network requests is sent to remote document storehouse system.
Wherein, described UOML operational order comprises the action of UOML operational order and the object of UOML operational order.
In one embodiment of the invention, the UOML operand is mapped as the composite data type of Web Service agreement, specifically, be simple data type variable or complex data type variable in the composite data type of Web Service agreement with the best property of attribute mapping of UOML operand, the daughter element of UOML operand is corresponding to simple data type variable in the composite data type or composite data type variable; Simultaneously, the UOML operational motion is mapped as simple data type variable in the Web Service agreement, it both can be an independent simple data type, also can be that certain meets the simple data type variable in the data type.In this embodiment, network requests can be the form of HTTP.
In another embodiment of the present invention, can call the WebService agreement call function that document file library system provides, UOML operational order object assignment is given the parameter of WebService agreement call function; Specifically, can be that best property of attribute mapping with UOML operational order object is simple data type variable or a complex data type variable in the composite data type of Web Service agreement, the daughter element of UOML operand be corresponding to simple data type variable in the composite data type or composite data type variable.In an embodiment of the present invention, can provide same function call address for all UOML operations, as http://docbase.xxx.com/action.jsp, be different function names on this function call address with the different action mapping in the UOML operational order.In another embodiment of the present invention, can distribute different call function addresses for different UOML operands respectively, as URL:http: //docbase.xxx.com/UOML instruction name jsp.
Step 103: remote document storehouse system is remapped to its discernible programming language instruction with the network requests that receives, and according to this instruction document data is operated.
Step 104: remote document storehouse system generates the network requests that the UOML return instruction is mapped as the WebService agreement with operating result, and this network requests is sent to local application.
Step 105: local application is according to this network requests of returning, and whether the analysis judgment document file library system operating document data of success.
Be example to open the remote document storehouse below, disclosed a kind of method of calling document file library system in the above embodiment of the present invention is described.
The Web Service that supposes remote document storehouse system adopts XML-RPC as host-host protocol, transmits the UOML instruction of an opening document (Open), specifically comprises:
Step 1, local application generate the UOML instruction of Open, and should instruct and press the XML-RPC protocol encapsulation, promptly according to above-mentioned steps 102, this instruction are packaged into the instruction that meets the XML-RPC host-host protocol, and its XML string is as follows:
Figure BDA0000074403790000051
From the said procedure section as can be seen, the method name of Open instruction is mapped as simple data variable in the XML-RPC agreement---method name (Method Name), the operand that Open is instructed is mapped as composite data type in the XML-RPC agreement---the structure parameter.
Step 2: the Open instruction after local application will encapsulate sends to remote document storehouse system with the HTTP request mode;
Step 3: HTTP request is received by remote document storehouse system, and according to XML-PRC protocol analysis Open instruction, is about to the instruction that the Open instruction is remapped to the programming language that remote document storehouse system can discern;
Step 4: remote document storehouse system opens the document according to the document file library system path that is comprised in the instruction after resolving, and the RET that generates UOML instructs, the XML-RPC protocol encapsulation press in the RET of described UOML instruction, the RET of the UOML after the encapsulation is instructed return to local application with the HTTP request mode; Wherein partly adopt URI to be described by the handle in the RET instruction of the UOML after the XML-RPC protocol encapsulation, its XML string is as follows:
Figure BDA0000074403790000061
Figure BDA0000074403790000071
Here, because far call can't the conservation object handle, so can adopt URI or DOI to come certain concrete object in the system of unique specified documents storehouse, use simultaneously document file library system just, make that the process object of every instruction can be fine-grained object, can adopt many network requests to handle for a plurality of objects of same document or a plurality of attributes of an object like this, the data volume that has reduced the programming difficulty and once transmitted.
Step 5: local application receives the HTTP request of returning, and according to the RET instruction of XML-PRC protocol analysis UOML, resolves and whether successfully opens the remote document storehouse.
In another specific embodiment of the present invention, the process of above-mentioned steps one and step 2 can also be:
Call the call function that meets the XML-PRC agreement that the URL of remote document system is http://docbase.xxx.com/action.jsp, be this function parameter assignment, being mapped as wherein method name as moving Open, is wherein structure parameter with the object map of Open instruction.
Perhaps, when in each action of remote document storehouse system end all when a call function prototype should be arranged, call the call function that meets the XML-PRC agreement that the URL of remote document system is http://docbase.xxx.com/open.jsp.
Though it is example that the foregoing description adopts XML-RPC, it will be understood by those skilled in the art that other Web service agreements still are suitable for.
The embodiment of the invention also provides a kind of device that calls document file library system, and described device comprises:
First module: be applied to the local application side, be used for the UOML operational order is mapped as the data type of procotol network requests;
Second module: be applied to the local application side, be used for this network requests is sent to remote document storehouse system, remote document storehouse system is operated for it.
Described device also comprises:
Three module: be applied to remote document storehouse system side, be used for the instruction of the remote document storehouse system identification that the network requests that will receive is remapped to according to procotol, document data is operated according to this instruction;
Four module: be applied to remote document storehouse system side, be used for the UOML return instruction that operating result generates is remapped to the network requests of procotol, and this network requests is returned to local application.
Described device also comprises:
The 5th module: be applied to the local application side, be used to receive the network requests of returning from remote document storehouse system, this network requests is remapped to the UOML return instruction, and resolve the operation that whether realizes remote document storehouse system.
A kind of method of calling document file library system that the embodiment of the invention provides, fully application network service host-host protocol is independent of the characteristics of programming language and the document interoperability of UOML own, is implemented in local program (comprising browser application) and uses UOML directly to call remote document storehouse system resource to operate; In this case, remote document storehouse system can use as Java, PHP, language descriptions such as Python, and local application can use the different C++ with remote document storehouse system, C#, language descriptions such as JavaScript are as long as local application can be communicated by letter by the network transmission protocol of Web Service with remote document storehouse system;
Therefore, the embodiment of the invention disclosed technical scheme has been simplified the intermediate link that local application calls remote document storehouse system, has realized calling by UOML the unification of the mode in the mode of local document library and remote document storehouse, has improved far call efficient.
Being preferred embodiment of the present invention only below, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. a method of calling document file library system is characterized in that, this method comprises:
The UOML operational order is mapped as the network requests that meets procotol;
This network requests is sent to remote document storehouse system, document data is operated accordingly for it.
2. method according to claim 1 is characterized in that, describedly the UOML operational order is mapped as the network requests that meets procotol comprises:
With the object map of UOML operational order is the composite data type of procotol, wherein, the attribute of UOML operational order object is corresponding to being simple data type variable or complex data type variable in the composite data type of procotol, and the daughter element of UOML operational order object is corresponding to the simple or composite data type variable in the composite data type;
With the action mapping of UOML operational order is simple data type variable in the procotol.
3. method according to claim 1 is characterized in that, describedly the UOML operational order is mapped as the network requests that meets procotol comprises:
Call the Web Service agreement call function that remote document storehouse system provides;
UOML operational order object assignment is given the parameter of Web Service agreement call function.
4. method according to claim 3 is characterized in that, when remote document storehouse system provided same function call address for all UOML operations, described method further comprised:
With the action mapping of UOML operational order is function name corresponding on this function call address.
5. method according to claim 1 is characterized in that, the process that remote document storehouse system operates document data accordingly according to network requests comprises:
The programming language instruction of the remote document storehouse system identification that the network requests received is remapped to according to procotol, and according to this instruction to document data is operated accordingly.
6. method according to claim 1 is characterized in that, described method further comprises:
The UOML return instruction that meets procotol that reception is returned from remote document storehouse system;
This network requests is remapped to the programming language return instruction of local application identification, and resolves the operating result that remote document storehouse system is operated.
7. a device that calls document file library system is characterized in that, comprising:
First module: be applied to the local application side, be used for the UOML operational order is mapped as the network requests that meets procotol;
Second module: be applied to the local application side, be used for the UOML operational order is mapped as the network requests that meets procotol.
8. device according to claim 7 is characterized in that, further comprises:
Three module: be applied to remote document storehouse system side, be used for the instruction of the remote document storehouse system identification that the network requests that will receive is remapped to according to procotol, document file library system is operated according to this instruction;
Four module: be applied to remote document storehouse system side, be used for the UOML return instruction that operating result generates is remapped to the network requests of procotol, and this network requests is returned to local application.
9. device according to claim 8 is characterized in that, further comprises:
The 5th module: be applied to the local application side, be used to receive the network requests of returning from remote document storehouse system, this network requests is remapped to the UOML return instruction, and resolve the operation that whether realizes remote document storehouse system.
CN201110190418XA 2011-07-07 2011-07-07 Method and device for calling document library system Pending CN102299956A (en)

Priority Applications (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
PCT/CN2012/076532 WO2013004120A1 (en) 2011-07-07 2012-06-06 Method and device for calling document library system

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN102299956A true CN102299956A (en) 2011-12-28

Family

ID=45360126

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013004120A1 (en) * 2011-07-07 2013-01-10 天津书生投资有限公司 Method and device for calling document library system

Citations (3)

* 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

Family Cites Families (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

Patent Citations (3)

* 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013004120A1 (en) * 2011-07-07 2013-01-10 天津书生投资有限公司 Method and device for calling document library system

Also Published As

Publication number Publication date
WO2013004120A1 (en) 2013-01-10

Similar Documents

Publication Publication Date Title
CN100481088C (en) Web page resource issuing method and issuing system
CN103095609A (en) Access adaptive method and device based on Internet of things terminals
RU2009130915A (en) METHOD AND SYSTEM FOR CREATING IT-ORIENTED SERVER NETWORK APPLICATIONS
CN102447726A (en) Method and system for page access
CN103294474A (en) Browser operation synchronizing method and device for performing browser operation synchronization
CN105007309A (en) System and method for separately controlling dynamic data and static interface
CN102902537A (en) Embedded WEB model view controller (MVC) development framework based on Fast common gateway interface (CGI) and hypertext markup language (HTML) template
CN102045325B (en) Input method and system based on network communication
CN105183452A (en) Spring AOP based remote protocol service middleware for monitoring power distribution device
CN104954894A (en) Video traffic guiding method and device as well as electronic equipment
CN103019712A (en) Integrated application
CN103532959A (en) Cross-platform network communication method
CN106357713B (en) Method for realizing remote procedure call, client device and server device
CN106686021A (en) Service invoking method and gateway
CN105677688B (en) Page data loading method and system
CN101964742B (en) Method, system and device for using network open ability
CN103544209A (en) Method and system for web page access
CN101699823A (en) Method for realizing caching resource in curl library
CN107105004B (en) Cross-platform service calling method and device
CN105354269B (en) Web applicational language Localization methodologies and system based on reverse proxy and information filtering
CN102299956A (en) Method and device for calling document library system
CN104317819A (en) Method and system for webpage cross-domain communication based on browsers
CN103039056A (en) A method for providing data from a resource weak device to a computer client
CN104980511A (en) Game data access method, game data access system and game web server
CN102594587B (en) Embedded WEB debugging and testing maintenance method and debugging and testing maintenance system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111228