CN104778285A - XML-based WEB service system and working method thereof - Google Patents

XML-based WEB service system and working method thereof Download PDF

Info

Publication number
CN104778285A
CN104778285A CN201510237100.0A CN201510237100A CN104778285A CN 104778285 A CN104778285 A CN 104778285A CN 201510237100 A CN201510237100 A CN 201510237100A CN 104778285 A CN104778285 A CN 104778285A
Authority
CN
China
Prior art keywords
data
xml
page
processing module
web
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.)
Granted
Application number
CN201510237100.0A
Other languages
Chinese (zh)
Other versions
CN104778285B (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 Electronic Corp 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 Electronic Corp Co Ltd filed Critical Chengdu Guangda Electronic Corp 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

The invention provides an XML-based WEB service system and a working method thereof. The system makes an XML into a universal module for processing flows in a unified mode. The XML template using modes meet various XML requests. Data nodes of each page are separated to form a database, and a universal interface for operating data is provided. In addition, all required data are loaded to a client through a page configuration file so as to improve the WEB server processing performance. The planned WEB pages and various involved keywords are shown in the mode of the page configuration file, and the page configuration file derives data needed by the WEB server to form the database. In this way, the development work of the WEB client and the WEB server share same page configuration file as the bridge, information synchronization is achieved, mutual constraints are greatly lowered, and the parallel development mode can be obtained.

Description

A kind of WEB service system based on XML and method of work thereof
Technical field
The present invention relates to development mode and the treatment scheme technical field of WEB server, particularly relate to a kind of WEB service system based on XML and method of work thereof.
Background technology
In embedded device management, bring good Consumer's Experience by WEB management equipment, obtain customer's approval more and more widely, the management of embedded device is proposed to the requirement of greater functionality, aspect of performance simultaneously.Current most of WEB server is all based on XML, the WEB server of XML is the advantage combining component-based development and Web, a kind of function and the powerful processing mode of extendability can be provided, developer is by the content of the self-defined I/O of XML file, play respective subjective initiative as much as possible, meet various demand.But in embedded device, when resource-constrained, require that there is higher function and performance requirement again.But enriching along with WEB service, close-coupled between the client and server of XML WEB, interoperability between application program can be sacrificed, the burden of simultaneously bringing to the development of WEB server increases the weight of thereupon, and WEB server brings larger burden to embedded device, can the direct data service affecting equipment.Therefore need a kind of efficient process and development scheme of XML WEB server badly, optimization data process, development scheme is rationalized, and makes WEB server represent better function and performance.
The principle schematic of XML WEB server, as Fig. 1.XML WEB server is based on http protocol, completes data interaction between client and server by transmitting XML file.
Summary of the invention
For solving the problem, the invention provides a kind of WEB service system based on XML, comprise WEB client side, WEB server, data interaction is completed by XML file between WEB client side and WEB server, described WEB server comprises XML processing module, data processing module, data source, data-interface, memory module, wherein
Memory module is used for memory page configuration file and predefined XML file template;
XML processing module is used for the page script of load page configuration file, receives the XML request of WEB client side, be script request and request of data by XML request analysis, complete script request response, and request of data is sent to data processing module, receive data processing module feedback data, adaptive XML template, complete XML file encapsulation, send packaged XML file to WEB client side;
Data processing module is used for the data item of load page configuration file, according to the related data in request of data linked database, and related data is fed back to XML processing module;
Data source is this locality or the far-end server that store data, gives WEB client side and provides Data support;
Data-interface is used for the data of operating database;
Page configuration file module comprises page script file and page data configuration file, and page script file, for constructing WEB page, comprises page index, support equipment model, data item information in page data configuration file; All kinds of key words involved by each WEB page all present with the form of page configuration file.
Further, the data item of described data processing module load page configuration file sets up data directory tree, the data-interface that the data item association in data directory tree is corresponding.
Further, described data-interface is mib node or api interface.
Further, data source adopts mib node or api interface or database.
Further, the data item of page data configuration file comprises the index of each data, type, oid and/or database index.
Further, all kinds of key words involved by WEB page all present with the form of configuration file.
Further, the laggard row cache of XML processing module load page script file, utilizes the data of the page script of buffer memory and data processing module feedback to carry out XML file encapsulation.
The method of work of the above-mentioned WEB service system based on XML, comprises following steps: step one: WEB client side sends XML and asks WEB server;
XML request analysis is script request and request of data by step 2: the XML processing module of WEB server carries out XML request analysis;
Step 3: desired page script is loaded in buffer memory according to page configuration file by XML processing module, and send data request processing to data processing module;
Step 4: data processing module extracts the page data of page configuration file, generates data directory tree;
Step 6: locator data node, is mapped to associated data interface, and is associated with data source;
Step 7: data source by data-interface by data feedback to XML processing module;
Step 8: XML processing module carries out XML template adaptation according to the data of feedback;
Step 9: utilize the page script of buffer memory and the data of feedback to fill XML template, completes XML encapsulation;
Step 10: packaged XML file is transferred to WEB client side, completes XML request response.
Beneficial effect of the present invention is:
The present invention by XML being made a general module, unified treatment scheme.The mode of XML template is used to meet the XML request of various pattern.Isolate the Data Node of each page, make a database, the general-purpose interface of service data is provided.Additionally by page configuration file by Data import in need for institute to WEB server, to promote the handling property of WEB server.The WEB page of planning, involved all kinds of key words all present with the form of configuration file, and this configuration file derives the data needed for WEB server again, carrys out constructs database.The development of WEB client side and server so, does bridge with a common page configuration file, meets the synchronous of information, greatly reduce mutual constraint, can realize concurrent product development.
accompanying drawing illustrates:
Fig. 1 is the principle schematic of XML WEB server.
Fig. 2 is common XML WEB server processing mode schematic diagram.
Fig. 3 is XML WEB server processing mode schematic diagram of the present invention.
Fig. 4 is working-flow figure of the present invention.
embodiment:
In the development mode of common WEB server, each page needs process separately, and it flips the signal of its processing mode as shown in Figure 2.The keyword definition of request msg and content need to reach unification with WEB client side exploitation in advance.Be limited to WEB client side in Server development process more, and along with the revision of WEB page, the realization of WEB server also can be inconjunction with revision, and the handling property of WEB server also exists certain hidden danger.
In order to solve the problem, the present invention changes conventional thought, and WEB server treatment scheme and development mode are all improved, and proposes a kind of WEB service system based on XML newly itself and method of work thereof.Be introduced respectively below.
WEB service system based on XML comprises WEB client side, WEB server, completes data interaction between WEB client side and WEB server by XML file.The present invention, when developing WEB server, according to the feature of all kinds XML, defines different XML templates, to unify treatment scheme.The mode of XML template is used to meet the XML request of various pattern.Each XML template only needs to carry out corresponding data and script is filled.
In the present invention, the treatment scheme of WEB server all has unified flow process, and its flow process as shown in Figure 3.Treatment scheme has been come by following XML processing module and data processing module, and therefore in WEB server performance history, groundwork concentrates on page configuration file, once configuration file housekeeping is complete, can generate corresponding data item.Therefore can reduce the resource input of exploitation to a great extent, be applicable to development mode rapidly and efficiently.
Understand the present invention for convenience, first page configuration file is described below.All kinds of key words involved by each WEB page all present with the form of page configuration file.Described page configuration file comprises: page script file and page data configuration file.
Described page script file is for constructing WEB page, and content for script is directly encapsulated in the XML file that WED server responds to WEB client side.Page script only need from page configuration file take out and stored in buffer memory, the treatment effeciency of raising server that can be larger.
Comprise the information such as page index, support equipment model, data item in page data configuration file, wherein data item comprises index, the oid(object identifier of each data), type, data source index.
Oid and data source index all as getting data, can adapt to diversified data processing.Oid needs snmp server and supports, the oid uniquely indicated by data is processed.Data source index, directly according to the parameter of specifying, navigates to corresponding business datum node, re-uses api interface to process.
Page data configuration file is schematically as follows:
<DataItem id="dimenid1">
<oidconfig devtype="devtype1">
<dataOid key="key1" oid=".1.1.1.1.1. " type="type1" value=”module1.key1 “/>
<dataOid key="key2" oid=".1.1.1.1.2. " type="type2" value=”module1.key2 “/>
<dataOid key="key3" oid=".1.1.1.1.3. " type="type3" value=”module1.key3 “/>
</oidconfig>
</DataItem>。
File content illustrates, as table 1.
Type Key word Function Citing
Page index id Determine the unique identification of a page dimenid1
Device type devtype Adapt to distinct device type devtype1
Data directory key Determine a data item key1
Data oid oid Determine data mib node .1.1.1.1.1.
Data type type Data content form type1
Data source indicates value Locator data is carried out according to the level of business module1.key1
Table 1
Below WEB server is introduced.
Described WEB server, except the working procedure of necessity and related hardware, also comprises XML processing module, data processing 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 module is as follows:
1. the page script of the page configuration file required for loading is in buffer memory.
2. receive the XML request of WEB client side, in conjunction with the feature of XML language, decompositing corresponding data, is script request and request of data by XML request analysis, completes script request response, and request of data is sent to data processing module.
3. receive the data of data processing module feedback, adaptive XML template.
The present invention, according to the feature of all kinds XML, defines different XML templates, then fills corresponding template data according to the type of actual request, to adapt to all kinds XML request, reaches the object of unified process.
4. will XML data, page script, the result of feedback, and the information such as data encoding, language, is assembled into a complete XML file.
5. send packaged XML file to WEB client side.
Data processing module effect is as follows:
1. extracted by all page datas according to page configuration file, the data item required for it is loaded previously in data directory tree, so that rapidly locating node.
2. be associated with the data source of corresponding business module according to the configuration parameter of page data, and related data is fed back to XML processing module.
Data source is this locality or the far-end server that store data, gives clients providing data support.The network environment at data source place and position may there are differences, and this uses different modes to visit data with regard to needing.Wherein api interface mode is applicable to the data source that directly access is local, and mib and database are applicable to access this locality or far-end server data of specifying.
Data-interface is used for the data of operating database.Data-interface can adopt the mode such as mib node or business api interface, or can adopt according to the needs of embedded device reality.The data-interface that data item in index tree needs association corresponding, carrys out processes data requests.
Below in conjunction with Fig. 4, the workflow of native system is described.
Step one: WEB client side sends XML and asks WEB server;
XML request analysis is script request and request of data by step 2: the XML processing module of WEB server carries out XML request analysis;
Step 3: desired page script is loaded in buffer memory according to page configuration file by XML processing module, and send data request processing to data processing module;
Step 4: data processing module extracts the page data of page configuration file, generates data directory tree;
Step 6: locator data node, is mapped to associated data interface, and is associated with data source;
Step 7: data source by data-interface by data feedback to XML processing module;
Step 8: XML processing module carries out XML template adaptation according to the data of feedback;
Step 9: utilize the page script of buffer memory and the data of feedback to fill XML template, completes XML encapsulation;
Step 10: packaged XML file is transferred to WEB client side, completes XML request response.
Beneficial effect of the present invention is:
The present invention by XML being made a general module, unified treatment scheme.The mode of XML template is used to meet the XML request of various pattern.Isolate the Data Node of each page, make a database, the general-purpose interface of service data is provided.Additionally by page configuration file by Data import in need for institute to WEB server, to promote the handling property of WEB server.The WEB page of planning, involved all kinds of key words all present with the form of configuration file, and this configuration file derives the data needed for WEB server again, carrys out constructs database.The development of WEB client side and server so, does bridge with a common page configuration file, meets the synchronous of information, greatly reduce mutual constraint, can realize concurrent product development.

Claims (8)

1. the WEB service system based on XML, comprise WEB client side, WEB server, data interaction is completed by XML file between WEB client side and WEB server, it is characterized in that, described WEB server comprises XML processing module, data processing module, data source, data-interface, memory module, wherein
Memory module is used for memory page configuration file and predefined XML file template;
XML processing module is used for the page script of load page configuration file, receives the XML request of WEB client side, be script request and request of data by XML request analysis, complete script request response, and request of data is sent to data processing module, receive data processing module feedback data, adaptive XML template, complete XML file encapsulation, send packaged XML file to WEB client side;
Data processing module is used for the data item of load page configuration file, according to the related data in request of data linked database, and related data is fed back to XML processing module;
Data source is this locality or the far-end server that store data, gives WEB client side and provides Data support;
Data-interface is used for the data of operating database;
Page configuration file module comprises page script file and page data configuration file, and page script file, for constructing WEB page, comprises page index, support equipment model, data item information in page data configuration file; All kinds of key words involved by each WEB page all present with the form of page configuration file.
2. as claimed in claim 1 based on the WEB service system of XML, it is characterized in that, the data item of described data processing module load page configuration file sets up data directory tree, the data-interface that the data item association in data directory tree is corresponding.
3., as claimed in claim 1 based on the WEB service system of XML, it is characterized in that, described data-interface is mib node or api interface.
4. as claimed in claim 3 based on the WEB service system of XML, it is characterized in that, data source adopts mib node or api interface or database.
5., as claimed in claim 1 based on the WEB service system of XML, it is characterized in that, the data item of page data configuration file comprises the index of each data, type, oid and/or database index.
6., as claimed in claim 1 based on the WEB service system of XML, it is characterized in that, all kinds of key words involved by WEB page all present with the form of configuration file.
7. the WEB service system based on XML as described in any one of claim 1 ~ 6, is characterized in that, the laggard row cache of XML processing module load page script file, utilizes the data of the page script of buffer memory and data processing module feedback to carry out XML file encapsulation.
8., as claimed in claim 7 based on the method for work of the WEB service system of XML, it is characterized in that, comprise following steps:
Step one: WEB client side sends XML and asks WEB server;
XML request analysis is script request and request of data by step 2: the XML processing module of WEB server carries out XML request analysis;
Step 3: desired page script is loaded in buffer memory according to page configuration file by XML processing module, and send data request processing to data processing module;
Step 4: data processing module extracts the page data of page configuration file, generates data directory tree;
Step 6: locator data node, is mapped to associated data interface, and is associated with data source;
Step 7: data source by data-interface by data feedback to XML processing module;
Step 8: XML processing module carries out XML template adaptation according to the data of feedback;
Step 9: utilize the page script of buffer memory and the data of feedback to fill XML template, completes 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 true CN104778285A (en) 2015-07-15
CN104778285B 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)

Cited By (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
CN106569824A (en) * 2016-11-07 2017-04-19 腾讯科技(深圳)有限公司 Page data compiling method and apparatus, and page rendering method and apparatus
CN108628887A (en) * 2017-03-20 2018-10-09 福建天晴数码有限公司 A kind of method and system obtaining list data
CN109271162A (en) * 2018-09-03 2019-01-25 中国建设银行股份有限公司 A kind of page generation method and device
CN109284464A (en) * 2018-08-29 2019-01-29 网宿科技股份有限公司 Page loading method and terminal, page response method and server
CN110311819A (en) * 2019-07-03 2019-10-08 广州鲁邦通物联网科技有限公司 Automatic production of HTML page and MIBs table generating method, management method, equipment end and management system based on page configuration file
CN112379861A (en) * 2021-01-15 2021-02-19 北京安泰伟奥信息技术有限公司 Item manager and working method thereof

Citations (4)

* 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
US20130232405A1 (en) * 2001-10-15 2013-09-05 Yardley Benham And Rasch, Llc System and method for non-programmers to dynamically manage multiple sets of xml document data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130232405A1 (en) * 2001-10-15 2013-09-05 Yardley Benham And Rasch, Llc System and method for non-programmers to dynamically manage multiple sets of xml document data
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

Cited By (9)

* 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
CN106569824A (en) * 2016-11-07 2017-04-19 腾讯科技(深圳)有限公司 Page data compiling method and apparatus, and page rendering method and apparatus
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
CN109284464A (en) * 2018-08-29 2019-01-29 网宿科技股份有限公司 Page loading method and terminal, page response method and server
WO2020042328A1 (en) * 2018-08-29 2020-03-05 网宿科技股份有限公司 Page loading method, terminal, page response method and server
CN109271162A (en) * 2018-09-03 2019-01-25 中国建设银行股份有限公司 A kind of page generation method and device
CN110311819A (en) * 2019-07-03 2019-10-08 广州鲁邦通物联网科技有限公司 Automatic production of HTML page and MIBs table generating method, management method, equipment end and management system based on page configuration file
CN112379861A (en) * 2021-01-15 2021-02-19 北京安泰伟奥信息技术有限公司 Item manager and working method thereof

Also Published As

Publication number Publication date
CN104778285B (en) 2018-08-28

Similar Documents

Publication Publication Date Title
CN104778285A (en) XML-based WEB service system and working method thereof
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
AU2021212135B2 (en) Building and managing data-processing attributes for modelled data sources
US20140289366A1 (en) Service providing method and system for instance hosting
US10007532B1 (en) Data infrastructure for cross-platform cross-device API inter-connectivity
US9967370B2 (en) OData enabled mobile software applications
US20170075659A1 (en) Web application development platform with relationship modeling
US20150089021A1 (en) Project data management
CN104885083A (en) Graph-based system and method of information storage and retrieval
CN103186376B (en) A kind of method, apparatus and equipment for being used to establish or update software development environment
US20150169517A1 (en) Hybrid web publishing system
CN102523308B (en) Application development method and development and application platform system for operating method
CN104881490A (en) WEB form data access method and system
JP2017511533A (en) Profile-based cache management
CN106980501A (en) A kind of software package management method, device and system
US10313421B2 (en) Providing Odata service based on service operation execution flow
CN105824944B (en) A kind of XML configuration data maintaining method and system based on scripting language
US20190250962A1 (en) Method for updating instance-based message maps using metadata
US10749926B2 (en) Proxy for modifying HTTP messages to comply with browser
US10165036B1 (en) Network resource remote process execution
Jones et al. UncertWeb processing service: making models easier to access on the web
US9621424B2 (en) Providing a common interface for accessing and presenting component configuration settings
CN115941788A (en) Centralized Application Programming Interface (API) agent for providing services provided by multiple service platforms
KR101885067B1 (en) Method for providing real time response collecting service
KR20180104919A (en) Apparatus for supporting automatic interworking between smart factory devices and method for the same

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