CN103634326B - A kind of method and device for processing application system request message - Google Patents

A kind of method and device for processing application system request message Download PDF

Info

Publication number
CN103634326B
CN103634326B CN201310686439.XA CN201310686439A CN103634326B CN 103634326 B CN103634326 B CN 103634326B CN 201310686439 A CN201310686439 A CN 201310686439A CN 103634326 B CN103634326 B CN 103634326B
Authority
CN
China
Prior art keywords
message
dynamic
request
data
processing
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.)
Active
Application number
CN201310686439.XA
Other languages
Chinese (zh)
Other versions
CN103634326A (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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN201310686439.XA priority Critical patent/CN103634326B/en
Publication of CN103634326A publication Critical patent/CN103634326A/en
Application granted granted Critical
Publication of CN103634326B publication Critical patent/CN103634326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present application discloses a kind of method for processing application system request message.The method includes:Receive the application system request message that requesting party sends;Whether application system request message described in analysis judgment is dynamic message;If dynamic message, judge whether the dynamic message request processing field can position in given data structure, if it is, the treatment type and processing field according to dynamic message request form dynamic Message processing sentence according to the Dynamic Data Processing mechanism in dynamic message;Perform the corresponding operating that the dynamic Message processing sentence completes dynamic message request.The embodiment of the present application also discloses a kind of device for processing application system request message.The flexibility of dynamic Message processing, raising system can be improved by the technical scheme of the embodiment of the present application and support the efficiency of business.

Description

A kind of method and device for processing application system request message
Technical field
The application is related to technical field of data processing, more particularly to a kind of method and its correspondence for processing application system message Device.
Background technology
With developing rapidly for IT technologies, the various applications based on IT emerge in an endless stream.Processed with current on-line transaction (OLTP, Online Transaction Processing)As a example by system, because the system can be by information system, computer net Network and database process the work data of general real-time with online mode, realize the data processing work of automation, relative to The large batch of operating type of early stage conventional database systems is significantly different, it is widely used in bank, security, ecommerce Deng the occasion for needing to be interacted between system two-by-two.In these application systems, both there is the system initiated by client and handed over Mutually, for example client uses Web bank, there is also the interaction between two application systems, such as bank's accounting process systems and receipts The interaction of the side's of expense management system, or client is when carrying out shopping online, shopping website and Web bank or Third-party payment platform it Between interaction.Under normal circumstances, the interaction between application system needs to be realized by message, i.e., be with message between application system Carrier transmission information, treatment request or result.Importance based on message, how to be designed in application system flexibly, Efficiently, the Message processing mechanism of stabilization, is the technical problem for needing effective solution badly.
During message interaction of the prior art between realize application system, it is normally based on each application system and customizes report in advance Text, for message development interface.Due to message be customization, the acceptable input of message, the treatment for carrying out and offer it is defeated The content such as go out set, application system after message is received, by carrying out after the message that parsing can not be recognized, or parsing To the message for not meeting given message pattern, the response of message error will be provided;Message to meeting given message pattern, just after It is continuous to carry out subsequent processes, and provide result according to predetermined process logic.However, this mode is although right in application system Relevant data have carried out effective management, but, as long as the message request for receiving is not pre-defined, just can not be located Reason, reduces flexibility and the high efficiency of system, and the Message processing mechanism cannot adapt to various types of business.
The content of the invention
In order to solve the above technical problems, the embodiment of the present application provide it is a kind of process application system request message method and Its corresponding device, to improve the efficiency that business is supported in the flexibility of Message processing, raising system.
The method of the treatment application system request message that the application is provided includes:
Receive the application system request message that requesting party sends;
Whether application system request message described in analysis judgment is dynamic message, and the dynamic message includes dynamic element mark The treatment type and processing field of knowledge, Dynamic Data Processing scheme information and dynamic message request;If dynamic message, sentences Whether the dynamic message request processing field that breaks can position in given data structure, if it is, according to dynamic message The treatment type and processing field of request form dynamic Message processing sentence according to the Dynamic Data Processing mechanism in dynamic message;
Perform the corresponding operating that the dynamic Message processing sentence completes dynamic message request.
Preferably, the treatment type and processing field according to dynamic message request is according to the dynamic number in dynamic message Forming dynamic Message processing sentence according to treatment mechanism includes:
If the Dynamic Data Processing mechanism is dynamic sql accessed, treatment type according to dynamic message request and Processing field domain forms executable SQL statement;
If the Dynamic Data Processing mechanism is atom message accessed, treatment type according to dynamic message request and Processing field calls corresponding atom message, the atom message to be one for data structure of advance construction and store classification Basic handling message.
Preferably, when the request message is for input request message, the treatment type of the dynamic message request includes Data only increase, data are only changed, data have, and modification nothing then increases, and/or, deletion action;
When the request message is for output request message, the treatment type of the dynamic message request includes that inquiry is grasped Make, after the corresponding operating for performing the dynamic dynamic message request of Message processing sentence completion, methods described also includes will behaviour Requesting party is sent to as result.
Preferably, when request message is to be input into the treatment type of request message and dynamic message request for data only increase When, the data with dynamic Message processing field same keyword are judged whether, " there is number if it is present sending and including According to, do not allow to increase " response message of content;Complete to increase operation if it does not exist, then performing dynamic message and only increasing sentence;
When request message is that judgement is when being input into the treatment type of request message and dynamic message request only to be changed for data The no data existed with dynamic Message processing field same keyword, if it does not exist, then sending comprising " in the absence of data, no Allow modification " content response message;Modification operation is completed if it is present performing dynamic message and only changing sentence;
When request message is to be input into the treatment type of request message and dynamic message request for data have, modification nothing then increases Added-time, the data with dynamic Message processing field same keyword are judged whether, if it is present perform dynamic message repairing Change sentence and complete modification operation;Complete to increase operation if it does not exist, then performing dynamic message and increasing sentence.
Preferably, before the corresponding operating of the dynamic dynamic message request of Message processing sentence completion is performed, judge Whether the treatment type and/or processing field of the dynamic message request meet the role-security of requesting party, if meeting request The role-security of side, then perform dynamic Message processing sentence;If not meeting the role-security of requesting party, send comprising " report Text request do not meet role-security, it is impossible to complete operation " content response message.
Preferably, when it is non-dynamic message to judge application system request message, at prior art manner Reason.
Preferably, when judging that dynamic message request processing field can not be positioned in given data structure, then bag is sent Response message containing " message request can not be positioned, it is impossible to complete operation " content.
Present invention also provides a kind of device for processing application system request message.The device includes:Request message is received Unit, message classification judging unit, field location determination unit, sentence form unit and sentence execution unit, wherein:
The request message receiving unit, the application system request message for receiving requesting party's transmission;
Whether the message classification judging unit, be dynamic message for application system request message described in analysis judgment, Treatment type of the dynamic message comprising dynamic element mark, Dynamic Data Processing scheme information and dynamic message request and Processing field;If dynamic message, then trigger fields location determination unit;
The field location determination unit, for judging the dynamic message request processing field whether in given data Can be positioned in structure, if it is, triggering statement forms unit;
The sentence forms unit, for according to the treatment type and processing field of dynamic message request according to dynamic message In Dynamic Data Processing mechanism form dynamic Message processing sentence;
The sentence execution unit, the corresponding behaviour that dynamic message request is completed for performing the dynamic Message processing sentence Make.
Preferably, described device also includes role-security judging unit, for performing the dynamic Message processing sentence Before completing the corresponding operating of dynamic message request, judging the treatment type and/or processing field of the dynamic message request is It is no to meet the role-security of requesting party, if meeting the role-security of requesting party, triggering statement execution unit.
It is further preferred that described device also includes non-dynamic message process unit, for judging that application system please When seeking message for non-dynamic message, processed according to prior art manner.
The classification of the technical scheme of the treatment application system request message that the application is provided request message first to receiving Differentiated, different processing modes are taken for different classifications:If dynamic message, judges that the input of request message is defeated Go out data(Processing field)Whether can be positioned in given data structure, it is orientable in the case of according to dynamic message request Treatment type and processing field form dynamic Message processing sentence according to the Dynamic Data Processing mechanism in dynamic message, and performing should Sentence completes corresponding operating.Compared with prior art, during Message processing, not static message traditional for another example like that according to The message pattern for having customized in advance is processed, but according to given data framework, according to the dynamic message-handling processor for being given System, the executable sentence of dynamic formation is realized obtaining data from application system by the treatment sentence for performing the dynamic formation Or the purpose of data manipulation is carried out to application system.It will thus be seen that the technical scheme of the application is adapted to application system Data structure has included data item to be dealt with but the in advance business demand of non-appointment data exchanging contents, and it is right to improve The flexibility of Message processing.Further, since various satisfactions can be processed actual in the case of without regulation message pattern in advance The message that applied business needs, totally improves efficiency of the application system to business support.
Brief description of the drawings
In order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in application, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the embodiment flow chart of the method for the treatment application system request message of the application;
Fig. 2 is another embodiment flow chart of the method for the treatment application system request message of the application;
Fig. 3 is the graph of a relation between the tables of data in an example of the application;
Fig. 4 is the structured flowchart of the device embodiment of the treatment application system request message of the application.
Specific embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with the application reality The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation Example is only a part of embodiment of the application, rather than whole embodiments.Based on the embodiment in the application, this area is general The every other embodiment that logical technical staff is obtained under the premise of creative work is not made, should all belong to the application guarantor The scope of shield.
Referring to Fig. 1, one embodiment of the method for the treatment application system request message provided the figure shows the application Flow.The flow includes:
Step S101:Receive the application system request message that requesting party sends;
Application system request message can be the message that related service treatment is carried out to application system request, request here Side can be a client terminal, or another application system.Requesting party sends application system request message actually It is for realizing the access to application system.There are two kinds of situations to the access normal conditions of application system in requesting party:One kind is Only certain category information or maintenance application system are sent to application system in itself, i.e., imported request message(Referred to as input request is reported Text), such as, requesting party wishes to carry out the operation such as increase, modification, deletion of data record in database application system, this kind of As long as the request message of type completes corresponding operation, or further returns to the treatment state of application system,;One kind is Need application system to carry out Business Processing and return to the access of result, be i.e. output type request message(Referred to as output request is reported Text), such as, requesting party wishes to carry out data query operation in database application system, and the request message of this type is not only needed Application system is wanted to be operated accordingly(Such as data record search, lookup), and require application system by operating result(Such as Retrieval result)Return to requesting party.
Step S102:Whether application system request message described in analysis judgment is dynamic message, and the dynamic message is included The treatment type and processing field of dynamic element mark, Dynamic Data Processing scheme information and dynamic message request;If Dynamic message, then perform step S103:
Application system is received after message, it is necessary to select treatment channel:If the application request message for receiving is static state Message, then can be processed according to mode same as the prior art, and this embodies the present embodiment can be with existing tupe Compatibility is carried out, treating capacity Message processing is exchanged to clearly big information, ensure that original process performance;If received It is dynamic message to request message, then can be processed according to the follow-up processing mode of the present embodiment, is conducive to application system The transformation and upgrade exploration of system, quick response and seamlessly transit.With static message comparatively the dynamic message of the present embodiment is Concept, it is generally the case that the dynamic message of the present embodiment is needed comprising following information:
A, dynamic element mark, i.e., it is specific real for indicating the request message to be belonging to dynamic message or static message Now, can in the message a preset mark, by the tag definition be dynamic message and the difference of static message is indicated, i.e., There is the mark, then it is assumed that it is dynamic message to receive request message, is otherwise static message.Such as, set in messages " dynamic " element, if finding to include this element in message by parsing dynamic message, illustrates that the message is reported for dynamic Text.This kind of mode avoids being modified or modified many original message and corresponding treatment.
The treatment type of b, dynamic message, i.e., for indicating to need the application system carry out what type of operation, the content The demand of requesting party is embodied, as it was previously stated, message there can be at least two types:Imported and output type, for imported For, then can be to carry out the increase of data record, modification, data record to have if being directed to database application system, repair Change without treatment such as then increase, deletions, then can be query processing for output type.
C, Dynamic Data Processing scheme information, i.e., for indicating application system to be processed according to which kind of mode.Using system System can have different data processing mechanism.Such as, support has been organized into for the data tissue of application system to be held using dynamic The functions such as inquiry, increase, modification, the deletion of row data, then the Dynamic Data Processing mechanism can be dynamic sql access mechanism. Also such as:In some Data application systems, data authentication technique is employed, using every number in the database of the authentication technique According to record(May be deposited with database mode, it is also possible to deposited with file, XML format)An authentication code may be produced, Authentication code is confirmed when data are read, when data are increased, while increasing authentication code.If differentiated in this case Code is by that produced by outside black box strategy, then should construct the electronic messaging to the reasonable storage cell of all data structures, i.e., The message that total data item in storage organization conducts interviews, at this moment, above-mentioned Dynamic Data Processing mechanism is then atom message Access mechanism.
The processing field of d, dynamic message request, i.e., for indicating to be carried out according to treatment type the object of respective handling.
Step S103:Judge whether the dynamic message request processing field can position in given data structure, such as Fruit is then to perform step S104;
After it is determined that application system request message is dynamic message, because subsequent operation needs what is provided according to dynamic message Content information forms executable treatment sentence, accordingly, it would be desirable to judge whether the processing field in dynamic message request is application System is acceptable, that is, judge whether dynamic message request processing field can position in given data structure, if can not Positioning, such as it is that the table using relational database is managed to process type, but does not exist phase in the table of the relational database The major key answered, then application system cannot be processed accordingly, can be given " request can not position, it is impossible to complete operation " sound Message is answered, terminates interaction.If can position, subsequent operation is continued executing with.
Step S104:Treatment type and processing field according to dynamic message request is according to the dynamic data in dynamic message Treatment mechanism forms dynamic Message processing sentence;
Step S105:Perform the corresponding operating that the dynamic Message processing sentence completes dynamic message request.
The class of the technical scheme of the treatment application system request message that the present embodiment is provided request message first to receiving Do not differentiated, different processing modes are taken for different classifications:If dynamic message, makes requests on the input of message Output data(Processing field)Whether can be positioned in given data structure, it is orientable in the case of according to dynamic message request Treatment type and processing field form dynamic Message processing sentence according to the Dynamic Data Processing mechanism in dynamic message, perform The sentence completes corresponding operating;If non-dynamic message(Static message), then can be according to existing processing mode at Reason.Compared with prior art, the embodiment of the present application can at least obtain following technique effect:
(1)Because during Message processing, static message traditional for another example is not like that according to the message for having customized in advance Pattern is processed, but based on given data framework, according to the dynamic Message processing mechanism for being given, dynamic formation can perform Sentence, realize obtaining data from application system by the treatment sentence for performing the dynamic formation or line number entered to application system According to the purpose of operation.It will thus be seen that the technical scheme of the present embodiment is adapted to the business demand of various new generations, improve Flexibility to Message processing.
(2)Because the present embodiment is that treatment mechanism information according to message during Message processing is formed dynamically and can hold Capable sentence, rather than before requesting party sends message, requesting party's good Message processing pattern of Complete customization so that this implementation The scheme of example when in face of the system that data structure is complicated and data volume is huge, to the data do not considered in planning and design Customization when treatment message can be run, so as to when programming and exploitation is carried out, effectively business can be responded by Speeding up development The cycle of demand.
In order to illustrate in greater detail the technical scheme of the application, it is illustrated with more detailed embodiment below.Referring to figure 2, the figure shows the flow of another embodiment of the treatment application system request message method of the application.The flow includes:
Step S201:Receive the application system request message that requesting party sends;
Step S202:First time parsing is carried out to request message, and is judged:The request message is dynamic message or quiet State message, if static message, then perform step S203, if dynamic message, then perform step S204:
Step S203:Mode according to static message of the prior art is processed, and terminates flow.
Step S204:To request message(Dynamic message)Second parsing is carried out, and is judged:The input of dynamic message request Output data marks whether correctly, if incorrect, performs step S205;If correct, step S206 is performed;
Step S205:The response message that can not carry out packet parsing is sent, terminates flow;
Step S206:Judge dynamic message input request and/or output data request processing field whether given Can be positioned in data structure;If can not position, step S207 is performed;If can position, step S209 is performed;
Step S207:Determine whether only to process the content that may have access in data structure, if it is not, then performing step S208;If it is, performing step S209:
Step S208:Request input and/or the unrecognizable response message of output data are sent, terminates flow.
Step S209:Whether the input and/or output data that judge request meet the role requirement of message request person;If It is no, perform step S210;If it is, performing step S211;
Step S210:The response message of request message insufficient permission is sent, terminates flow;
Step S211:Treatment type and processing field according to dynamic message request is according to the dynamic data in dynamic message Treatment mechanism forms dynamic Message processing sentence;
Step S212:Perform the corresponding operating that the dynamic Message processing sentence completes dynamic message request.
As it was previously stated, the treatment of dynamic message is relevant with the Dynamic Data Processing mechanism included in dynamic message, below with Described as a example by dynamic sql is accessed and atom message accesses two ways:
During for using dynamic sql access mechanism:The type of request message is first distinguished, is carried out not according to different types Same treatment:
When the message obtained according to parsing has input request, then input request should be analyzed first, to determine All information of input are all orientable.If the information of input contains nonlocalizable content, " input request can not for response Positioning, it is impossible to complete operation ", message interaction terminates;Otherwise, processed according to dynamic sql access mechanism, for example, used dynamic Data only increase the completion of SQL access mechanisms, data are only changed, data have then modification without then increase, deletion action, wherein:
For allowing when " data only increase ", if in the presence of the data of same keyword(Such as identical relational database master Key), then the response of " there are data, do not allow to increase " is sent, otherwise, performing increases operation;
For allowing when " data are only changed ", if in the absence of the data of same keyword(Such as identical relational database Major key), then the response of " in the absence of data, not allowing modification " is sent, otherwise, perform modification operation;
For allowing when " data have then modification without then increase ", if in the presence of the data of same keyword(For example identical is closed It is database key), then modification is performed, otherwise, performing increases operation;
For " deletion ", the response of " data that request is deleted do not exist " when the data deleted do not exist, is sent, it is no Then, deletion action is performed;
Needing a kind of special circumstances of explanation is:There is the increase to data in being asked at one simultaneously, change, have, change Without then increase, removal request, in this case, two kinds of strategies can be taken:One is performed both by can successfully operate, to not Successfully operation returns to the data and unsuccessful information of operation;Two is that only all of operation is all successful just allows operation, otherwise Any operation is not carried out, but responds out first or all unsuccessful reasons.The use of specific strategy, depending on the logic of application Configuration.
When the message that parsing is obtained has output request, then output request should be analyzed first, to determine output All information be all orientable.If the information of output contains nonlocalizable content(For example with the table of relational database During the major key being managed without can determine that table), then " output request can not be positioned, it is impossible to complete operation ", message interaction are responded Terminate;Otherwise, according to the dynamic data management mechanism supported, such as dynamic sql completes the inquiry operation of data.
During for using atom message access mechanism:The atom message for building in advance can include:(1)It is rational to each The increase message that storage cell is set up, i.e., each increased record unit, for example, database table record; (2)The modification message set up to each rational storage cell, i.e., of modification records unit every time, for example, a data One record of storehouse table;(3)The deletion message set up to each rational storage cell, i.e., the record deleted every time Position, for example, database table record;(4)The query message set up to each rational storage cell, every time inquiry The record unit of number is limited, for example, a database table is no more than 50 records.In above-mentioned predetermined atom message On the basis of, the different type for request message is processed respectively:
When the message that parsing is obtained has input request, then input request should be analyzed first, to determine input All information be all orientable, if input information contain nonlocalizable content(For example with the table of relational database During the major key being managed without can determine that table), then " input request can not be positioned, it is impossible to complete operation ", message interaction are responded Terminate;Otherwise, rational storage cell respectively where positioning input data, call described message completion data only to increase, Data are only changed, data have then modification without then increase, deletion action, wherein:
For allowing when " data only increase ", if in the presence of the data of same keyword(Such as identical relational database master Key), then the response of " there are data, do not allow to increase " is sent, otherwise, performing increases operation;
For allowing when " data are only changed ", if in the absence of the data of same keyword(Such as identical relational database Major key), then the response of " in the absence of data, not allowing modification " is sent, otherwise, performing increases operation;
For allowing when " data have then modification without then increase ", modification message first to be called, if in the presence of the number of same keyword According to(Such as identical relational database major key), then modification is performed, otherwise, calling increase message to perform increases operation;
For " data deletion " operation, when the data deleted do not exist, send " data that request is deleted do not exist " Response, otherwise, performs deletion action;
When the message that parsing is obtained has output request, then output request should be analyzed first, to determine output All information be all orientable.If the information of output contains nonlocalizable content(For example with the table of relational database During the major key being managed without can determine that table), then " output request can not be positioned, it is impossible to complete operation ", message interaction are responded Terminate;Otherwise, query message is called, inquiry operation is completed.
Above-mentioned technical proposal is illustrated with two examples below.The application system that the two examples are directed to is software point With management system.The software distribution management system is used for computer and personnel assigned by logging software.Referring to Fig. 3, the figure Middle use Person tables, Computer tables, Software tables, Person_Computer_relat tables, Computer_SW_ Relat tables, User tables(User_ID\Password\Role_ID), Role tables(Role_ID\Role_Name)It is to describe this System.The characteristics of system has following:
(1)Being there is provided in the data framework of system can include other in addition to User tables and Role tables by outside access part Database table, and with baseline.Service management unit and Role Management unit access that User tables and Role tables pass through system.
(2)The data access of system is based role, to each the accessible element that can not be divided, role-security pipe Reason unit is previously determined can carry out data query, the authority for increasing, changing, have then modification without then increase, deletion by role, Need to carry out control of authority to content, also define the accessible content threshold value of different role.
(3)System of users and role at most can be a kind of role using unidirectional matching strategy, i.e. each user, but each Role may have multiple users, it is also possible to without user.
(4)The message that system is received is clear and definite user, in the case where the sender of message does not specify user, it is believed that Message from same sender is all from same default user(Such as:The information of certain branch's communication is the software point of certain branch With management system).
(5)The security mechanism of system is realized by SSL security mechanisms, i.e., realized by digital certificate mode.
(6)Person tables in system, Computer tables, Software tables, Person_Computer_relat tables, Computer_SW_relat table structures are informed user and can be accessed by user, but User tables and Role table structures are not informed User, the content of these tables can not be accessed by dynamic message.
(7)The addressable data structure of system can typically be described with XML.
(8)In the information exchange, system is the respondent of message, rather than requestor.
One of example:
It is assumed that the example carries out Message processing by dynamic SQL statements access mechanism, now need inquiry Lee wide in mac addresses For what software be mounted with the computer of 00-00-00-00-00-00, here is the content of request message:
For the request message, the implementation procedure of this example is as follows:
(1)After receiving the application system request message that requesting party sends, whether dynamic element is included in analysis request message Mark, by parsing discovery, the request message includes dynamic elements, illustrates that this message is dynamic message, and further parse It was found that, the textual value of the dynamic element is dynamicSQL, illustrates that this message is the dynamic report that data are accessed by dynamic sql Text;
(2)The elements such as outputtype, outputdata, selectTable in analysis request message, check angle brackets Deng XML grammers, element term etc., determine that input and output identify whether can recognize that.By checking, the element in request message Identification;
(3)Outputdata elements in analysis request message, obtain textual value be " Person_ID, Person_Name, Computer_MAC, Soft_ID, Card_Num, Password ", it is seen then that this example message request needs to inquire about Lee's identity wide Card number, machine MAC Address, installation software, wage card number and user cipher.Through parsing, output data wage card number Card_Num Can not be positioned in given data structure, in this case, this example allows only to process the content that may have access in data structure, Ignore Card_Num.
(4)User elements in analysis request message, it is wujunfeng to obtain active user, through service management unit, angle Color administrative unit, role-security administrative unit, addressable data structure managing unit treatment, show that active user is branch's system Administrator role, it is impossible to obtain Lee's user cipher wide, haves no right to access Password, therefore return to " insufficient permission " letter for the value Breath.
(5)The value of the elements such as selectSQL, selectConditionList in analysis request message, dynamic formation SQL query statement inquires about data and obtains result.
(6)Return to the Query Result of the first dynamic data retrieval unit.
The two of example:
It is assumed that the example carries out Message processing by atom message access mechanism, now need inquiry Lee be wide be in mac addresses Any software is mounted with the computer of 00-00-00-00-00-00, here is the content of request message:
For the request message, the implementation procedure of this example is as follows:
(1)After receiving the application system request message that requesting party sends, dynamic elements are parsed, if be free of in message This element, illustrates that this message is static message, illustrates that this message is dynamic message containing this element, and through parsing, element text is AtomicSQL, illustrates that this message is the dynamic message that data are accessed by atom message;
(2)Second packet parsing unit resolves outputtype, outputdata, conditionlist elements, check point The XML such as bracket grammers, element term, input and output mark are recognizable, carry out next step parsing;
(3)Second packet parsing unit resolves outputdata elements, obtain textual value be " Person_ID, Soft_ID, Card_Num, Password ", the present embodiment message request inquiry Lee identification card number wide, installation software, wage card number and user Password, through parsing, output data wage card number Card_Num not in given data structure, further, the present embodiment system System allows only to process the content that may have access in data structure, that is, ignore Card_Num.Other output datas request of message is being given In fixed addressable data structure, next step parsing is carried out;
(4)Second packet parsing unit resolves conditionlist elements, obtain " Person_Name, Computer_ Two conditions of MAC " and corresponding value, determine two values in data structure and are accessible by, and according to the two Value can position the output valve specified in outputdata elements;
(5)Second packet parsing unit resolves user elements, it is wujunfeng to obtain active user, through user management list Unit, Role Management unit, role-security administrative unit, data structure managing unit treatment is may have access to, show that active user is point Row system manager role, it is impossible to obtain Lee's user cipher wide, haves no right to access Password, therefore return to " authority for the value It is not enough " information;
(6)Second packet parsing unit is directed to the operation for meeting authority, chooses suitable atom message.
(7)Second dynamic data retrieval unit performs selected atom message, to obtain Person_ID, Soft_ID letters Breath, in this process, it may be necessary to the data structure in the middle of some is accessed, to determine final return information.Finally by output Request returns to Query Result.Wherein, to the more complicated content that data in another tables of data are positioned by a certain tables of data, can Completed by the atom message of advance customization, can also be completed by application logic, and application logic is completed with bigger flexible Property.
The method that the above describes the treatment application system request message of the application in detail, correspondingly, the application is also There is provided a kind of device for processing application system request message.Referring to Fig. 4, the figure shows treatment application system request message The structured flowchart of device.The device includes:Request message receiving unit 401, message classification judging unit 402, field positioning are sentenced Disconnected unit 403, sentence forms unit 404 and sentence execution unit 405, wherein:
Request message receiving unit 401, the application system request message for receiving requesting party's transmission;
Whether message classification judging unit 402, be dynamic message, institute for application system request message described in analysis judgment State dynamic message and include dynamic element mark, the treatment type of Dynamic Data Processing scheme information and dynamic message request and place Reason field;If dynamic message, then trigger fields location determination unit;
Field location determination unit 403, for judging the dynamic message request processing field whether in given data Can be positioned in structure, if it is, triggering statement forms unit;
Sentence formed unit 404, for according to the treatment type and processing field of dynamic message request according to dynamic message In Dynamic Data Processing mechanism form dynamic Message processing sentence;
Sentence execution unit 405, the corresponding behaviour that dynamic message request is completed for performing the dynamic Message processing sentence Make.
The course of work of present apparatus embodiment is:Request message receiving unit please in the application system for receiving requesting party's transmission After seeking message, whether application system request message is dynamic message as described in message classification judging unit analysis judgment, if Dynamic message, then whether dynamic message request processing field described in trigger fields location determination unit judges is in given data knot Whether can be positioned in structure, if it is, triggering statement forms treatment type and processing field of the unit according to dynamic message request Dynamic Message processing sentence is formed according to the Dynamic Data Processing mechanism in dynamic message;Finally by sentence execution unit, it is used for Perform the corresponding operating that the dynamic Message processing sentence completes dynamic message request.
Said apparatus embodiment be based on it is specific the need for, can also increase or change some functional units.Such as, above-mentioned dress Putting embodiment can also include role-security judging unit 406, for performing the dynamic Message processing sentence completion dynamic Before the corresponding operating of message request, judge whether the treatment type and/or processing field of the dynamic message request meet and ask The role-security of the side of asking, if meeting the role-security of requesting party, triggering statement execution unit.For another example, said apparatus reality Applying example can also include non-dynamic message process unit 407, for judging that application system request message is non-dynamic message When, processed according to prior art manner.The two passes of Message processing, i.e. prior art can be given in this way Treatment channel and treatment channel of the invention, by selecting the passage of non-dynamic message process unit, make the present invention have compared with The ability of good compatible existing Message processing mode.
It should be noted that:For the simplicity of narration, above-described embodiment of this specification and the various modifications of embodiment What implementation was stressed is all the difference with other embodiment or mode of texturing, identical similar between each situation Part mutually referring to.Especially device embodiment part, in order to avoid repeating, has only carried out brief description, is understanding The content of foregoing embodiment of the method is referred to during device embodiment.Device, each unit of system embodiment described above Can be or may not be physically separate, both may be located at a place, or multiple networks can also be distributed to Under environment.In actual application, can according to the actual needs select some or all of unit therein to realize this The purpose of embodiment scheme, those of ordinary skill in the art are without creative efforts, you can simultaneously real to understand Apply.
The above is only the specific embodiment of the application, it is noted that for the ordinary skill people of the art For member, on the premise of the application principle is not departed from, some improvements and modifications can also be made, these improvements and modifications also should It is considered as the protection domain of the application.

Claims (6)

1. it is a kind of process application system request message method, it is characterised in that the method includes:
Receive the application system request message that requesting party sends;
Whether application system request message described in analysis judgment is dynamic message, the dynamic message comprising dynamic element mark, The treatment type and processing field of Dynamic Data Processing scheme information and dynamic message request;If dynamic message, judges Whether the dynamic message request processing field can position in given data structure, if it is, please according to dynamic message The treatment type and processing field asked form dynamic Message processing sentence according to the Dynamic Data Processing mechanism in dynamic message;
Perform the corresponding operating that the dynamic Message processing sentence completes dynamic message request;
The treatment type and processing field according to dynamic message request is according to the Dynamic Data Processing mechanism in dynamic message Forming dynamic Message processing sentence includes:
If the Dynamic Data Processing mechanism is accessed for dynamic sql, treatment type and treatment according to dynamic message request Field forms executable SQL statement;
If the Dynamic Data Processing mechanism is accessed for atom message, treatment type and treatment according to dynamic message request Field calls corresponding atom message, and the atom message is one for the data structure base for storing classification of advance construction Present treatment message.
2. method according to claim 1, it is characterised in that described when the request message is for input request message The treatment type of dynamic message request only increases including data, data are only changed, data have, and modification nothing then increases, and/or, delete Except data manipulation;
When the request message is for output request message, the treatment type of the dynamic message request includes inquiry operation;Institute Stating method also includes:After the corresponding operating for performing the dynamic dynamic message request of Message processing sentence completion, methods described Also include for operating result being sent to requesting party.
3. method according to claim 2, it is characterised in that
When request message is when being input into the treatment type of request message and dynamic message request only to increase for data, to judge whether to deposit In the data with dynamic Message processing field same keyword, if it is present sending comprising " there are data, do not allow to increase " The response message of content;Complete to increase operation if it does not exist, then performing dynamic message and only increasing sentence;
When request message is when being input into the treatment type of request message and dynamic message request only to be changed for data, to judge whether to deposit In the data with dynamic Message processing field same keyword, " in the absence of data, do not allowed if it does not exist, then sending and including The response message of modification " content;Modification operation is completed if it is present performing dynamic message and only changing sentence;
When request message is to be input into the treatment type of request message and dynamic message request for data have, when modification nothing then increases, The data with dynamic Message processing field same keyword are judged whether, if it is present performing dynamic message modification language Sentence completes modification operation;Complete to increase operation if it does not exist, then performing dynamic message and increasing sentence.
4. the method according to any one of claims 1 to 3, it is characterised in that performing the dynamic Message processing Before sentence completes the corresponding operating of dynamic message request, the treatment type and/or treatment word of the dynamic message request are judged Whether section meets the role-security of requesting party, if meeting the role-security of requesting party, performs dynamic Message processing sentence;Such as Fruit does not meet the role-security of requesting party, then send comprising " message request does not meet role-security, it is impossible to complete operation " content Response message.
5. method according to claim 1, it is characterised in that judge dynamic message request processing field in given data When can not be positioned in structure, then the response message comprising " message request can not be positioned, it is impossible to complete operation " content is sent.
6. it is a kind of process application system request message device, it is characterised in that the device includes:Request message receiving unit, Message classification judging unit, field location determination unit, sentence form unit and sentence execution unit, wherein:
The request message receiving unit, the application system request message for receiving requesting party's transmission;
Whether the message classification judging unit, be dynamic message for application system request message described in analysis judgment, described Dynamic message includes dynamic element mark, the treatment type of Dynamic Data Processing scheme information and dynamic message request and treatment Field;If dynamic message, then trigger fields location determination unit;
The field location determination unit, for judging the dynamic message request processing field whether in given data structure In can position, if it is, triggering statement formed unit;
The sentence forms unit, for according to the treatment type and processing field of dynamic message request according in dynamic message Dynamic Data Processing mechanism forms dynamic Message processing sentence;
The sentence execution unit, the corresponding operating of dynamic message request is completed for performing the dynamic Message processing sentence;
Described device also includes role-security judging unit, for performing the dynamic dynamic message of Message processing sentence completion Before the corresponding operating of request, judge whether the treatment type and/or processing field of the dynamic message request meet requesting party Role-security, if meeting the role-security of requesting party, triggering statement execution unit.
CN201310686439.XA 2013-12-13 2013-12-13 A kind of method and device for processing application system request message Active CN103634326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310686439.XA CN103634326B (en) 2013-12-13 2013-12-13 A kind of method and device for processing application system request message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310686439.XA CN103634326B (en) 2013-12-13 2013-12-13 A kind of method and device for processing application system request message

Publications (2)

Publication Number Publication Date
CN103634326A CN103634326A (en) 2014-03-12
CN103634326B true CN103634326B (en) 2017-05-31

Family

ID=50214953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310686439.XA Active CN103634326B (en) 2013-12-13 2013-12-13 A kind of method and device for processing application system request message

Country Status (1)

Country Link
CN (1) CN103634326B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670297B (en) * 2018-12-14 2021-05-07 泰康保险集团股份有限公司 Method and device for opening service permission, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770503A (en) * 2009-12-31 2010-07-07 深圳联友科技有限公司 File packing and unpacking method
CN101917312A (en) * 2010-09-01 2010-12-15 中国建设银行股份有限公司 Performance test stimulator, and message package module, message packaging and sending method thereof
CN102013982A (en) * 2010-12-01 2011-04-13 银联商务有限公司 Long-distance encryption method and device, management method and device, as well as encryption management method and device
CN102238223A (en) * 2010-05-06 2011-11-09 清华大学 Networked personal data management method for mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770503A (en) * 2009-12-31 2010-07-07 深圳联友科技有限公司 File packing and unpacking method
CN102238223A (en) * 2010-05-06 2011-11-09 清华大学 Networked personal data management method for mobile device
CN101917312A (en) * 2010-09-01 2010-12-15 中国建设银行股份有限公司 Performance test stimulator, and message package module, message packaging and sending method thereof
CN102013982A (en) * 2010-12-01 2011-04-13 银联商务有限公司 Long-distance encryption method and device, management method and device, as well as encryption management method and device

Also Published As

Publication number Publication date
CN103634326A (en) 2014-03-12

Similar Documents

Publication Publication Date Title
US11361097B2 (en) Dynamically generating sharing boundaries
US20200285978A1 (en) Model training system and method, and storage medium
US8195603B2 (en) Rapid caching and data delivery system and method
CN102598007B (en) Effective detection fingerprints the system and method for data and information
US7895176B2 (en) Entry group tags
CN106127038B (en) A kind of processing method and system of blacklist
CN109284631A (en) A kind of document desensitization system and method based on big data
US20090083241A1 (en) Data paging with a stateless service
US20080270987A1 (en) Method and system for allowing access to developed applications via a multi-tenant on-demand database service
EP1686498A2 (en) Integration of a non-relational query language with a relational data store
EP3020017A1 (en) Method and system for creating tax configuration templates
US20210303720A1 (en) Access controls for a dedicated database system storing user-generated content input to a multitenant service of a collaborative work environment
US20210191957A1 (en) Data integration and curation
CN110032886A (en) The method and apparatus of access authorization for resource management
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
CN101552801A (en) A method and system for on-line browsing and downloading the address-book of user group
CN105989426A (en) Customer relationship management system facing standard information service industry
CN107798037A (en) The acquisition methods and server of user characteristic data
CN111400465B (en) Generation method and device of customer service robot, electronic equipment and medium
US20070300243A1 (en) Modular caching method and system for enabling offline functionality of server-client systems
US10192262B2 (en) System for periodically updating backings for resource requests
US8359647B1 (en) System, method and computer program product for rendering data of an on-demand database service safe
Soleymani et al. Fuzzy Rule‐Based Trust Management Model for the Security of Cloud Computing
US20210304143A1 (en) Data classification in application programming interfaces at attribute level
US9503351B1 (en) Deployment feedback for system updates to resources in private networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant