CN104778285B - A kind of WEB service system and its working method based on XML - Google Patents

A kind of WEB service system and its working method based on XML Download PDF

Info

Publication number
CN104778285B
CN104778285B CN201510237100.0A CN201510237100A CN104778285B CN 104778285 B CN104778285 B CN 104778285B CN 201510237100 A CN201510237100 A CN 201510237100A CN 104778285 B CN104778285 B CN 104778285B
Authority
CN
China
Prior art keywords
data
xml
page
web
request
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.)
Expired - Fee Related
Application number
CN201510237100.0A
Other languages
Chinese (zh)
Other versions
CN104778285A (en
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.)
Chengdu Guangda Hengji Communication Technology Co., Ltd
Original Assignee
Chengdu Guangda New Network 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 Chengdu Guangda New Network Technology Co Ltd filed Critical Chengdu Guangda New Network Technology Co Ltd
Priority to CN201510237100.0A priority Critical patent/CN104778285B/en
Publication of CN104778285A publication Critical patent/CN104778285A/en
Application granted granted Critical
Publication of CN104778285B publication Critical patent/CN104778285B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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/81Indexing, e.g. XML tags; Data structures therefor; Storage structures
    • 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)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

XML is made a general module, flow is uniformly processed by the present invention provides a kind of WEB service system and its working method based on XML, this system.Meet the XML request of various patterns using the mode of XML templates.The Data Node for isolating each page makes a database, provides the general-purpose interface of operation data.Institute's data in need are loaded into client additionally by page configuration file, to promote the process performance of WEB server.The WEB page of planning, involved all kinds of keywords are presented in the form of page configuration file, which derives the data needed for WEB server again, carrys out constructs database.The development of WEB client side and server since then does bridge with a common page configuration file, meets the synchronization of information, greatly reduce mutual constraint, can realize concurrent product development.

Description

A kind of WEB service system and its working method based on XML
Technical field
The present invention relates to the development mode of WEB server and process flow technical fields more particularly to a kind of based on XML's WEB service system and its working method.
Background technology
In embedded device management, good user experience is brought by WEB management equipments, is obtained more and more extensive Customer acceptance, while more multi-functional, aspect of performance requirement is proposed to the management of embedded device.Current most of WEB services Device is all based on XML's, and the WEB server of XML is the advantages of combining component- based development and Web, to be capable of providing one kind Function and the powerful processing mode of autgmentability, developer is by the content of the self-defined input/output of XML file, as far as possible Respective subjective initiative is played, various demands are met.But in embedded device, in the case of resource is limited, and require With higher function and performance requirement.It is tight between the client and server of XML WEB however as the abundant of WEB service Close coupling is closed, and can sacrifice interoperability between application program, while the burden brought to the development of WEB server adds therewith Weight, and WEB server brings larger burden to embedded device, will have a direct impact on the data service of equipment.Therefore there is an urgent need for one The efficient process and development scheme of kind XML WEB servers, optimize data processing, and development scheme is rationalized so that WEB server Show better function and performance.
The principle schematic of XML WEB servers, such as Fig. 1.XML WEB servers be based on http protocol, client with Between server data interaction is completed by transmitting XML file.
Invention content
To solve the above problems, the present invention provides a kind of WEB service system based on XML, including WEB client side, WEB Server completes data interaction between WEB client side and WEB server by XML file, and the WEB server includes XML Processing module, data processing module, data source, data-interface, memory module, wherein memory module is configured for memory page File and pre-defined XML file template;
XML processing modules, will for the page script of loading page configuration file, the XML request of reception WEB client side XML request resolves to script request and request of data, completes script request response, and request of data is sent to data processing mould Block, the data for receiving data processing module feedback, adaptation XML templates complete XML file encapsulation, send packaged XML file To WEB client side;
Data processing module is used for the data item of loading page configuration file, according to the phase in request of data linked database Data are closed, and related data is fed back into XML processing modules;
Data source is to store local or the far-end server of data, gives WEB client side and provides data support;
Data-interface is used for the data of operating database;
Page configuration file includes page script file and page data configuration file, and page script file is for constructing WEB page includes page index, holding equipment model, data item information in page data configuration file;Each WEB page institute All kinds of keywords being related to are presented in the form of page configuration file.
Further, the data item of the data processing module loading page configuration file establishes data directory tree, data Data item in index tree is associated with corresponding data-interface.
Further, the data-interface is mib nodes or api interface.
Further, data source is using mib nodes or api interfaces or database.
Further, the data item of page data configuration file includes index, type, oid and/or the data of each data Library indexes.
Further, all kinds of keywords involved by WEB page are presented in the form of configuration file.
Further, it is cached after XML processing modules loading page script file, utilizes the page script sum number of caching XML file encapsulation is carried out according to the data of processing module feedback.
The working method of the above-mentioned WEB service system based on XML, comprises the following steps:Step 1:WEB client side is sent XML request is to WEB server;
Step 2:The XML processing modules of WEB server carry out XML request parsing, and XML request is resolved to script request And request of data;
Step 3:Required page script is loaded into caching by XML processing modules according to page configuration file, and sends number Data processing module is arrived according to request processing;
Step 4:Data processing module extracts the page data of page configuration file, generates data directory tree;
Step 6:Location data node is mapped to associated data interface, and is associated with data source;
Step 7:Data source is by data-interface by data feedback to XML processing modules;
Step 8:XML processing modules carry out XML template adaptations according to the data of feedback;
Step 9:XML templates are filled using the page script of caching and the data of feedback, complete XML encapsulation;
Step 10:Packaged XML file is transferred to WEB client side, completes XML request response.
Beneficial effects of the present invention are:
Flow is uniformly processed by the way that XML is made a general module in the present invention.Mode using XML templates meets The XML request of various patterns.The Data Node for isolating each page makes a database, provides the general of operation data Interface.Institute's data in need are loaded into WEB server additionally by page configuration file, to promote the place of WEB server Rationality energy.The WEB page of planning, involved all kinds of keywords are presented in the form of configuration file, and the configuration file is again The data needed for WEB server are derived, constructs database is carried out.The development of WEB client side and server since then, with One common page configuration file does bridge, meets the synchronization of information, greatly reduces mutual constraint, can realize parallel Development mode.
Description of the drawings:
Fig. 1 is the principle schematic of XML WEB servers.
Fig. 2 is common XML WEB servers processing mode schematic diagram.
Fig. 3 is XML WEB servers processing mode schematic diagram of the present invention.
Fig. 4 is working-flow figure of the present invention.
Specific implementation mode:
In the development mode of common WEB server, each page needs individually processing, flips the signal of its processing mode such as Shown in Fig. 2.The keyword definition and content of request data need in advance and unification is reached in WEB client side exploitation.Server is developed It is limited to that WEB client side is more in the process, and along with the revision of WEB page, the realization of WEB server, which can be also inconjunction with, repaiies It orders, there is also certain hidden danger for the process performance of WEB server.
To solve the above-mentioned problems, the present invention changes conventional thought, in WEB server process flow and development mode It improves, it is proposed that a kind of new WEB service system based on XML itself and its working method.It is introduced separately below.
WEB service system based on XML includes WEB client side, WEB server, between WEB client side and WEB server Data interaction is completed by XML file.The present invention is when developing WEB server, according to the feature of various types XML, definition Different XML templates, flow is uniformly processed.Meet the XML request of various patterns using the mode of XML templates.Each XML moulds Plate only needs to carry out corresponding data and script filling.
In the present invention, the process flow of WEB server all has unified flow, and flow is as shown in Figure 3.Process flow It is completed by following XML processing modules and data processing module, therefore in WEB server development process, groundwork collection In in page configuration file, once configuration file housekeeping finishes, you can generate corresponding data item.It therefore can be largely The upper resource input for reducing exploitation, is suitble to development mode rapidly and efficiently.
For convenience of the present invention is understood, first page configuration file is illustrated below.It is all kinds of involved by each WEB page Keyword is presented in the form of page configuration file.The page configuration file includes:Page script file and page data Configuration file.
For constructing WEB page, content for script is directly encapsulated into WED servers and responds to WEB the page script file In the XML file of client.Page script only needs that caching is taken out and be stored in from page configuration file, raising that can be larger The treatment effeciency of server.
Include the information, wherein data item packet such as page index, holding equipment model, data item in page data configuration file Include index, oid (object identifier), type, the data source index of each data.
Oid and data source index can be used as getting data, adapt to diversified data processing.Oid is needed Snmp servers support, the oid uniquely indicated by data is processed.The data source index directly specified parameter of basis, Corresponding business datum node is navigated to, reuses api interfaces to process.
Page data configuration file is schematically as follows:
File content illustrates, such as table 1.
Table 1
WEB server is introduced below.
The WEB server further includes XML processing modules, at data other than necessary operation program and related hardware Manage module, data source, data-interface, memory module.
Memory module is used for memory page configuration file and XML file template.
The effect of XML processing modules is as follows:
1. in the page script to caching for loading required page configuration file.
2. the XML request for receiving WEB client side decomposites corresponding data in conjunction with the feature of XML language, by XML request Script request and request of data are resolved to, completes script request response, and request of data is sent to data processing module.
3. receiving the data of data processing module feedback, it is adapted to XML templates.
The present invention defines different XML templates, is filled out further according to the type of actual request according to the feature of various types XML Corresponding template data is filled, to adapt to various types XML request, achievees the purpose that be uniformly processed.
4. by the XML data of feedback, page script, as a result, and the information such as data encoding, language, to be assembled into one Complete XML file.
5. sending packaged XML file to WEB client side.
Data processing module effect is as follows:
1. being extracted all page datas according to page configuration file, required data item is pre-loaded Into data directory tree, so as to rapidly locating node.
2. according to the configuration parameter association of page data to the data source of corresponding business module, and related data is fed back to XML processing modules.
Data source is to store local or the far-end server of data, gives clients providing data support.Data source institute Network environment and there may be differences for position, this just needs to access data using different modes.The wherein interface sides api Formula is suitable for directly accessing local data source, and mib and database are suitable for accessing specified local or far-end server Data.
Data-interface is used for the data of operating database.Mib nodes or business api interfaces etc. may be used in data-interface Mode, or can be adopted according to the actual needs of embedded device.Data item in index tree needs to be associated with corresponding number According to interface, to handle request of data.
The workflow of this system is illustrated with reference to Fig. 4.
Step 1:WEB client side sends XML request to WEB server;
Step 2:The XML processing modules of WEB server carry out XML request parsing, and XML request is resolved to script request And request of data;
Step 3:Required page script is loaded into caching by XML processing modules according to page configuration file, and sends number Data processing module is arrived according to request processing;
Step 4:Data processing module extracts the page data of page configuration file, generates data directory tree;
Step 6:Location data node is mapped to associated data interface, and is associated with data source;
Step 7:Data source is by data-interface by data feedback to XML processing modules;
Step 8:XML processing modules carry out XML template adaptations according to the data of feedback;
Step 9:XML templates are filled using the page script of caching and the data of feedback, complete XML encapsulation;
Step 10:Packaged XML file is transferred to WEB client side, completes XML request response.
Beneficial effects of the present invention are:
Flow is uniformly processed by the way that XML is made a general module in the present invention.Mode using XML templates meets The XML request of various patterns.The Data Node for isolating each page makes a database, provides the general of operation data Interface.Institute's data in need are loaded into WEB server additionally by page configuration file, to promote the place of WEB server Rationality energy.The WEB page of planning, involved all kinds of keywords are presented in the form of configuration file, and the configuration file is again The data needed for WEB server are derived, constructs database is carried out.The development of WEB client side and server since then, with One common page configuration file does bridge, meets the synchronization of information, greatly reduces mutual constraint, can realize parallel Development mode.

Claims (5)

1. a kind of WEB service system based on XML, including WEB client side, WEB server, WEB client side and WEB server Between data interaction completed by XML file, which is characterized in that the WEB server includes XML processing modules, at data Manage module, data source, data-interface, memory module, wherein
Memory module is for memory page configuration file and pre-defined XML file template;
XML processing modules ask XML for the page script of loading page configuration file, the XML request of reception WEB client side It asks and resolves to script request and request of data, complete script request response, and request of data is sent to data processing module, is connect The data of data processing module feedback are received, adaptation XML templates complete XML file encapsulation, send packaged XML file to WEB Client;
Data processing module is used for the data item of loading page configuration file, according to the dependency number in request of data linked database According to, and related data is fed back into XML processing modules;
Data source is to store local or the far-end server of data, gives WEB client side and provides data support;
Data-interface is used for the data of operating database;
Page configuration file includes page script file and page data configuration file, and page script file is for constructing WEB pages Face includes page index, holding equipment model, data item information in page data configuration file;Involved by each WEB page All kinds of keywords are presented in the form of page configuration file;
The data item of the data processing module loading page configuration file establishes data directory tree, the data in data directory tree Item is associated with corresponding data-interface;
The data item of page data configuration file includes index, type, oid and/or the database index of each data.
2. the WEB service system based on XML as described in claim 1, which is characterized in that the data-interface is mib nodes Or api interface.
3. the WEB service system based on XML as claimed in claim 2, which is characterized in that data source uses mib nodes or api Interface or database.
4. such as WEB service system of claim 1 ~ 3 any one of them based on XML, which is characterized in that XML processing modules add It is cached after carrying page script file, the data fed back using the page script and data processing module of caching carry out XML texts Part encapsulates.
5. the working method of the WEB service system based on XML as described in claim 1, which is characterized in that include following step Suddenly:
Step 1:WEB client side sends XML request to WEB server;
Step 2:The XML processing modules of WEB server carry out XML request parsing, and XML request is resolved to script request sum number According to request;
Step 3:Required page script is loaded into caching by XML processing modules according to page configuration file, and transmission data Data processing module is arrived in request processing;
Step 4:Data processing module extracts the page data of page configuration file, generates data directory tree;
Step 6:Location data node is mapped to associated data interface, and is associated with data source;
Step 7:Data source is by data-interface by data feedback to XML processing modules;
Step 8:XML processing modules carry out XML template adaptations according to the data of feedback;
Step 9:XML templates are filled using the page script of caching and the data of feedback, complete XML encapsulation;
Step 10:Packaged XML file is transferred to WEB client side, completes XML request response.
CN201510237100.0A 2015-05-12 2015-05-12 A kind of WEB service system and its working method based on XML Expired - Fee Related CN104778285B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510237100.0A CN104778285B (en) 2015-05-12 2015-05-12 A kind of WEB service system and its working method based on XML

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510237100.0A CN104778285B (en) 2015-05-12 2015-05-12 A kind of WEB service system and its working method based on XML

Publications (2)

Publication Number Publication Date
CN104778285A CN104778285A (en) 2015-07-15
CN104778285B true CN104778285B (en) 2018-08-28

Family

ID=53619749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510237100.0A Expired - Fee Related CN104778285B (en) 2015-05-12 2015-05-12 A kind of WEB service system and its working method based on XML

Country Status (1)

Country Link
CN (1) CN104778285B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205138A (en) * 2015-09-16 2015-12-30 北京金和网络股份有限公司 Flow data processing method for mobile terminal
CN106569824B (en) * 2016-11-07 2019-08-13 腾讯科技(深圳)有限公司 Method and apparatus, the method and apparatus of page rendering of page data compiling
CN108628887A (en) * 2017-03-20 2018-10-09 福建天晴数码有限公司 A kind of method and system obtaining list data
CN109284464B (en) * 2018-08-29 2021-07-23 网宿科技股份有限公司 Page loading method and terminal, page response method and server
CN109271162A (en) * 2018-09-03 2019-01-25 中国建设银行股份有限公司 A kind of page generation method and device
CN110311819B (en) * 2019-07-03 2022-06-07 广州鲁邦通物联网科技股份有限公司 Page automatic generation and MIBs table generation method based on page configuration file, management method, equipment side and management system
CN112379861A (en) * 2021-01-15 2021-02-19 北京安泰伟奥信息技术有限公司 Item manager and working method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661512A (en) * 2009-09-25 2010-03-03 万斌 System and method for identifying traditional form information and establishing corresponding Web form
CN102436372A (en) * 2011-08-31 2012-05-02 中国运载火箭技术研究院 Monitoring table generation system
CN103164333A (en) * 2011-12-16 2013-06-19 京信通信系统(中国)有限公司 WEB testing method and WEB testing system of embedded device system and WEB server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7117220B2 (en) * 2001-10-15 2006-10-03 Vanderdrift Richard William System and method for non-programmers to dynamically manage multiple sets of XML document data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661512A (en) * 2009-09-25 2010-03-03 万斌 System and method for identifying traditional form information and establishing corresponding Web form
CN102436372A (en) * 2011-08-31 2012-05-02 中国运载火箭技术研究院 Monitoring table generation system
CN103164333A (en) * 2011-12-16 2013-06-19 京信通信系统(中国)有限公司 WEB testing method and WEB testing system of embedded device system and WEB server

Also Published As

Publication number Publication date
CN104778285A (en) 2015-07-15

Similar Documents

Publication Publication Date Title
CN104778285B (en) A kind of WEB service system and its working method based on XML
US10331422B1 (en) System and method for generating API devlopment code for integrating platforms
CN101420437B (en) Interface device for prototype system and HLA simulation system
US20170270157A1 (en) TCP/IP Network Automation and Orchestration Tools
WO2020182893A1 (en) System and method for interoperable communication of an automation system component with multiple information sources
US10007532B1 (en) Data infrastructure for cross-platform cross-device API inter-connectivity
EP2556685A2 (en) Subscription-based dynamic content optimization
CN105760397B (en) Internet of things ontology model processing method and device
AU2023251465A1 (en) System and method for generating api development code for integrating platforms
CN103747004A (en) Realizing method of internet of things communication protocol
CN110851468A (en) Method and device for making simulation response to test request of client
GB2520246A (en) Method for accessing business object resources and machine-to-machine communication environment
CN107818268A (en) The access control method and server of big data platform
CN108984567A (en) A kind of Service Data Management system and method
CN114816499A (en) Electronic resource sharing method and device and storage medium
CN106412034A (en) Business processing method and apparatus
Munonye et al. Performance analysis of the microsoft. Net-and java-based implementation of REST web services
CN117313837A (en) Large model prompt learning method and device based on federal learning
CN107968798A (en) A kind of network management resources label acquisition method, cache synchronization method, apparatus and system
Yang et al. An automata-based security policy translation for network security functions
CN110764769A (en) Method and device for processing user request
CN109871560A (en) A kind of method and apparatus of operational objective model
CN115941788A (en) Centralized Application Programming Interface (API) agent for providing services provided by multiple service platforms
Llopis et al. A Discovery Pull Model for Devices in IoT and WoT Environments
Rosser et al. Full Meta Object profiling for flexible geoprocessing workflows

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: High tech Zone Shiyang street Chengdu city Sichuan Province, Qingyun 610041 village five group No. fifty-five Shiyang Industrial Park No. two building four floor

Applicant after: CHENGDU GUANGDA NEW NETWORK TECHNOLOGY CO., LTD.

Address before: High tech Zone Shiyang street Chengdu city Sichuan Province, Qingyun 610041 village five group No. fifty-five Shiyang Industrial Park No. two building four floor

Applicant before: Chengdu Guangda Electronic Corporation Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200803

Address after: Floor 2, No.16, Gaopeng Avenue, high tech Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu Guangda Hengji Communication Technology Co., Ltd

Address before: 610041 building four, building two, Shiyang Industrial Park, five village, Shiyang village, fifty-five village, Chengdu hi tech Zone, Sichuan, Qingyun

Patentee before: CHENGDU GUANGDA NEW NETWORK TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180828

Termination date: 20200512