CN106708630A - Method and device for processing service in service-oriented architecture - Google Patents
Method and device for processing service in service-oriented architecture Download PDFInfo
- Publication number
- CN106708630A CN106708630A CN201510784900.4A CN201510784900A CN106708630A CN 106708630 A CN106708630 A CN 106708630A CN 201510784900 A CN201510784900 A CN 201510784900A CN 106708630 A CN106708630 A CN 106708630A
- Authority
- CN
- China
- Prior art keywords
- service
- abnormal information
- mark
- oriented architecture
- behalf
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
Abstract
The invention discloses a method and a device for processing a service in a service-oriented architecture, wherein the method comprises the steps of executing the service by proxy when the service is called; acquiring abnormal information in a process of execution of the service by the proxy; and processing the abnormal information according to a category of the abnormal information. According to the method and the device, the technical problem that irrelevant calling is often included in the service method of the prior art is solved.
Description
Technical field
The application is related to data processing field, in particular to the processing method serviced in a kind of Service-Oriented Architecture Based
And device.
Background technology
For the system that client and service end are communicated by service-oriented framework WCF, client is by service
Service end method is called, comprising many services in such system, may be dished out during the method for performing these services many
Plant abnormal.Generally need to be caught the exception in each method, process abnormal.Typically have unified in system
Abnormality processing strategy, each method is required for using identical strategy to process exception.
Because each method for servicing uses same treatment exception policy, so when abnormality processing strategy is changed,
Modified in the method for needing each service.Even if these strategies are encapsulated into unified method, it is also desirable to
Call these methods in each method of servicing, and these call with method of servicing that service logic is uncorrelated in itself, cause original
Method of servicing is called comprising uncorrelated.
For above-mentioned problem, effective solution is not yet proposed at present.
The content of the invention
The embodiment of the present application provides the treating method and apparatus serviced in a kind of Service-Oriented Architecture Based, existing at least to solve
Have in technology in method of servicing often comprising the uncorrelated technical problem called.
According to the one side of the embodiment of the present application, there is provided the processing method serviced in a kind of Service-Oriented Architecture Based, bag
Include:When the service is called, the service is performed by acting on behalf of;Obtain the agency and perform the service process
In abnormal information;And according to the classification of the abnormal information treatment abnormal information.
Further, the classification according to the abnormal information processes the abnormal information and includes:Judge the abnormal information
Whether there is the first mark, wherein, described first identifies the classification for identifying the abnormal information;Judging
State abnormal information have it is described first mark in the case of, inquired about from the database of the Service-Oriented Architecture Based with it is described
The corresponding processing mode of first mark, and the abnormal information is processed according to the processing mode for inquiring, wherein, it is described
Be stored with the processing mode corresponding from the different first marks in the database of Service-Oriented Architecture Based;And judging
In the case of abnormal information is stated without the described first mark, default processing mode is called to process the abnormal information.
Further, by acting on behalf of before performing the service, methods described also includes:Obtain described service-oriented
Framework calls the history log of the service;Extract the abnormal information recorded in the history log;It is different to what is extracted
Normal information is classified;And to each sorted abnormal information addition first mark.
Further, methods described also includes:Addition second is identified to the service, wherein, adjusted in the service
Used time, included by acting on behalf of the execution service:When the service with the described second mark is called, pass through
Agency performs the service with the described second mark.
Further, the mark of addition second to the service includes:Created in the class belonging to the service and the generation
Associated second mark of reason.
According to the one side of the embodiment of the present application, there is provided the processing unit serviced in a kind of Service-Oriented Architecture Based, bag
Include:Execution unit, for when the service is called, the service being performed by acting on behalf of;First acquisition unit,
For obtaining the abnormal information in agency's execution service process;And processing unit, for according to described different
The classification of normal information processes the abnormal information.
Further, the processing unit includes:Judge module, for judging whether the abnormal information has first
Mark, wherein, described first identifies the classification for identifying the abnormal information;First processing module, in institute
State judge module judge the abnormal information have it is described first mark in the case of, from the Service-Oriented Architecture Based
Inquired about in database with the described first corresponding processing mode of mark, and according to inquire processing mode treatment it is described different
Normal information, wherein, be stored with the treatment side corresponding from the different first marks in the database of the Service-Oriented Architecture Based
Formula;And Second processing module, for judging the abnormal information without the described first mark in the judge module
In the case of knowledge, default processing mode is called to process the abnormal information.
Further, described device also includes:Second acquisition unit, for being performed by acting on behalf of in the execution unit
Before the service, the history log that the Service-Oriented Architecture Based calls the service is obtained;Extraction unit, for carrying
Take the abnormal information recorded in the history log;Taxon, for the exception letter extracted to the extraction unit
Breath is classified;And first adding device, for each sorted abnormal information addition first mark.
Further, described device also includes:Second adding device, for adding the second mark to the service, its
In, the execution unit includes:Performing module, for when the service with the described second mark is called,
The service with the described second mark is performed by acting on behalf of.
Further, second adding device includes:Creation module, for being created in the class belonging to the service
With second mark acted on behalf of and be associated.
In the embodiment of the present application, using when the service is called, the service is performed by acting on behalf of;Obtain institute
State the abnormal information during agency performs the service process;And according to the classification of the abnormal information treatment exception
Information.Service is performed by agency, and carries out the acquisition and treatment of abnormal information, realized at execution abnormal information
During reason, it is not necessary to these abnormality eliminating methods are called in method of servicing, and then avoids method of servicing from calling and this
Body service logic is incoherent to be called, and by way of acting on behalf of the service of execution, transfers to agency to process abnormal information,
Unified call agency is reached and has performed abnormality processing, solved in method of servicing in the prior art often comprising uncorrelated
The technical problem called, realizes by acting on behalf of method of servicing of seeking unity of action, and the exception in implementation procedure is united
The effect of one treatment.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen
Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In accompanying drawing
In:
Fig. 1 is the flow chart of the processing method serviced in Service-Oriented Architecture Based according to the embodiment of the present application;And
Fig. 2 is the schematic diagram of the processing unit serviced in Service-Oriented Architecture Based according to the embodiment of the present application.
Specific embodiment
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present application, it is clear that described embodiment
The only embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ability
The every other embodiment that domain those of ordinary skill is obtained under the premise of creative work is not made, should all belong to
The scope of the application protection.
It should be noted that term " first ", " in the description and claims of this application and above-mentioned accompanying drawing
Two " it is etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that this
The data that sample is used can be exchanged in the appropriate case, so as to embodiments herein described herein can with except
Here the order beyond those for illustrating or describing is implemented.Additionally, term " comprising " and " having " and they
Any deformation, it is intended that covering is non-exclusive to be included, for example, containing process, the side of series of steps or unit
Method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear
List or for these processes, method, product or other intrinsic steps of equipment or unit.
Description below is made to the technical term involved by the embodiment of the present application first:
WCF:The ore deposit of support some communication protocols of Microsoft's exploitation is built, and is a whole set of framework of face phase service construction.
Contract:The concept that face mutually services, including contract of service, data contract etc., refers in particular to clothes in the embodiment of the present application
Business contract, equivalent to interface, which operation definition contains.
Service:The communication technology used in distributed system popular at present, this is a set of standard, is not relied on
Specific programming language and system, i.e., across language border, cross-system, can pass through between different language and different system
Service is interacted.
According to the embodiment of the present application, there is provided in a kind of Service-Oriented Architecture Based service processing method embodiment, it is necessary to
Illustrate, can be in the such as one group department of computer science of computer executable instructions the step of the flow of accompanying drawing is illustrated
Performed in system, and, although logical order is shown in flow charts, but in some cases, can be with difference
Shown or described step is performed in order herein.
Fig. 1 is the flow chart of the processing method serviced in a kind of Service-Oriented Architecture Based according to the embodiment of the present application, is such as schemed
Shown in 1, the method mainly comprises the following steps S102 to step S106:
S102:When service is called, service is performed by agency, i.e. the service in Service-Oriented Architecture Based is adjusted
Used time, method of servicing not being performed directly, but calling and entrust to agency, method of servicing is performed by acting on behalf of.
S104:Obtain the abnormal information during agency performs service process.Agency is performed during method of servicing, and capture is held
The exception (i.e. mistake) run into during row, after exception is captured, can first by exception record to daily record.
S106:Classification treatment abnormal information according to abnormal information.Due to by agency performs service, equivalent to will take
The execution authority of business method hands to agency, therefore, after the abnormal information during agency performs service process is got,
Agency's classification further according to abnormal information is needed to process abnormal information.In general, service-oriented frame
In structure, following classification is included by the exception for occurring:Network timeout, system mistake, service logic mistake, illegal parameter,
Entity mistake, inquiry error repeats to configure, and configuration does not exist, and entity has dependence, needs login, user name or code error,
Insufficient permission, Profile does not exist, and account number does not exist in the absence of with Solution.
The processing method serviced in the Service-Oriented Architecture Based that the embodiment of the present application is provided, service is performed by agency, and
The acquisition and treatment of abnormal information are carried out, is realized in abnormal information processing procedure is performed, it is not necessary in method of servicing
In call these abnormality eliminating methods, and then avoid method of servicing call it is incoherent with service logic itself call, and
And by way of acting on behalf of the service of execution, transfer to agency to process abnormal information, unified call agency has been reached to perform
Abnormality processing, solves in method of servicing in the prior art often comprising the uncorrelated technical problem called, and realizes logical
Agency is crossed to seek unity of action method of servicing, and to effect that the exception in implementation procedure is uniformly processed.
Alternatively, by before acting on behalf of the service of execution, being serviced in the Service-Oriented Architecture Based that the embodiment of the present application is provided
Processing method also include:Obtain the history log that Service-Oriented Architecture Based calls service;Recorded in extraction history log
Abnormal information;Abnormal information to extracting is classified;And to each sorted abnormal information addition first
Mark.
In the embodiment of the present application, the abnormal information appeared in Service-Oriented Architecture Based can be labeled, such as may be used
To define ServiceException, ServiceException includes Type attributes and Message attributes, wherein,
Type attributes show abnormal class, and Message attributes are declaration of exception, in service process is performed, if captured
Abnormal information, ServiceException mainly in abnormal information determines the classification of abnormal information.
Alternatively, the classification treatment abnormal information according to abnormal information includes:Judge whether abnormal information has the first mark
Know, wherein, first identifies the classification for identifying abnormal information;Judging feelings of the abnormal information with the first mark
Under condition, inquiry and the first corresponding processing mode of mark from the database of Service-Oriented Architecture Based, and according to inquiring
Processing mode processes abnormal information, wherein, it is stored with the database of Service-Oriented Architecture Based relative from the different first marks
The processing mode answered;In the case where judging abnormal information without the first mark, default processing mode is called to process
Abnormal information.
Specifically, correspondence is in the way of ServiceException is labeled, mainly judge in abnormal information whether
With ServiceException, if it is determined that, can be encapsulated as the abnormal information by ServiceException
FaultException<ServiceException>, and inquire about treatment side corresponding with the ServiceException
Formula, and process abnormal information according to the processing mode for inquiring.If not, it may be said that the bright abnormal information is not clothes
The exception of agreement of being engaged in, is undesired exception, and such exception can not be directly exposed to client.Therefore here will
Abnormal details are shielded, and do not allow user to see these abnormal details, and one side user there is no need to see
These information, on the other hand avoid, because these leakage of information internal systems are realized, causing possible potential safety hazard.When
So, if not having ServiceException in abnormal information, new ServiceException can also be created,
Type is system exception, and Message is system mistake, equivalent to when the abnormal information occurs again, is just no longer
Never the exception for occurring, corresponding processing mode can be then called by the ServiceException for adding.
Wherein, for the abnormal information for having ServiceException, after client receives the abnormal information, according to different
Normal classification is targetedly operated.Such as logon error is needed, login interface is jumped to.Other are most of
Error category is pop-up dialogue box, shows abnormal information.
Alternatively, the processing method serviced in the Service-Oriented Architecture Based that the embodiment of the present application is provided also includes:Addition the
Two marks are extremely serviced, wherein, when service is called, included by acting on behalf of execution service:With the second mark
When service is called, the service with the second mark is performed by acting on behalf of.Second identifies for marking needs to call agency
Service.
That is, mark is injected in the service of Service-Oriented Architecture Based, subsequently when the service of injection mark is called, all can
Agency is entrusted to, calling for method of servicing is performed by agency.In the embodiment of the present application, can be with belonging to service
Create with the mode for acting on behalf of the second mark being associated to realize the mark of addition second to service in class.Such as:Can be with
For Service Instance creates agency in being marked second, the method call to Service Instance is all delegated to agency.Specifically,
Can define and be inherited from ProxyAttribute classes, be created in such CreateInstance methods and be defined above
Agency.
By above description as can be seen that the processing method serviced in the Service-Oriented Architecture Based that is provided of the embodiment of the present application,
Realize to perform method of servicing and all entrust to agency, sought unity of action all method of servicing by agency, and catching method is held
The exception occurred during row, is uniformly processed to abnormal.
According to embodiments of the present invention, the processing unit serviced in a kind of Service-Oriented Architecture Based is additionally provided.This is service-oriented
The processing unit serviced in framework can perform the processing method serviced in above-mentioned Service-Oriented Architecture Based, above-mentioned service-oriented
The processing method serviced in framework can also be implemented by the processing unit serviced in the Service-Oriented Architecture Based.
Fig. 2 is the schematic diagram of the processing unit serviced in Service-Oriented Architecture Based according to the embodiment of the present application.Such as Fig. 2 institutes
Show, the processing unit serviced in the Service-Oriented Architecture Based mainly includes execution unit 10, first acquisition unit 20 and place
Reason unit 30, wherein:
Execution unit 10 is used to, when service is called, perform service by agency, i.e. in Service-Oriented Architecture Based
When service is called, method of servicing not being performed directly, but calling and entrust to agency, service is performed by acting on behalf of
Method.
First acquisition unit 20 is used to obtain the abnormal information during agency performs service process.Agency performs method of servicing mistake
Cheng Zhong, the exception run into capture implementation procedure (i.e. mistake), after exception is captured, first can arrive exception record
In daily record.
Processing unit 30 is used to process abnormal information according to the classification of abnormal information.Due to performing service, phase by agency
When in the execution authority of method of servicing is handed into agency, therefore, getting the exception during agency performs service process
, it is necessary to act on behalf of classification further according to abnormal information to process abnormal information after information.In general, face
In to service architecture, following classification is included by the exception for occurring:Network timeout, system mistake, service logic mistake,
Illegal parameter, entity mistake, inquiry error repeats to configure, and configuration does not exist, and entity has dependence, needs to log in, user name
Or code error, insufficient permission, Profile do not exist, account number in the absence of and Solution do not exist.
The processing unit serviced in the Service-Oriented Architecture Based that the embodiment of the present application is provided, service is performed by agency, and
The acquisition and treatment of abnormal information are carried out, is realized in abnormal information processing procedure is performed, it is not necessary in method of servicing
In call these abnormality eliminating methods, and then avoid method of servicing call it is incoherent with service logic itself call, and
And by way of acting on behalf of the service of execution, transfer to agency to process abnormal information, unified call agency has been reached to perform
Abnormality processing, solves in method of servicing in the prior art often comprising the uncorrelated technical problem called, and realizes logical
Agency is crossed to seek unity of action method of servicing, and to effect that the exception in implementation procedure is uniformly processed.
Alternatively, the processing unit serviced in the Service-Oriented Architecture Based that the embodiment of the present application is provided also includes that second obtains
Unit, extraction unit, taxon and the first adding device, before execution unit 10 performs service by agency,
Second acquisition unit is used to obtain the history log that Service-Oriented Architecture Based calls service;Extraction unit is used to extract history day
The abnormal information recorded in will;Taxon is used to classify the abnormal information that extraction unit is extracted;First adds
Plus unit is used to identify each sorted abnormal information addition first.
In the embodiment of the present application, the abnormal information appeared in Service-Oriented Architecture Based can be labeled, such as may be used
To define ServiceException, ServiceException includes Type attributes and Message attributes, wherein,
Type attributes show abnormal class, and Message attributes are declaration of exception, in service process is performed, if captured
Abnormal information, ServiceException mainly in abnormal information determines the classification of abnormal information.
Alternatively, processing unit 30 mainly includes judge module, first processing module and Second processing module, wherein,
Whether judge module is used to judge abnormal information with the first mark, wherein, first identifies for identifying abnormal information
Classification;First processing module be used for judge module judge abnormal information have first mark in the case of, from towards
Inquiry and the first corresponding processing mode of mark in the database of service architecture, and processed according to the processing mode for inquiring
Abnormal information, wherein, be stored with the processing mode corresponding from the different first marks in the database of Service-Oriented Architecture Based;
Second processing module is used to, in the case where judge module judges abnormal information without the first mark, call default place
Reason mode processes abnormal information.
Specifically, correspondence is in the way of ServiceException is labeled, mainly judge in abnormal information whether
With ServiceException, if it is determined that, can be encapsulated as the abnormal information by ServiceException
FaultException<ServiceException>, and inquire about treatment side corresponding with the ServiceException
Formula, and process abnormal information according to the processing mode for inquiring.If not, it may be said that the bright abnormal information is not clothes
The exception of agreement of being engaged in, is undesired exception, and such exception can not be directly exposed to client.Therefore here will
Abnormal details are shielded, and do not allow user to see these abnormal details, and one side user there is no need to see
These information, on the other hand avoid, because these leakage of information internal systems are realized, causing possible potential safety hazard.When
So, if not having ServiceException in abnormal information, new ServiceException can also be created,
Type is system exception, and Message is system mistake, equivalent to when the abnormal information occurs again, is just no longer
Never the exception for occurring, corresponding processing mode can be then called by the ServiceException for adding.
Wherein, for the abnormal information for having ServiceException, after client receives the abnormal information, according to different
Normal classification is targetedly operated.Such as logon error is needed, login interface is jumped to.Other are most of
Error category is pop-up dialogue box, shows abnormal information.
Alternatively, the processing unit serviced in the Service-Oriented Architecture Based that the embodiment of the present application is provided also includes the second addition
Unit, second adding device is used to add the second mark to service, wherein, execution unit includes performing module, should
Performing module is used to, when the service with the second mark is called, the service with the second mark is performed by acting on behalf of.
Second identify for mark need to call the service of agency.
That is, mark is injected in the service of Service-Oriented Architecture Based, subsequently when the service of injection mark is called, all can
Agency is entrusted to, calling for method of servicing is performed by agency.In the embodiment of the present application, the second adding device is mainly wrapped
Creation module is included, the creation module is used to be created in the class belonging to service the second mark being associated with agency, comes real
Now the mark of addition second is extremely serviced.Such as:For Service Instance creates agency in being marked second, to Service Instance
Method call be all delegated to agency.Specifically, can define that ProxyAttribute classes are inherited from, such
Agency defined above is created in CreateInstance methods.
By above description as can be seen that the processing unit serviced in the Service-Oriented Architecture Based that is provided of the embodiment of the present application,
Realize to perform method of servicing and all entrust to agency, sought unity of action all method of servicing by agency, and catching method is held
The exception occurred during row, is uniformly processed to abnormal.
The processing unit serviced in the Service-Oriented Architecture Based includes processor and memory, above-mentioned execution unit 10, the
One acquiring unit 20 and the grade of processing unit 30 in memory, are stored as program unit storage by computing device
Said procedure unit in memory realizes corresponding function.
Kernel is included in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can set one
Or more, exception is uniformly processed by adjusting kernel parameter.
Memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/
Or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory, memory includes at least one
Individual storage chip.
Present invention also provides a kind of computer program product, when being performed on data processing equipment, it is adapted for carrying out just
The program code of beginningization there are as below methods step:When service is called, service is performed by agency;Agency is obtained to hold
Abnormal information in row service process;And abnormal information is processed according to the classification of abnormal information.
Above-mentioned the embodiment of the present application sequence number is for illustration only, and the quality of embodiment is not represented.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be by other
Mode realize.Wherein, device embodiment described above is only schematical, such as division of described unit,
Can be a kind of division of logic function, there can be other dividing mode when actually realizing, for example multiple units or component
Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, institute
Display or the coupling each other for discussing or direct-coupling or communication connection can be by some interfaces, unit or mould
The INDIRECT COUPLING of block or communication connection, can be electrical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to
On multiple units.Some or all of unit therein can be according to the actual needs selected to realize this embodiment scheme
Purpose.
In addition, during each functional unit in the application each embodiment can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use
When, can store in a computer read/write memory medium.Based on such understanding, the technical scheme of the application
The part for substantially being contributed to prior art in other words or all or part of the technical scheme can be produced with software
The form of product is embodied, and the computer software product is stored in a storage medium, including some instructions are used to make
Obtain a computer equipment (can be personal computer, server or network equipment etc.) and perform each implementation of the application
The all or part of step of example methods described.And foregoing storage medium includes:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic
Dish or CD etc. are various can be with the medium of store program codes.
The above is only the preferred 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 improve and moisten
Decorations also should be regarded as the protection domain of the application.
Claims (10)
1. the processing method for being serviced in a kind of Service-Oriented Architecture Based, it is characterised in that including:
When the service is called, the service is performed by acting on behalf of;
Obtain the abnormal information that the agency is performed in the service process;And
Classification according to the abnormal information processes the abnormal information.
2. method according to claim 1, it is characterised in that the classification treatment according to the abnormal information is described different
Normal information includes:
Judge the abnormal information whether have first mark, wherein, described first identify it is described different for identifying
The classification of normal information;
In the case where judging that the abnormal information has first mark, from the Service-Oriented Architecture Based
Inquired about in database with the described first corresponding processing mode of mark, and process institute according to the processing mode that inquires
Abnormal information is stated, wherein, it is stored with the database of the Service-Oriented Architecture Based corresponding from the different first marks
Processing mode;And
In the case where judging the abnormal information without the described first mark, call at default processing mode
Manage the abnormal information.
3. method according to claim 2, it is characterised in that by acting on behalf of before performing the service, it is described
Method also includes:
Obtain the history log that the Service-Oriented Architecture Based calls the service;
Extract the abnormal information recorded in the history log;
Abnormal information to extracting is classified;And
To each sorted abnormal information addition first mark.
4. according to the method in any one of claims 1 to 3, it is characterised in that methods described also includes:
Addition second is identified to the service,
Wherein, when the service is called, included by acting on behalf of the execution service:With described second
When the service of mark is called, the service with the described second mark is performed by acting on behalf of.
5. method according to claim 4, it is characterised in that the mark of addition second to the service includes:
Created in the class belonging to the service and second mark acted on behalf of and be associated.
6. the processing unit for being serviced in a kind of Service-Oriented Architecture Based, it is characterised in that including:
Execution unit, for when the service is called, the service being performed by acting on behalf of;
First acquisition unit, for obtaining the abnormal information in agency's execution service process;And
Processing unit, for according to the classification of the abnormal information treatment abnormal information.
7. device according to claim 6, it is characterised in that the processing unit includes:
Judge module, for judging whether the abnormal information has the first mark, wherein, first mark
Classification for identifying the abnormal information;
First processing module, for judging that the abnormal information has first mark in the judge module
In the case of, inquired about from the database of the Service-Oriented Architecture Based with the described first corresponding processing mode of mark,
And the abnormal information is processed according to the processing mode for inquiring, wherein, the database of the Service-Oriented Architecture Based
In be stored with and the different first corresponding processing modes of mark;And
Second processing module, for judging the abnormal information without the described first mark in the judge module
In the case of knowledge, default processing mode is called to process the abnormal information.
8. device according to claim 7, it is characterised in that described device also includes:
Second acquisition unit, by acting on behalf of before performing the service, obtains described in the execution unit
Service-Oriented Architecture Based calls the history log of the service;
Extraction unit, for extracting the abnormal information recorded in the history log;
Taxon, for classifying to the abnormal information that the extraction unit is extracted;And
First adding device, for each sorted abnormal information addition first mark.
9. the device according to any one of claim 6 to 8, it is characterised in that described device also includes:
Second adding device, for adding the second mark to the service,
Wherein, the execution unit includes:Performing module, in the service with the described second mark
When called, the service with the described second mark is performed by acting on behalf of.
10. device according to claim 9, it is characterised in that second adding device includes:
Creation module, second mark being associated is acted on behalf of for being created in the class belonging to the service with described
Know.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510784900.4A CN106708630A (en) | 2015-11-16 | 2015-11-16 | Method and device for processing service in service-oriented architecture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510784900.4A CN106708630A (en) | 2015-11-16 | 2015-11-16 | Method and device for processing service in service-oriented architecture |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106708630A true CN106708630A (en) | 2017-05-24 |
Family
ID=58931541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510784900.4A Pending CN106708630A (en) | 2015-11-16 | 2015-11-16 | Method and device for processing service in service-oriented architecture |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106708630A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101351002A (en) * | 2008-07-21 | 2009-01-21 | 深圳市高正软件有限公司 | System and method for automatically reporting operation exception of software system |
CN102479113A (en) * | 2010-11-30 | 2012-05-30 | 中国移动通信集团黑龙江有限公司 | Abnormal self-adapting processing method and system |
CN103227734A (en) * | 2013-04-27 | 2013-07-31 | 华南理工大学 | Method for detecting abnormity of OpenStack cloud platform |
CN103888495A (en) * | 2012-12-20 | 2014-06-25 | 中国移动通信集团辽宁有限公司 | Execution method and system for combination service |
CN104503770A (en) * | 2015-01-12 | 2015-04-08 | 北京国双科技有限公司 | Handling method and device for abnormal information |
-
2015
- 2015-11-16 CN CN201510784900.4A patent/CN106708630A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101351002A (en) * | 2008-07-21 | 2009-01-21 | 深圳市高正软件有限公司 | System and method for automatically reporting operation exception of software system |
CN102479113A (en) * | 2010-11-30 | 2012-05-30 | 中国移动通信集团黑龙江有限公司 | Abnormal self-adapting processing method and system |
CN103888495A (en) * | 2012-12-20 | 2014-06-25 | 中国移动通信集团辽宁有限公司 | Execution method and system for combination service |
CN103227734A (en) * | 2013-04-27 | 2013-07-31 | 华南理工大学 | Method for detecting abnormity of OpenStack cloud platform |
CN104503770A (en) * | 2015-01-12 | 2015-04-08 | 北京国双科技有限公司 | Handling method and device for abnormal information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10452843B2 (en) | Self-adaptive application programming interface level security monitoring | |
EP3588279B1 (en) | Automated extraction of rules embedded in software application code using machine learning | |
CN108154047A (en) | A kind of data desensitization method and device | |
CN103744686B (en) | Control method and the system of installation is applied in intelligent terminal | |
CN104503770B (en) | The processing method and processing device of exception information | |
CN107360155A (en) | A kind of automatic source tracing method of network attack and system based on threat information and sandbox technology | |
CN109241014B (en) | Data processing method and device and server | |
WO2019169760A1 (en) | Test case range determining method, device, and storage medium | |
CN112733045B (en) | User behavior analysis method and device and electronic equipment | |
CN107409134A (en) | Method card analysis | |
CN108021461A (en) | Lift the method and device of social circle's data processing performance | |
CN107330326A (en) | A kind of malice trojan horse detection processing method and processing device | |
CN111694640B (en) | Data processing method, device, electronic equipment and storage medium | |
CN104640105A (en) | Method and system for mobile phone virus analyzing and threat associating | |
CN116346397A (en) | Network request abnormality detection method and device, equipment, medium and product thereof | |
CN109978547A (en) | Risk behavior control method and system, equipment and storage medium | |
CN111859069B (en) | Network malicious crawler identification method, system, terminal and storage medium | |
CN108270753A (en) | The method and device of logging off users account | |
CN106708630A (en) | Method and device for processing service in service-oriented architecture | |
CN107918550A (en) | A kind of method for USB device history service condition of auditing under linux system | |
US8683452B1 (en) | Dynamically obfuscated javascript | |
CN107657176A (en) | A kind of unknown malicious code identification of Behavior-based control analysis and analysis method | |
CN114244611A (en) | Abnormal attack detection method, device, equipment and storage medium | |
CN113923190A (en) | Method and device for identifying equipment identification jump, server and storage medium | |
CN110336777A (en) | The communication interface acquisition method and device of Android application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |