CN101557385A - Uniform data format verification method - Google Patents

Uniform data format verification method Download PDF

Info

Publication number
CN101557385A
CN101557385A CNA2008101035869A CN200810103586A CN101557385A CN 101557385 A CN101557385 A CN 101557385A CN A2008101035869 A CNA2008101035869 A CN A2008101035869A CN 200810103586 A CN200810103586 A CN 200810103586A CN 101557385 A CN101557385 A CN 101557385A
Authority
CN
China
Prior art keywords
xsd
data
request
verification
server
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
CNA2008101035869A
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 Wenyan Technology Co Ltd
Original Assignee
Beijing Wenyan 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 Wenyan Technology Co Ltd filed Critical Beijing Wenyan Technology Co Ltd
Priority to CNA2008101035869A priority Critical patent/CN101557385A/en
Publication of CN101557385A publication Critical patent/CN101557385A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a uniform data format verification method. Firstly, after receiving a request transmitted by a client terminal, a server extracts business request information contained in information; the server transmits a request for loading an XSD to an XSD management module; the XSD management module searches the corresponding XSD and loads the XSD; the server continuously analyzes the request information and extracts business data; the business data enters a data coding module and is converted into an XML format; then, the data converted into the XML format carries out valid verification by the XSD management module; if the data does not pass through the verification, the data is intercepted, and an error is reported to the client terminal; the data passing through the verification enters a business processing process; the server loads the XSD by an XSD management system and carries out the valid verification of response data; and finally, the response data passing through the verification is transmitted to the client terminal. The invention enables the data to pass through the strict verification before entering the business processing process, the request which does not pass through the verification is intercepted before entering the business processing process, and the error is reported to the client terminal.

Description

A kind of uniform data format verification method
Technical field
The present invention relates to a kind of uniform data format verification method, particularly a kind ofly adopt unified verification method, verify the method for request msg.
Background technology
Parameter checking is the problem of the more complicated that runs at the server end coding, and the request msg of client can enter business processing flow after the needs checking.The parameter type that has may all can be used in many interfaces, causes Validation Code to be easy to repetition, in the future maintenance work has stayed hidden danger.In order to prevent that wrong data are sent to client, reply data equally also needs the checking of parameter.The present invention provides a kind of unified verification method---the XSD checking, make request msg checking through strictness before entering business processing flow, and the request by checking just was not blocked before entering business processing flow, gave client with error reporting.Reply data equally be not blocked under the situation by checking yet.The parameter verification mode of this strictness of server end makes server end needn't hold the parameter error of client, also the data of mistake is not sent to client, thereby makes in the future upgrading and maintenance become and be more prone to.
Summary of the invention
Technical problem to be solved by this invention provides a kind of unified verification method that adopts, and verifies the method for request msg
A kind of uniform data format verification method of the present invention, this method comprises following step at least:
Step 1: the user end to server end sends request.
Step 2: server receives request, the information such as operational approach of the service request that extracts in the solicited message to be comprised.
Step 3: according to these information, server initiates to load the request of XSD to the XSD administration module.
Step 4:XSD administration module is sought corresponding XSD for it and is loaded.
Step 5: server continues analysis request information, extracts its business datum.
Step 6: business datum enters data coding module, is converted into the XML form.
Step 7: use the XSD administration module that the data that are converted to the XML form are carried out validation verification; If by not checking will be blocked, and give client error reporting.
Step 8: the request msg by checking enters into business processing flow.
Step 9: reply data is sent to data coding module, is converted to the XML form.
Step 10: server loads XSD by the XSD management system and carries out the validation verification of reply data; If data will not be blocked by checking, and give client error reporting.
Step 11: the reply data by checking is sent to client.
A kind of uniform data format verification method that the present invention relates to makes and request msg strict checking of process before entering business processing flow just be not blocked by the request of verifying before entering business processing flow, gives client with error reporting.The verification method of this strictness makes server end needn't hold the parameter error of client, also the data of mistake is not sent to client, thereby makes in the future upgrading and maintenance become and be more prone to.
Description of drawings
Fig. 1 is a flow chart of the present invention.
Embodiment
Referring to figure, key step of the present invention is as follows:
Step 1: the user end to server end sends request.
Step 2: server receives request, the information such as operational approach of the service request that extracts in the solicited message to be comprised.
Step 3: according to these information, server initiates to load the request of XSD to the XSD administration module.
Step 4:XSD administration module is sought corresponding XSD for it and is loaded.
Step 5: server continues analysis request information, extracts its business datum.
Step 6: business datum enters data coding module, is converted into the XML form.
Step 7: use the XSD administration module that the data that are converted to the XML form are carried out validation verification; If by not checking will be blocked, and give client error reporting.
Step 8: the request msg by checking enters into business processing flow.
Step 9: reply data is sent to data coding module, is converted to the XML form.
Step 10: server loads XSD by the XSD management system and carries out the validation verification of reply data; If data will not be blocked by checking, and give client error reporting.
Step 11: the reply data by checking is sent to client.
Through strict checking, the request by checking just was not blocked before entering business processing flow request msg, gave client with error reporting before entering business processing flow when above-mentioned technical scheme was implemented.The verification method of this strictness makes server end needn't hold the parameter error of client, also the data of mistake is not sent to client, thereby makes in the future upgrading and maintenance become and be more prone to.
It should be noted last that above embodiment is only in order to explanation and unrestricted technical scheme described in the invention; Therefore, although this specification has been described in detail the present invention with reference to the above embodiments,, those of ordinary skill in the art should be appreciated that still and can make amendment or replacement to the present invention with being equal to; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.

Claims (1)

1, a kind of uniform data format verification method, it is characterized in that: this method comprises following step at least:
Step 1: the user end to server end sends request.
Step 2: server receives request, the information such as operational approach of the service request that extracts in the solicited message to be comprised.
Step 3: according to these information, server initiates to load the request of XSD to the XSD administration module.
Step 4:XSD administration module is sought corresponding XSD for it and is loaded.
Step 5: server continues analysis request information, extracts its business datum.
Step 6: business datum enters data coding module, is converted into the XML form.
Step 7: use the XSD administration module that the data that are converted to the XML form are carried out validation verification; If by not checking will be blocked, and give client error reporting.
Step 8: the request msg by checking enters into business processing flow.
Step 9: reply data is sent to data coding module, is converted to the XML form.
Step 10: server loads XSD by the XSD management system and carries out the validation verification of reply data; If data will not be blocked by checking, and give client error reporting.
Step 11: the reply data by checking is sent to client.
CNA2008101035869A 2008-04-09 2008-04-09 Uniform data format verification method Pending CN101557385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101035869A CN101557385A (en) 2008-04-09 2008-04-09 Uniform data format verification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101035869A CN101557385A (en) 2008-04-09 2008-04-09 Uniform data format verification method

Publications (1)

Publication Number Publication Date
CN101557385A true CN101557385A (en) 2009-10-14

Family

ID=41175332

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101035869A Pending CN101557385A (en) 2008-04-09 2008-04-09 Uniform data format verification method

Country Status (1)

Country Link
CN (1) CN101557385A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569296A (en) * 2019-08-29 2019-12-13 南宁学院 Process data format conversion method
CN108170867B (en) * 2018-01-31 2020-12-25 国信优易数据股份有限公司 Metadata service system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170867B (en) * 2018-01-31 2020-12-25 国信优易数据股份有限公司 Metadata service system
CN110569296A (en) * 2019-08-29 2019-12-13 南宁学院 Process data format conversion method

Similar Documents

Publication Publication Date Title
KR20210038851A (en) In-vehicle electronic control unit upgrading method, device and equipment and vehicle system
EP2611226B1 (en) Processing method and system for over-the-air bootstrap
CN101119207B (en) Authorization control method aimed at server
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
US20120117380A1 (en) Method for Granting Authorization to Access a Computer-Based Object in an Automation System, Computer Program, and Automation System
CN105897652A (en) Standard protocol based heterogeneous terminal dynamic access method
CN104718533A (en) Robust hardware fault management system, method and framework for enterprise devices
CN103402195B (en) The application processing method and enterprise-level mobile solution platform of enterprise-level mobile terminal
CN101873298A (en) Registration method, terminal, server and system
CN105897461A (en) Multi-system OTA upgrading method and multi-system device
CN108011767B (en) Non-invasive configurable operation and maintenance system
CN110880146A (en) Block chain chaining method, device, electronic equipment and storage medium
US20160337210A1 (en) Method and system for trouble ticketing
CN101022473A (en) Method for automatic, identifying plate card configration and generating local data in exchanger
CN102413008A (en) Power-104-protocol-based testing method and system
CN100562097C (en) In the IPTV system, the J2ME business is carried out the method and system of authentication
CN101557385A (en) Uniform data format verification method
CN112116997B (en) Remote diagnosis method, device and system, electronic equipment and computer readable storage medium
US7761468B2 (en) Supporting multiple security mechanisms in a database driver
US11064271B2 (en) Selective delivery state change of valve of remote metering device
CN101512450B (en) Data recording device
CN103188117B (en) Information interaction server simulation testing device and method
CN116127412A (en) Operation log tamper-proof method and system
US20150082447A1 (en) System and method for licensing a plurality of software components
CN111932326B (en) Data processing method based on block chain network and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20091014