[go: nahoru, domu]

CN103634326A - Method and device for processing request message of application system - Google Patents

Method and device for processing request message of application system Download PDF

Info

Publication number
CN103634326A
CN103634326A CN201310686439.XA CN201310686439A CN103634326A CN 103634326 A CN103634326 A CN 103634326A CN 201310686439 A CN201310686439 A CN 201310686439A CN 103634326 A CN103634326 A CN 103634326A
Authority
CN
China
Prior art keywords
message
dynamic
request
processing
data
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
CN201310686439.XA
Other languages
Chinese (zh)
Other versions
CN103634326B (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

Images

Landscapes

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

Abstract

The embodiment of the invention discloses a method for processing a request message of an application system. The method comprises steps of receiving the request message of the application system sent by a requester; analyzing and judging whether the request message of the application system is a dynamic message or not, if the request message of the application system is the dynamic message, judging whether the field of the dynamic message requesting to be processed can be located in a given data structure, and if the field of the dynamic message requesting to be processed can be located in a given data structure, forming dynamic message processing statements by a dynamic data processing mechanism in the dynamic message according to the processing type and processing field requested by the dynamic message; executing the processing statements of the dynamic message so as to complete corresponding operation of the dynamic message request. The embodiment of the invention also discloses a device for processing the request message of the application system. Due to the method and the device for processing the request message of the application system disclosed by the technical scheme of the invention, the flexibility of processing of the dynamic request message can be improved, and the efficiency of the system in supporting business is improved.

Description

A kind of method and device of processing application system request message
Technical field
The application relates to technical field of data processing, particularly a kind of method and corresponding device thereof of processing application system message.
Background technology
Along with developing rapidly of IT technology, the various application based on IT emerge in an endless stream.With current on-line transaction, process (OLTP, Online Transaction Processing) system is example, because this system can be processed by information system, computer network and database the work data of general real-time with online mode, realize the data processing work of automation, obviously different with respect to the large batch of operating type of early stage conventional database systems, make it be widely used between system, carrying out between two mutual occasion at needs such as bank, security, ecommerce.In these application systems, both there is the system interaction of being initiated by client, for example client uses Web bank, also there is mutual between two application systems, for example bank's accounting processing system and payment collector management system is mutual, or client is while carrying out shopping online, mutual between shopping website and Web bank or third party's payment platform.Generally, need to realize by message alternately between application system be take message as carrier transmission information, processing request or result between application system.How importance based on message, design flexible, efficient, stable message-handling processor system in application system, is the technical problem of needing effective solution badly.
Prior art, when the message interaction of realizing between application system, normally customizes message based on each application system, in advance for message development interface.Because message customizes, the input that message can be accepted, the processing of carrying out and the contents such as output that provide are all set, application system is after receiving message, by resolving the message that can not identify, or after resolving, obtain not meeting the message of given message pattern, will give the response of outgoing packet mistake; To meeting the message of given message pattern, just proceed subsequent processes, and provide result according to predetermined process logic.Yet, although this mode has been carried out effective management to relevant data in application system, but, as long as the message request receiving is not pre-defined, just can not process, reduced flexibility and the high efficiency of system, this message-handling processor system cannot adapt to various dissimilar business.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of method and corresponding device thereof of processing application system request message, to improve the flexibility of message processing, the efficiency of raising system supporting business.
The method of the processing application system request message that the application provides comprises:
Receive the application system request message that requesting party sends;
Described in analysis judgment, whether application system request message is dynamic message, processing type and processing field that described dynamic message comprises dynamic element sign, Dynamic Data Processing scheme information and dynamic message request; If dynamic message, judge whether described dynamic message request processing field can locate in given data structure, if so, according to dynamically processing type and the processing field of message request form dynamic message processing statement according to the Dynamic Data Processing mechanism in dynamic message;
Carry out described dynamic message and process the corresponding operating that statement completes dynamic message request.
Preferably, the processing type of the dynamic message request of described basis and processing field comprise according to the dynamic message processing of the Dynamic Data Processing mechanism formation statement in dynamic message:
If described Dynamic Data Processing mechanism is dynamic sql access, according to dynamically processing type and the processing field territory of message request form executable SQL statement;
If described Dynamic Data Processing mechanism is the access of atom message, according to processing type and the processing field of dynamic message request, call corresponding atom message, described atom message is other basic handling message of a storage class for data structure of constructing in advance.
Preferably, when described request message is input request message, the processing type of described dynamic message request comprises that data only increase, data are only revised, data have modification without increasing, and/or, deletion action;
When described request message is output request message, the processing type of described dynamic message request comprises query manipulation, at the described dynamic message of execution, process statement and complete after the corresponding operating of dynamic message request, described method also comprises operating result is sent to requesting party.
Preferably, when request message be input request message and dynamically the processing type of message request be that data are when only increase, judge whether the data of existence and dynamic message processing field same keyword, if existed, send the response message that comprises " have data, do not allow to increase " content; If there is no, carrying out dynamic message only increases statement and completes and increase operation;
When request message be input request message and dynamically the processing type of message request be that data are when only revise, judge whether the data of existence and dynamic message processing field same keyword, if there is no, send the response message that comprises " do not have data, do not allow to revise " content; If existed, carry out dynamic message and only revise statement and complete retouching operation;
When request message be input request message and dynamically the processing type of message request be that data have and revise when increasing, judge whether the data of existence and dynamic message processing field same keyword, if existed, carry out dynamic message modification statement and complete retouching operation; If there is no, carry out dynamic message increase statement and complete increase operation.
Preferably, before the described dynamic message processing statement of execution completes the corresponding operating of dynamic message request, judge the processing type of described dynamic message request and/or the role-security whether processing field meets requesting party, if meet requesting party's role-security, carry out dynamic message and process statement; If do not meet requesting party's role-security, send and comprise the response message of " message request does not meet role-security, cannot complete operation " content.
Preferably, when judging application system request message and be non-dynamic message, according to prior art mode, process.
Preferably, judge when dynamic message request processing field can not be located in given data structure, send and comprise the response message of " message request can not be located, cannot complete operation " content.
The application also provides a kind of device of processing application system request message.This device comprises: request message receiving element, message classification judging unit, field location determination unit, statement forming unit and statement performance element, wherein:
Described request message receiving element, the application system request message sending for receiving requesting party;
Whether described message classification judging unit, be dynamic message for application system request message described in analysis judgment, processing type and processing field that described dynamic message comprises dynamic element sign, Dynamic Data Processing scheme information and dynamic message request; If dynamic message, trigger fields location determination unit;
Described field location determination unit, for judging whether described dynamic message request processing field can locate in given data structure, if so, triggering statement forming unit;
Described statement forming unit, for forming dynamic message processing statement according to the processing type of dynamic message request and processing field according to the Dynamic Data Processing mechanism of dynamic message;
Described statement performance element, processes for carrying out described dynamic message the corresponding operating that statement completes dynamic message request.
Preferably, described device also comprises role-security judging unit, before completing the corresponding operating of dynamic message request at the described dynamic message processing statement of execution, judge the processing type of described dynamic message request and/or the role-security whether processing field meets requesting party, if meet requesting party's role-security, triggering statement performance element.
Further preferably, described device also comprises non-dynamic message process unit, for when judging application system request message and be non-dynamic message, according to prior art mode, processes.
The technical scheme of the processing application system request message that the application provides is first differentiated the classification of the request message receiving, for different classifications, take different processing modes: if dynamic message, whether the inputoutput data (processing field) that judges request message can locate in given data structure, in orientable situation, according to the processing type of dynamic message request and processing field, according to the Dynamic Data Processing mechanism in dynamic message, form dynamic message processing statement, carry out this statement and complete corresponding operating.Compared with prior art, in message processing procedure, traditional static message is not processed according to the message pattern having customized in advance like that for another example, but according to given data framework, according to the dynamic message-handling processor system providing, the executable statement of dynamic formation, realizes by carrying out the processing statement of this dynamic formation the object of obtaining data or application system is carried out to data manipulation from application system.Can find out thus, the data structure that the application's technical scheme can adapt to application system has comprised data item to be dealt with but the business demand of appointment data exchanging contents not in advance, has improved the flexibility that message is processed.In addition,, owing to processing the various messages that meet practical application service needed in the situation that not stipulating message pattern in advance, totally improved the efficiency of application system to business support.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, the accompanying drawing the following describes is only some embodiment that record in the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the embodiment flow chart of method of the application's processing application system request message;
Fig. 2 is another embodiment flow chart of method of the application's processing application system request message;
Fig. 3 is the graph of a relation between the tables of data in the application's a example;
Fig. 4 is the structured flowchart of device embodiment of the application's processing application system request message.
Embodiment
In order to make those skilled in the art person understand better the technical scheme in the application, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only a part of embodiment of the application, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all should belong to the scope of the application's protection.
Referring to Fig. 1, the figure shows the flow process of an embodiment of the method for the processing application system request message that the application provides.This flow process comprises:
Step S101: receive the application system request message that requesting party sends;
Application system request message can be to application system request, to carry out the message of related service processing, and the requesting party here can be a client terminal, can be also Another application system.Requesting party sends application system request message and is actually for realizing the access to application system.There are two kinds of situations to the access normal conditions of application system in requesting party: a kind of is only to application system, to send certain category information or maintenance application system itself, it is imported request message (being called for short input request message), such as, requesting party wishes to carry out the operations such as the increase, modification, deletion of data record in database application system, as long as the request message of this type completes corresponding operation, or return to further the treatment state of application system; A kind of is need application system to carry out Business Processing and return to the access of result, it is output type request message (being called for short output request message), such as, requesting party wishes to carry out data query operation in database application system, the request message of this type not only needs application system to operate accordingly (as data record searching, search etc.), and requires application system that operating result (as result for retrieval) is returned to requesting party.
Step S102: described in analysis judgment, whether application system request message is dynamic message, processing type and processing field that described dynamic message comprises dynamic element sign, Dynamic Data Processing scheme information and dynamic message request; If dynamic message performs step S103:
Application system receives after message, need to select treatment channel: if the application request message receiving is static message, can process according to mode same as the prior art, this embodies the present embodiment can carry out compatibility with existing tupe, clear and definite large information exchange treating capacity message is processed, can be guaranteed original handling property; If receive request message, be dynamic message, can process according to the follow-up processing mode of the present embodiment, be conducive to the transformation and upgrade of application system to explore, respond and seamlessly transit fast.The dynamic message of the present embodiment is and static message concept comparatively speaking that generally, the dynamic message of the present embodiment need to comprise following information:
A, dynamic element sign, be used to indicate this request message and belong to dynamic message or static message, during specific implementation, can be in this message a preset sign, this sign is defined as to the difference indication of dynamic message and static message, there is this sign, think that receiving request message is dynamic message, otherwise be static message.Such as, " dynamic " element is set in message, if find to comprise this element in message by resolving dynamic message, illustrate that this message is dynamic message.This kind of mode avoids original message and corresponding processing to change or change too much.
The processing type of b, dynamic message, be used to indicate and need application system to carry out the operation of which kind of type, this content embodies requesting party's demand, as previously mentioned, message can have at least two types: imported and output type, for imported, if for database application system, can be that increase, modification, the data record of carrying out data record has processing such as revising nothing increases, deletion, for output type, can be query processing.
C, Dynamic Data Processing scheme information, be used to indicate application system and according to which kind of mode process.Application system can have different data processing mechanism.Such as, for the Organization of Data of application system, be organized into the functions such as inquiry, increase, modification, deletion of supporting to adopt Dynamic Execution data, this Dynamic Data Processing mechanism can be dynamic sql access mechanism.Also such as: in some Data application system, adopted data authentication technique, adopt every data record in the database of this authentication technique (may deposit with database mode, also may deposit with file, XML form) all may produce an authentication code, when reading out data, authentication code is confirmed, when increasing data, increase authentication code simultaneously.If authentication code is to produce by outside black box strategy in this case, should construct the electronic messaging to the reasonable storage cell of all data structures, it is the message that the total data item in storage organization conducts interviews, at this moment, above-mentioned Dynamic Data Processing mechanism is atom message access mechanism.
The processing field of d, dynamic message request, is used to indicate the object that carries out respective handling according to processing type.
Step S103: judge that whether described dynamic message request processing field can locate in given data structure, if so, performs step S104;
After definite application system request message is dynamic message, because subsequent operation needs to form executable processing statement according to the content information that dynamically message provides, therefore, need to judge whether the processing field in dynamic message request is that application system is acceptable, judge whether dynamic message request processing field can locate in given data structure, if can not locate, such as processing type for the table of employing relational database is managed, but in the table of this relational database, there is not corresponding major key, application system cannot be processed accordingly, can provide that " request can not be located, cannot complete operation " response message, finish mutual.If can locate, continue to carry out subsequent operation.
Step S104: form dynamic message processing statement according to the Dynamic Data Processing mechanism in dynamic message according to the processing type of dynamic message request and processing field;
Step S105: carry out described dynamic message and process the corresponding operating that statement completes dynamic message request.
The technical scheme of the processing application system request message that the present embodiment provides is first differentiated the classification of the request message receiving, for different classifications, take different processing modes: if dynamic message, whether carry out the inputoutput data (processing field) of request message can locate in given data structure, in orientable situation, according to the processing type of dynamic message request and processing field, according to the Dynamic Data Processing mechanism in dynamic message, form dynamic message processing statement, carry out this statement and complete corresponding operating; If non-dynamic message (static message) can be processed according to existing processing mode.Compared with prior art, the embodiment of the present application at least can obtain following technique effect:
(1) due in message processing procedure, traditional static message is not processed according to the message pattern having customized in advance like that for another example, but data framework based on given, according to the dynamic message-handling processor system providing, the executable statement of dynamic formation, realizes by carrying out the processing statement of this dynamic formation the object of obtaining data or application system is carried out to data manipulation from application system.Can find out thus, the technical scheme of the present embodiment can adapt to the business demand of various new generations, has improved the flexibility that message is processed.
(2) because the present embodiment is that the treatment mechanism information according to message dynamically forms executable statement in message processing procedure, rather than before requesting party sends message, requesting party is the good message tupe of Complete customization, the scheme that makes the present embodiment is when in the face of data structure complexity and the huge system of data volume, customization in the time of can moving the data processing message reckoning without when planning and design, thereby carrying out programming and when exploitation, the effectively cycle of Speeding up development response service demand.
In order to illustrate in greater detail the application's technical scheme, with more detailed embodiment, set forth below.Referring to Fig. 2, the figure shows the flow process of another embodiment of the application's processing application system request message method.This flow process comprises:
Step S201: receive the application system request message that requesting party sends;
Step S202: request message is resolved for the first time, and judgement: described request message is dynamic message or static message, if static message performs step S203, if dynamic message performs step S204:
Step S203: the mode according to static message of the prior art is processed, process ends.
Step S204: request message (dynamically message) is resolved for the second time, and judgement: dynamically the inputoutput data of message request marks whether correctly, if incorrect, performs step S205; If correct, perform step S206;
Step S205: send the response message that can not carry out packet parsing, process ends;
Step S206: judge whether the input request of dynamic message and/or output data request processing field can locate in given data structure; If can not locate, perform step S207; If can locate, perform step S209;
Step S207: judge whether to allow only to process the content in addressable data structure, if not, perform step S208; If so, perform step S209:
Step S208: send request input and/or the unrecognizable response message of output data, process ends.
Step S209: whether the input of judgement request and/or output data meet message request person's role requirement; If not, execution step S210; If so, perform step S211;
Step S210: send the response message of request message insufficient permission, process ends;
Step S211: form dynamic message processing statement according to the Dynamic Data Processing mechanism in dynamic message according to the processing type of dynamic message request and processing field;
Step S212: carry out described dynamic message and process the corresponding operating that statement completes dynamic message request.
As previously mentioned, dynamically the processing of message is relevant with the Dynamic Data Processing mechanism comprising in dynamic message, and the dynamic sql of take below access and atom message are accessed two kinds of modes and narrated as example:
During for employing dynamic sql access mechanism: first distinguish the type of request message, carry out different processing according to different types:
When the message obtaining according to parsing has input request, should first to input request, analyze, to determine that all information of input are all orientable.If the information of input contains nonlocalizable content, response " input request can not be located, cannot complete operation ", message interaction finishes; Otherwise, according to dynamic sql access mechanism, process, for example use that dynamic sql access mechanism completes that data only increase, data are only revised, data have revise without increasing, deletion action, wherein:
During for permission " data only increase ", for example, if there are the data (identical relational database major key) of same keyword, send the response of " have data, not allowing increases ", otherwise, carry out and increase operation;
During for permission " data are only revised ", for example, if there are not the data (identical relational database major key) of same keyword, send the response of " do not have data, do not allow to revise ", otherwise, retouching operation carried out;
During for permission " data have modification without increasing ", for example, if there are the data (identical relational database major key) of same keyword, carry out modification, otherwise execution increases operation;
For " deletion ", when the data of deleting do not exist, send the response of " data of request deletion do not exist ", otherwise, carry out deletion action;
Need a kind of special circumstances of explanation to be: in a request, have simultaneously pair data increase, revise, have revise without increasing, removal request, in this case, can take two kinds of strategies: the one, to can successfully operating all, carry out, unsuccessful operation is returned to data and the unsuccessful information of operation; The 2nd, only have all just permission operations of success of all operations, otherwise do not carry out any operation, but respond out first or all unsuccessful reasons.The employing of specific strategy, depends on the logic configuration of application.
When the message obtaining when parsing has output request, should first to output request, analyze, to determine that all information of output are all orientable.For example, if the information of output contains nonlocalizable content while can not determine the major key of table (table that adopts relational database manage and), response " output request can not be located, cannot complete operation ", message interaction finishes; For example, otherwise according to the dynamic data management mechanism of supporting, dynamic sql completes the query manipulation of data.
During for employing atom message access mechanism: the atom message building in advance can comprise: increase message that (1) is set up each rational storage cell, the unit of record at every turn increasing, for example, a record of a database table; (2) the modification message of each rational storage cell being set up, the unit of record of at every turn revising, for example, a record of a database table; (3) the deletion message of each rational storage cell being set up, the unit of record of at every turn deleting, for example, a record of a database table; (4) query message of each rational storage cell being set up, each inquiry limits the unit of record of number, and for example, a database table is no more than 50 records.On the basis of above-mentioned predetermined atom message, for the dissimilar of request message, process respectively:
When the message obtaining when parsing has input request, should first to input request, analyze, to determine that all information of input are all orientable, for example, if the information of input contains nonlocalizable content while can not determine the major key of table (table that adopts relational database manage and), response " input request can not be located; cannot complete operation ", message interaction finishes; Otherwise, the rational storage cell at location input data place respectively, call that described message completes that data only increase, data are only revised, data have revise without increasing, deletion action, wherein:
During for permission " data only increase ", for example, if there are the data (identical relational database major key) of same keyword, send the response of " have data, not allowing increases ", otherwise, carry out and increase operation;
During for permission " data are only revised ", for example, if there are not the data (identical relational database major key) of same keyword, send the response of " do not have data, do not allow to revise ", otherwise, carry out and increase operation;
During for permission " data have modification without increase ", first call modification message, for example, if there are the data (identical relational database major key) of same keyword, carry out modification, otherwise, call increase message and carry out increase operation;
For " data deletion " operation, when the data of deleting do not exist, send the response of " data of request deletion do not exist ", otherwise, carry out deletion action;
When the message obtaining when parsing has output request, should first to output request, analyze, to determine that all information of output are all orientable.For example, if the information of output contains nonlocalizable content while can not determine the major key of table (table that adopts relational database manage and), response " output request can not be located, cannot complete operation ", message interaction finishes; Otherwise, call query message, complete query manipulation.
With two examples, technique scheme is described below.These two examples for application system be software distribution management system.This software distribution management system is for assigned computer and the personnel of logging software.Referring to Fig. 3, in this figure, adopt Person table, Computer table, Software table, Person_Computer_relat table, Computer_SW_relat table, User table (User_ID Password Role_ID), Role table (Role_ID Role_Name) to describe this system.This system has following feature:
(1) in the data framework of system, provide and can partly comprise other database table except User table and Role table by external reference, and with baseline.User table and Role table are by service management unit and the Role Management unit access of system.
(2) data access of system is based on role, to each the accessible element that can not divide, role-security administrative unit has all pre-determined can carry out data query, increase by role, revise, have modification without the authority that increases, deletes, need to carry out control of authority to content, also define the accessible content threshold value of different role.
(3) system adopts unidirectional matching strategy to user and role, i.e. each user a kind of role at the most, but each role may have a plurality of users, also may there is no user.
(4) message that system receives is clear and definite user, in the situation that the transmit leg of message is not stipulated user, can think from the message of same transmit leg all from same default user (as: information of certain minute Serial Communication is software distribution management system of certain branch).
(5) security mechanism of system realizes by SSL security mechanism, relies on digital certificate mode to realize.
(6) in system, Person table, Computer table, Software table, Person_Computer_relat table, Computer_SW_relat list structure inform that user also can be by user's access, but User table and Role list structure are not informed user, the content of these tables can not be accessed by dynamic message.
(7) typically available XML description of the addressable data structure of system.
(8), in information exchange, system is the respondent of message, rather than requestor.
One of example:
Supposing that this example carries out message processing by dynamic SQL statements access mechanism, now need to inquire about on the wide computer that is 00-00-00-00-00-00 in mac address of Lee what software has been installed, is the content of request message below:
Figure BDA0000437128380000111
Figure BDA0000437128380000121
For this request message, the implementation of this example is as follows:
(1) receive after the application system request message of requesting party's transmission, in analysis request message, whether comprise dynamic element sign, by parsing, find, this request message comprises dynamic element, illustrate that this message is dynamic message, and further resolve and find, the textual value of this dynamic element is dynamicSQL, illustrates that this message is the dynamic message by dynamic sql visit data;
(2) element such as outputtype, the outputdata in analysis request message, selectTable, checks XML grammer, the element terms etc. such as angle brackets, determines whether input and output sign can be identified.Through checking, the element in request message all can be identified;
(3) the outputdata element in analysis request message, obtaining textual value is " Person_ID; Person_Name; Computer_MAC; Soft_ID, Card_Num, Password ", visible, this example message request need to be inquired about the wide identification card number of Lee, machine MAC Address, mounting software, wage card number and user cipher.Through resolving, output data wage card number Card_Num can not locate in given data structure, and in this case, this example allows only to process the content in addressable data structure, ignores Card_Num.
(4) the user element in analysis request message, obtaining active user is wujunfeng, through service management unit, Role Management unit, role-security administrative unit, addressable data structure managing cell processing, show that active user is the system manager role of branch, can not obtain the wide user cipher of Lee, have no right to access Password, therefore return to " insufficient permission " information for this value.
(5) value of the elements such as selectSQL, selectConditionList in analysis request message, dynamic formation SQL query statement data query also obtains result.
(6) return to the Query Result of the first dynamic data retrieval unit.
Two of example:
Supposing that this example carries out message processing by atom message access mechanism, now need to inquire about on the wide computer that is 00-00-00-00-00-00 in mac address of Lee what software has been installed, is the content of request message below:
Figure BDA0000437128380000131
For this request message, the implementation of this example is as follows:
(1) receive after the application system request message of requesting party's transmission, resolve dynamic element, if do not contain this element in message, illustrate that this message is static message, containing this element, illustrate that this message is dynamic message, through resolving, element text is atomicSQL, illustrates that this message is by the dynamic message of atom message visit data;
(2) second message resolution unit are resolved outputtype, outputdata, conditionlist element, check XML grammer, the element terms such as angle brackets, and input and output sign can be identified, and carries out next step parsing;
(3) second message resolution unit are resolved outputdata element, obtaining textual value is " Person_ID; Soft_ID, Card_Num, Password ", wide identification card number, mounting software, wage card number and the user cipher of the present embodiment message request inquiry Lee, through resolving, output data wage card number Card_Num is not in given data structure, further, the present embodiment system allows only to process the content in addressable data structure, ignores Card_Num.Other output request of data of message, in given addressable data structure, is carried out next step parsing;
(4) second message resolution unit are resolved conditionlist element, obtain " Person_Name; Computer_MAC " two conditions and corresponding value, determine that these two values are all in data structure and can be accessed by user, and according to these two values, can locate the output valve of appointment in outputdata element;
(5) second message resolution unit are resolved user element, obtaining active user is wujunfeng, through service management unit, Role Management unit, role-security administrative unit, addressable data structure managing cell processing, show that active user is the system manager role of branch, can not obtain the wide user cipher of Lee, have no right to access Password, therefore return to " insufficient permission " information for this value;
(6) second message resolution unit, for the operation that meets authority, are chosen suitable atom message.
Selected atom message is carried out in (7) second dynamic data retrieval unit, and to obtain Person_ID, Soft_ID information, in this process, may need to access some middle data structure, to determine final return information.Finally by output request, return to Query Result.Wherein, the content that a certain tables of data is located data in another tables of data of passing through to more complicated, can complete by the atom message customizing in advance, also can complete by applied logic, and applied logic completes and has greater flexibility.
Foregoing describes the method for the application's processing application system request message in detail, and correspondingly, the application also provides a kind of device of processing application system request message.Referring to Fig. 4, the figure shows the structured flowchart of the device of processing application system request message.This device comprises: request message receiving element 401, message classification judging unit 402, field location determination unit 403, statement forming unit 404 and statement performance element 405, wherein:
Request message receiving element 401, the application system request message sending for receiving requesting party;
Whether message classification judging unit 402, be dynamic message for application system request message described in analysis judgment, processing type and processing field that described dynamic message comprises dynamic element sign, Dynamic Data Processing scheme information and dynamic message request; If dynamic message, trigger fields location determination unit;
Field location determination unit 403, for judging whether described dynamic message request processing field can locate in given data structure, if so, triggering statement forming unit;
Statement forming unit 404, for forming dynamic message processing statement according to the processing type of dynamic message request and processing field according to the Dynamic Data Processing mechanism of dynamic message;
Statement performance element 405, processes for carrying out described dynamic message the corresponding operating that statement completes dynamic message request.
The course of work of this device embodiment is: request message receiving element is after receiving the application system request message of requesting party's transmission, by application system request message described in message classification judging unit analysis judgment, whether be dynamic message, if dynamic message, described in trigger fields location determination unit judges, dynamically whether whether message request processing field can locate in given data structure, if, triggering statement forming unit is according to dynamically processing type and the processing field of message request form dynamic message processing statement according to the Dynamic Data Processing mechanism in dynamic message, finally, by statement performance element, for carrying out described dynamic message, process the corresponding operating that statement completes dynamic message request.
Said apparatus embodiment, based on specific needs, can also increase or change some functional unit.Such as, said apparatus embodiment can also comprise role-security judging unit 406, before completing the corresponding operating of dynamic message request at the described dynamic message processing statement of execution, judge the processing type of described dynamic message request and/or the role-security whether processing field meets requesting party, if meet requesting party's role-security, triggering statement performance element.For another example, said apparatus embodiment can also comprise non-dynamic message process unit 407, for when judging application system request message and be non-dynamic message, according to prior art mode, processes.The two passes that can process to outgoing packet in this way, the treatment channel of prior art and treatment channel of the present invention, by selecting the passage of non-dynamic message process unit, make the present invention have the ability of the existing message processing mode of good compatibility.
It should be noted that: easy for what narrate, the various distortion implementations of above-described embodiment of this specification and embodiment stress is all the difference with other embodiment or mode of texturing, between each situation identical similar part mutually referring to.Especially install embodiment part, for fear of repetition, only carried out concise and to the point description, can be with reference to the content of aforesaid embodiment of the method when understanding device embodiment.Each unit of device described above, system embodiment can or can not be also physically to separate, and both can be positioned at a place, or also can be distributed to a plurality of net environments.In actual application, can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme, those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
The above is only the application's embodiment; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the application's protection range.

Claims (10)

1. a method of processing application system request message, is characterized in that, the method comprises:
Receive the application system request message that requesting party sends;
Described in analysis judgment, whether application system request message is dynamic message, processing type and processing field that described dynamic message comprises dynamic element sign, Dynamic Data Processing scheme information and dynamic message request; If dynamic message, judge whether described dynamic message request processing field can locate in given data structure, if so, according to dynamically processing type and the processing field of message request form dynamic message processing statement according to the Dynamic Data Processing mechanism in dynamic message;
Carry out described dynamic message and process the corresponding operating that statement completes dynamic message request.
2. method according to claim 1, is characterized in that, the processing type of the dynamic message request of described basis and processing field form dynamic message processing statement according to the Dynamic Data Processing mechanism in dynamic message and comprise:
If described Dynamic Data Processing mechanism is dynamic sql access, according to dynamically processing type and the processing field formation of message request can be carried out SQL statement;
If described Dynamic Data Processing mechanism is the access of atom message, according to processing type and the processing field of dynamic message request, call corresponding atom message, described atom message is other basic handling message of a storage class for data structure of constructing in advance.
3. method according to claim 1, it is characterized in that, when described request message is input request message, the processing type of described dynamic message request comprises that data only increase, data are only revised, data have modification without increasing, and/or, deletion data operation;
When described request message is output request message, the processing type of described dynamic message request comprises query manipulation; Described method also comprises: at the described dynamic message of execution, process statement and complete after the corresponding operating of dynamic message request, described method also comprises operating result is sent to requesting party.
4. method according to claim 3, is characterized in that,
When request message be input request message and dynamically the processing type of message request be that data are when only increase, judge whether the data of existence and dynamic message processing field same keyword, if existed, send the response message that comprises " have data, do not allow to increase " content; If there is no, carrying out dynamic message only increases statement and completes and increase operation;
When request message be input request message and dynamically the processing type of message request be that data are when only revise, judge whether the data of existence and dynamic message processing field same keyword, if there is no, send the response message that comprises " do not have data, do not allow to revise " content; If existed, carry out dynamic message and only revise statement and complete retouching operation;
When request message be input request message and dynamically the processing type of message request be that data have and revise when increasing, judge whether the data of existence and dynamic message processing field same keyword, if existed, carry out dynamic message modification statement and complete retouching operation; If there is no, carry out dynamic message increase statement and complete increase operation.
5. according to the method described in any one in claim 1 to 4, it is characterized in that, before the described dynamic message processing statement of execution completes the corresponding operating of dynamic message request, judge the processing type of described dynamic message request and/or the role-security whether processing field meets requesting party, if meet requesting party's role-security, carry out dynamic message and process statement; If do not meet requesting party's role-security, send and comprise the response message of " message request does not meet role-security, cannot complete operation " content.
6. method according to claim 5, is characterized in that, when judging application system request message and be non-dynamic message, according to prior art mode, processes.
7. method according to claim 6, is characterized in that, judges when dynamic message request processing field can not be located in given data structure, sends and comprise the response message of " message request can not be located, cannot complete operation " content.
8. a device of processing application system request message, is characterized in that, this device comprises: request message receiving element, message classification judging unit, field location determination unit, statement forming unit and statement performance element, wherein:
Described request message receiving element, the application system request message sending for receiving requesting party;
Whether described message classification judging unit, be dynamic message for application system request message described in analysis judgment, processing type and processing field that described dynamic message comprises dynamic element sign, Dynamic Data Processing scheme information and dynamic message request; If dynamic message, trigger fields location determination unit;
Described field location determination unit, for judging whether described dynamic message request processing field can locate in given data structure, if so, triggering statement forming unit;
Described statement forming unit, for forming dynamic message processing statement according to the processing type of dynamic message request and processing field according to the Dynamic Data Processing mechanism of dynamic message;
Described statement performance element, processes for carrying out described dynamic message the corresponding operating that statement completes dynamic message request.
9. device according to claim 8, it is characterized in that, described device also comprises role-security judging unit, before completing the corresponding operating of dynamic message request at the described dynamic message processing statement of execution, judge the processing type of described dynamic message request and/or the role-security whether processing field meets requesting party, if meet requesting party's role-security, triggering statement performance element.
10. device according to claim 9, is characterized in that, described device also comprises non-dynamic message process unit, for when judging application system request message and be non-dynamic message, according to prior art mode, processes.
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 true CN103634326A (en) 2014-03-12
CN103634326B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670297A (en) * 2018-12-14 2019-04-23 泰康保险集团股份有限公司 Activating method, device, storage medium and the electronic equipment of service authority

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670297A (en) * 2018-12-14 2019-04-23 泰康保险集团股份有限公司 Activating method, device, storage medium and the electronic equipment of service authority

Also Published As

Publication number Publication date
CN103634326B (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN108595157B (en) Block chain data processing method, device, equipment and storage medium
RU2586866C2 (en) Differentiation of set of features of participant of leased medium and user
CN106127038B (en) A kind of processing method and system of blacklist
CN111880746A (en) Method and device for writing service data into block chain system
Rashid Public utilities in egalitarian LDC's: The role of bribery in achieving Pareto efficiency
US10192072B1 (en) Protecting sensitive data
CN109816321A (en) A kind of service management, device, equipment and computer readable storage medium
CN101183379A (en) Attribute level federation from multiple data sources
CN111124917B (en) Method, device, equipment and storage medium for managing and controlling public test cases
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
CN111814179A (en) User authority management and data control method and related equipment thereof
CN114363352A (en) Block chain-based Internet of things system cross-chain interaction method
CN108646965B (en) Service line processing method, terminal device and medium
CN108009444A (en) Authority control method, device and the computer-readable recording medium of full-text search
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN107679065A (en) Method for exhibiting data, device and computer-readable recording medium
CN109542432A (en) Air control rule editing method and terminal device
CN104699790A (en) Bank data relationship building method and device
CN106452815A (en) Informatization management method, device and system
US20240127379A1 (en) Generating actionable information from documents
CN112581257A (en) Dispute service management method, system, device and medium supporting different card organizations
CN114070847A (en) Current limiting method, device, equipment and storage medium of server
CN115543428A (en) Simulated data generation method and device based on strategy template
JP2020149645A (en) Information cooperation system and information management method
CN103634326A (en) Method and device for processing request message of application system

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