SOA service detection method and device, electronic equipment and storage medium

By automatically determining the detection results of SOA services through detection of service providers after system startup and service users during use, the problem of time-consuming manual troubleshooting is solved, and system maintenance efficiency is improved.

CN121455720APending Publication Date: 2026-02-03Z-ONE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411020235.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2026-02-03

AI Technical Summary

Technical Problem

In systems equipped with SOA services, manually troubleshooting and analyzing SOA service issues that cause business anomalies is time-consuming, resulting in low maintenance efficiency.

Method used

After the system starts up, the service provider is tested to obtain the first test result, and the service user is tested during the service use to obtain the second test result. The test result of the SOA service is automatically determined by combining the two results.

Benefits of technology

It enables automatic detection of specific problems in SOA services, improving system maintenance efficiency, saving manual troubleshooting time, and enhancing overall maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121455720A_ABST
    Figure CN121455720A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of anomaly detection, in particular to an SOA service detection method and device, electronic equipment and a storage medium, and the method comprises the steps: detecting a service provider of an SOA service after a system for operating the SOA service is started, and obtaining a first detection result; in the process that any service user of the SOA service carries out processing based on the SOA service, the service user is detected, and a second detection result is obtained; and determining a detection result of the SOA service according to the first detection result and the second detection result. Therefore, according to the scheme, the specific problem of the SOA service can be directly detected, maintenance is facilitated, and the maintenance efficiency of the system for operating the SOA service is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the field of anomaly detection, and in particular to a SOA service detection method and device, electronic equipment and storage medium. BACKGROUND

[0002] Currently, in a system (for example, a vehicle-mounted system) equipped with a service-oriented architecture (SOA), a service (for example, a vehicle control service or an engine service) based on a SOA service is usually detected to discover service anomalies in time and facilitate maintenance.

[0003] Since the service is implemented based on a SOA service, after detecting a service anomaly, the specific problem of the SOA service causing the anomaly is usually manually investigated and analyzed to locate the source of the anomaly.

[0004] However, manually investigating and analyzing the specific problem of the SOA service causing the service anomaly is time-consuming, resulting in low maintenance efficiency of the SOA-equipped system. SUMMARY

[0005] Therefore, embodiments of the present application provide a SOA service detection method and device, electronic equipment and storage medium to at least partially solve the above problems.

[0006] According to a first aspect of embodiments of the present application, a SOA service detection method is provided, comprising: after a system for running a SOA service is started, detecting a service provider of the SOA service to obtain a first detection result; in a process in which any service user of the SOA service performs processing based on the SOA service, detecting the service user to obtain a second detection result; and determining a detection result of the SOA service according to the first detection result and the second detection result.

[0007] According to a second aspect of embodiments of the present application, a SOA service detection device is provided, comprising: a first detection unit configured to, after a system for running a SOA service is started, detect a service provider of the SOA service to obtain a first detection result; a second detection unit configured to, in a process in which any service user of the SOA service performs processing based on the SOA service, detect the service user to obtain a second detection result; and a result determination unit configured to determine a detection result of the SOA service according to the first detection result and the second detection result.

[0008] According to a third aspect of the embodiments of the present application, an electronic device is provided, comprising a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface complete communication with each other through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the method of the first aspect.

[0009] According to a fourth aspect of the embodiments of the present application, a computer storage medium is provided, and the computer storage medium stores a computer program, and the program causes a processor to execute the method of the first aspect.

[0010] According to a fifth aspect of the embodiments of the present application, a computer program product is provided, comprising computer instructions, and the computer instructions instruct a computing device to execute the method of the first aspect.

[0011] According to the SOA service detection scheme provided in the embodiments of the present application, the service provider of the SOA service can be detected after the system for running the SOA service is started, and a first detection result is obtained; any service user of the SOA service can be detected during processing based on the SOA service, and a second detection result is obtained; and then the detection result of the SOA service is determined according to the first detection result and the second detection result. Therefore, in the system for running the SOA service, the detection method of the SOA service can be used to automatically detect the specific problem of the SOA service, compared with the related art in which the specific problem of the SOA service causing the exception of the business implemented based on the SOA service is manually checked and analyzed after the exception is detected, the specific problem of the SOA service can be directly detected in the embodiments of the present application, so as to facilitate maintenance, and the maintenance efficiency of the system for running the SOA service is improved. BRIEF DESCRIPTION OF DRAWINGS

[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the drawings needed in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art based on these drawings.

[0013] Figure 1 is a flowchart of the SOA service detection method of an embodiment of the present application;

[0014] Figure 2 is a schematic diagram of the SOA service detection device of an embodiment of the present application;

[0015] Figure 3 is a schematic diagram of the electronic device of an embodiment of the present application. DETAILED DESCRIPTION

[0016] Environment of application of the present application

[0017] Embodiments of the present application provide a SOA service detection scheme. The SOA service detection scheme is relatively general, and can be used for detecting SOA services in a system that carries SOA (i.e., a system for running SOA services), for example, detecting SOA services in a vehicle-mounted system that carries SOA. The SOA service detection scheme can be executed by a data center or a processing unit, for example, a software module included in a vehicle-mounted system. The SOA service detection scheme is independent of the hardware of the computing device that executes the scheme.

[0018] Method for detecting SOA services

[0019] Based on the above system, embodiments of the present application provide a SOA service detection method, which is described in detail below through multiple embodiments.

[0020] Figure 1 is a flowchart of the SOA service detection method of an embodiment of the present application. As shown in Figure 1 , the SOA service detection method includes the following steps:

[0021] Step 101: After a system for running SOA services is started, a service provider of the SOA services is detected to obtain a first detection result.

[0022] The system for running SOA services is a system that carries SOA, which can be a vehicle-mounted system, for example. The system runs multiple SOA services, and the present application detects any SOA service running in the system. Therefore, the SOA service in the following text refers to the same SOA service, i.e., any SOA service running in the system, for example, a multimedia service or a voice service running in a system that carries SOA. The following text will not repeat this description. The service provider of the SOA service is a program for providing SOA services.

[0023] In one specific embodiment, in the system for running SOA services, a software module common to the service provider of the SOA services and the service user of the SOA services detects the service provider of the SOA services after the system is started to obtain a first detection result.

[0024] Step 102: During processing of the SOA services by any service user of the SOA services, the service user is detected to obtain a second detection result.

[0025] The SOA service includes at least one function that can be invoked, for example, a multimedia service includes a function of starting playing music and a function of pausing playing music, and different functions included in the same SOA service correspond to different invocation interfaces; any service user of the SOA service is an application program that invokes a corresponding function for processing through a corresponding invocation interface; and a process in which any service user of the SOA service processes based on the SOA service includes a process of discovering the SOA service and a process of invoking any function of the SOA service for processing.

[0026] In one specific embodiment, in a system for running an SOA service, in a process in which any service user of the SOA service processes based on the SOA service, the software module detects the service user to obtain a second detection result.

[0027] Step 103: determining a detection result of the SOA service according to the first detection result and the second detection result.

[0028] In one specific embodiment, the software module can determine the detection result of the SOA service according to the first detection result and the second detection result, based on which, the specific problem of the SOA service can be determined according to the detection result of the SOA service, so as to correct the problem in time.

[0029] In the embodiments of the present application, the service provider of the SOA service can be detected to obtain a first detection result after a system for running the SOA service is started; any service user of the SOA service can be detected to obtain a second detection result in a process in which the service user processes based on the SOA service; and then a detection result of the SOA service is determined according to the first detection result and the second detection result. Thus, in the system for running the SOA service, the detection method of the SOA service can automatically realize detection of the specific problem of the SOA service, compared with the related art in which after an exception of a service implemented based on the SOA service is detected, the specific problem of the SOA service causing the exception is manually checked and analyzed, the specific problem of the SOA service can be directly detected in the embodiments of the present application, so as to facilitate maintenance, and the maintenance efficiency of the system for running the SOA service is improved.

[0030] In addition, the detection method of the SOA service in the embodiments of the present application not only detects the service provider, but also detects the service user, and thus not only the providing state of the SOA service can be monitored, but also the using state of the SOA service can be monitored, so that the detection result of the SOA service obtained according to the first detection result and the second detection result is more comprehensive, the specific problem of the SOA service determined based on the detection result of the SOA service is more accurate, and the development and maintenance efficiency is improved.

[0031] In a possible implementation, the "detecting the service provider of the SOA service to obtain a first detection result" in the step 101 comprises the following specific process: if it is unable to determine whether the service provider has provided the SOA service, it is determined that the first detection result indicates whether the service provider provides the SOA service is unknown, and the first detection result is sent to the diagnosis module; if it is determined that the service provider has provided the SOA service, it is determined that the first detection result indicates that the service provider normally provides the SOA service; if it is determined that the service provider does not provide the SOA service, it is determined that the first detection result indicates that the service provider provides the SOA service abnormally, and the first detection result is sent to the diagnosis module.

[0032] In a specific embodiment, after the system for running the SOA service is started, the service provider of the SOA service normally provides the SOA service, and sends a broadcast signal indicating that the SOA service has been provided after providing the SOA service. Based on this, after the system for running the SOA service is started, the software module can determine whether the broadcast signal can be detected to determine whether the service provider has provided the SOA service; if it is unable to determine whether the broadcast signal is detected due to a fault or an error, that is, it is unable to determine whether the service provider has provided the SOA service, an identifier indicating whether the service provider provides the SOA service is unknown can be determined as the first detection result, at this time, the problem of the SOA service has been detected, and therefore the first detection result can also be sent to the diagnosis module; if it is determined that the broadcast signal has been detected, that is, it is determined that the service provider has provided the SOA service, an identifier indicating that the service provider normally provides the SOA service can be determined as the first detection result; if it is determined that the broadcast signal has not been detected, that is, it is determined that the service provider does not provide the SOA service, an identifier indicating that the service provider provides the SOA service abnormally can be determined as the first detection result, at this time, the problem of the SOA service has been detected, and therefore the first detection result can also be sent to the diagnosis module.

[0033] In the embodiments of the present application, after the system for running the SOA service is started, in the case that it is unable to be determined whether the service provider of the SOA service has provided the SOA service, or in the case that it is determined that the service provider has not provided the SOA service, it is detected that there is a problem in the provision of the SOA service, and in the case that it is determined that the service provider has provided the SOA service, it is detected that there is no problem in the provision of the SOA service. Therefore, in the case that the first detection result is used to indicate whether the service provider provides the SOA service, and in the case that the first detection result is used to indicate that the service provider provides the SOA service abnormally, the first detection result is sent to the diagnosis module. Then, after it is detected that there is a problem in the provision of the SOA service, the corresponding detection result is sent to the diagnosis module, and in the case that it is detected that there is no problem in the provision of the SOA service, the corresponding detection result does not need to be sent to the diagnosis module, thereby saving the computing resources.

[0034] In a possible implementation, the "detecting the service user to obtain a second detection result" in the step 102 includes the following specific processing: if the SOA service is successfully discovered within a first time length since the service user starts the discovery of the SOA service, it is determined that a first sub-detection result included in the second detection result is used to indicate that the discovery of the SOA service is normal; if the SOA service is not successfully discovered within the first time length since the service user starts the discovery of the SOA service, it is determined that the first sub-detection result is used to indicate that the discovery of the SOA service is abnormal, and the first sub-detection result is sent to the diagnosis module.

[0035] The first time length can be determined according to actual requirements, and the embodiments of the present application do not limit this.

[0036] In a specific embodiment, in the process that any service user of the SOA service processes based on the SOA service, the service user first needs to discover the SOA service. Therefore, in the process that the service user processes based on the SOA service, the software module can determine whether the SOA service is successfully discovered within a first time length since the service user starts the discovery of the SOA service. If yes, an identifier used to indicate that the discovery of the SOA service is normal is determined as a first sub-detection result, otherwise, an identifier used to indicate that the discovery of the SOA service is abnormal is determined as the first sub-detection result, and the first sub-detection result is sent to the diagnosis module.

[0037] In the embodiment of the present application, when the service user initiates the discovery of the SOA service, if the SOA service is successfully discovered within the first time length, it is detected that the discovery of the SOA service is normal, and if the SOA service is not successfully discovered within the first time length, it is detected that the discovery of the SOA service is abnormal. Therefore, when the first sub-detection result indicates that the discovery of the SOA service is abnormal, the first sub-detection result is sent to the diagnosis module. When it is detected that the discovery of the SOA service is abnormal, the corresponding detection result is sent to the diagnosis module, and when it is detected that the discovery of the SOA service is normal, the corresponding detection result does not need to be sent to the diagnosis module, thereby saving the computing resources.

[0038] In a possible implementation, the "detecting the service user to obtain a second detection result" in the step 102 includes the following specific processing: if any function of the SOA service is successfully invoked within a second time length from the invocation of the function by the service user, it is determined that the second sub-detection result included in the second detection result indicates that the invocation of the function is normal; if any function of the SOA service is not successfully invoked within the second time length from the invocation of the function by the service user, it is determined that the second sub-detection result indicates that the invocation of the function is abnormal, and the second sub-detection result is sent to the diagnosis module.

[0039] The second time length can be determined according to actual requirements, and the embodiment of the present application does not limit the same.

[0040] In a specific embodiment, in the process of processing by any service user of the SOA service based on the SOA service, after the service user discovers the SOA service, any function of the SOA service is invoked. Based on this, in the process of processing by the service user based on the SOA service, the software module can determine whether any function of the SOA service is successfully invoked within a second time length from the invocation of the function by the service user, if yes, an identifier indicating that the invocation of the function is normal is determined as the second sub-detection result, otherwise, an identifier indicating that the invocation of the function is abnormal is determined as the second sub-detection result, and the second sub-detection result is sent to the diagnosis module.

[0041] In the embodiment of the present application, starting from the service user of the SOA service calling any function of the SOA service, if the function is successfully called within the second time length, it is detected that the calling of the function is normal, and if the function is not successfully called within the second time length, it is detected that the calling of the SOA service is abnormal. Therefore, when the second sub-detection result indicates that the calling of the function is abnormal, the second sub-detection result is sent to the diagnosis module. In this way, when it is detected that the calling of the function is abnormal, the corresponding detection result is sent to the diagnosis module, and when it is detected that the calling of the function is normal, the corresponding detection result does not need to be sent to the diagnosis module, thereby saving computing resources.

[0042] In a possible implementation, the step 102 of "detecting the service user to obtain a second detection result" includes the following specific processing: if the service user executes a loop event in the process of calling any function of the SOA service to implement corresponding processing, it is determined whether the period of the loop event is within a target range; if the period is within the target range, it is determined that a third sub-detection result included in the second detection result indicates that the period of the loop event is normal; if the period is not within the target range, it is determined that the third sub-detection result indicates that the period of the loop event is abnormal, and the third sub-detection result is sent to the diagnosis module.

[0043] The target range is a time length range, and the target range can be a range composed of a plurality of continuous time length values defined by a maximum time length value and a minimum time length value, or a range defined by at least one discrete time length value, for example, the target range can be "1-3 seconds", "0.5 seconds and 0.6 seconds", or "5 seconds".

[0044] In a specific embodiment, in the process of any service user of the SOA service processing based on the SOA service, after the service user discovers the SOA service, any function of the SOA service is called, and in the process of calling the function for processing, the service user can execute a loop event subscribed by the service user to the service provider of the SOA service. For example, any function of the SOA service is a function of playing music, and the loop event is to update the music playing progress every 1 second. In the absence of abnormalities, the service user can also update the music playing progress every 1 second in the process of playing music through the loudspeaker.

[0045] Based on this, in the process that any service user of the SOA service processes based on the SOA service, the software module can determine whether the time interval between the time of the current execution of the loop event and the time of the last execution of the loop event is within the target range (i.e., whether the period of the loop event is within the target range) after the service user executes the loop event each time. If yes, that is, the period of the loop event is within the target range, the identification indicating that the period of the loop event is normal is determined as the third sub-detection result. Otherwise, that is, the period of the loop event is not within the target range, the identification indicating that the period of the loop event is abnormal is determined as the third sub-detection result, and the third sub-detection result is sent to the diagnosis module.

[0046] In the embodiments of the present application, in the case that the period of the loop event is within the target range, it is detected that there is no problem in the period of the loop event executed by the service user. In the case that the period of the loop event is not within the target range, it is detected that there is a problem in the period of the loop event executed by the service user. Therefore, when the third sub-detection result indicates that the period of the loop event is abnormal, the corresponding detection result is sent to the diagnosis module when it is detected that there is a problem in the period of the loop event executed by the service user, and the corresponding detection result does not need to be sent to the diagnosis module when it is detected that there is no problem in the period of the loop event executed by the service user, thereby saving computing resources.

[0047] In a possible implementation, the diagnosis module includes a local diagnosis unit and a remote diagnosis unit. Based on this, in the process of sending any detection result (for example, the first detection result, the first sub-detection result, the second sub-detection result, or the third sub-detection result) to the diagnosis module, the detection result is saved in the local diagnosis unit (for example, a local storage unit), and the detection result is uploaded to the remote diagnosis unit (for example, a cloud diagnosis unit). Therefore, the detection result sent to the diagnosis module can be directly viewed remotely without reading and viewing locally, which is convenient and fast.

[0048] Therefore, based on the fact that the second detection result includes the first sub-detection result, the second sub-detection result, and the third sub-detection result, the use state of the SOA service can be monitored in more detail, so that the problem can be located more accurately when the SOA service is abnormal.

[0049] Optionally, the step 103 can include the following specific processing: determining all the detection results uploaded to the diagnosis module as the detection result of the SOA service.

[0050] Apparatus for detecting SOA services

[0051] Corresponding to the method embodiments, Figure 2A schematic diagram of an SOA service detection apparatus according to an embodiment of this application is shown, as follows: Figure 2 As shown, the detection device 200 for the SOA service includes:

[0052] The first detection unit 201 is used to detect the service provider of SOA service after the system for running SOA service is started, and obtain the first detection result;

[0053] The second detection unit 202 is used to detect any service user of the SOA service during the process of processing based on the SOA service, and obtain a second detection result.

[0054] The result determination unit 203 is used to determine the detection result of the SOA service based on the first detection result and the second detection result.

[0055] In this embodiment, the first detection unit 201 can detect the service provider of the SOA service after the system running the SOA service starts up, and obtain a first detection result; the second detection unit 202 can detect any service user of the SOA service during the process of processing based on the SOA service, and obtain a second detection result; the result determination unit 203 determines the detection result of the SOA service based on the first and second detection results. Therefore, in a system running SOA services, the detection of specific problems in the SOA service can be automatically achieved through the SOA service detection device. Compared to related technologies where, after detecting anomalies in services implemented based on SOA services, manual investigation and analysis of the specific problems causing the anomalies are still required, this embodiment can directly detect specific problems in the SOA service, facilitating maintenance and improving the maintenance efficiency of systems running SOA services.

[0056] It should be noted that the SOA service detection device in this embodiment is used to implement the corresponding SOA service detection method in the aforementioned method embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0057] Electronic device

[0058] Figure 3 This is a schematic block diagram of an electronic device provided in an embodiment of this application. Specific embodiments of this application do not limit the specific implementation of the electronic device. Figure 3 As shown, the electronic device may include: a processor 302, a communications interface 304, a memory 306, and a communications bus 308. Wherein:

[0059] The processor 302, the communication interface 304, and the memory 306 communicate with each other through a communication bus 308.

[0060] The communication interface 304 is configured to communicate with other electronic devices or servers.

[0061] The processor 302 is configured to execute the program 310, and specifically can execute the related steps in any of the foregoing SOA service detection method embodiments.

[0062] Specifically, the program 310 can include program code including computer operation instructions.

[0063] The processor 302 can be a CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device can be the same type of processor, such as one or more CPUs; or can be different types of processors, such as one or more CPUs and one or more ASICs.

[0064] RISC-V is an open-source instruction set architecture based on the principle of reduced instruction set (RISC), which can be applied to various aspects such as single-chip microcomputers and FPGA chips. Specifically, it can be applied in the fields of Internet of Things security, industrial control, mobile phones, personal computers, etc. And because it takes into account the realities of small, fast, and low power consumption when designing, it is particularly suitable for modern computing devices such as warehouse-scale computers, high-end mobile phones, and tiny embedded systems. With the rise of artificial intelligence Internet of Things (AIoT), the RISC-V instruction set architecture has also received more and more attention and support, and is expected to become the next generation of widely used CPU architecture.

[0065] The computer operation instructions in the embodiments of the present application can be computer operation instructions based on the RISC-V instruction set architecture, and correspondingly, the processor 302 can be designed based on the RISC-V instruction set. Specifically, the chip of the processor in the electronic device provided by the embodiments of the present application can be a chip designed based on the RISC-V instruction set, which can execute executable code based on the configured instructions, and thus implement the SOA service detection method in the foregoing embodiments.

[0066] The memory 306 is configured to store the program 310. The memory 306 can include a high-speed RAM memory, and can also include a non-volatile memory such as at least one disk memory.

[0067] The program 310 can be specifically used to cause the processor 302 to perform the detection method of the SOA service in any of the foregoing embodiments.

[0068] The specific implementation of each step in the program 310 can refer to the corresponding description in the corresponding step and unit of the detection method of the SOA service in any of the foregoing embodiments, and details are not described herein. It can be clearly understood by those skilled in the art that, for the convenience and brevity of description, the specific working process of the device and the module described above can refer to the corresponding process description in the foregoing method embodiments, and details are not described herein.

[0069] Through the electronic device in the embodiment of the present application, in the system for running the SOA service, the detection of the specific problem of the SOA service can be automatically realized through the detection method of the SOA service. Compared with the related art, after detecting the exception of the service implemented based on the SOA service, the specific problem of the SOA service causing the exception is manually checked and analyzed. In the embodiment of the present application, the specific problem of the SOA service can be directly detected, so as to facilitate maintenance, and the maintenance efficiency of the system for running the SOA service is improved.

[0070] Computer storage medium

[0071] The present application also provides a computer readable storage medium storing instructions for causing a machine to perform the detection method of the SOA service as described herein. Specifically, a system or device equipped with a storage medium can be provided, and the storage medium stores software program code for implementing the functions of any of the above embodiments, and the computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0072] In this case, the program code read from the storage medium itself can implement the functions of any of the above embodiments, and therefore the program code and the storage medium storing the program code constitute a part of the present application.

[0073] The storage medium for providing the program code includes a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer via a communication network.

[0074] Computer program product

[0075] The embodiment of the present application also provides a computer program product, including computer instructions, which instruct a computing device to perform any corresponding operation in the above method embodiments.

[0076] It should be noted that the information related to the user (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to sample data for training the model, data for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of the related data need to comply with the relevant laws, regulations and standards of the relevant countries and regions, and there are corresponding operation entrances for the user to choose authorization or refusal.

[0077] It should be pointed out that according to the needs of implementation, each component / step described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or part of the operation of the components / steps can be combined into a new component / step to achieve the purpose of the embodiments of the present application.

[0078] The above method according to the embodiments of the present application can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk, or downloaded through a network and originally stored in a remote recording medium or non-transitory machine readable medium and then stored in a local recording medium, so that the method described herein can be processed by such software on a recording medium using a general purpose computer, a special purpose processor or programmable or special purpose hardware (such as ASIC or FPGA). It can be understood that the computer, processor, microprocessor controller or programmable hardware includes a storage component (for example, RAM, ROM, flash memory, etc.) that can store or receive software or computer code, when the software or computer code is accessed and executed by the computer, processor or hardware, the method described herein is implemented. In addition, when the general purpose computer accesses the code for implementing the method shown herein, the execution of the code will convert the general purpose computer into a special purpose computer for executing the method shown herein.

[0079] It should be noted that the information related to the user (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to sample data for training the model, data for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of the related data need to comply with the relevant laws, regulations and standards of the relevant countries and regions, and there are corresponding operation entrances for the user to choose authorization or refusal.

[0080] Those skilled in the art can understand that the units and method steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software manner depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for a specific application, but such implementation should not be considered as beyond the scope of the embodiments of the present application.

[0081] The above embodiments are only used to illustrate but not to limit the embodiments of the present application. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application, and all equivalent technical solutions belong to the scope of the embodiments of the present application. The patent protection scope of the embodiments of the present application should be defined by the claims.

Claims

1. A method for detecting SOA services, characterized in that, The method comprises the following steps: detecting a service provider of the SOA service to obtain a first detection result after a system for running the SOA service is started; detecting a service user of the SOA service to obtain a second detection result in a process in which the service user processes based on the SOA service; determining a detection result of the SOA service according to the first detection result and the second detection result.

2. The method of claim 1, wherein, The step of detecting the service provider of the SOA service to obtain the first detection result comprises the following steps: if it is unable to determine whether the service provider has provided the SOA service, determining that the first detection result is used to indicate whether the service provider provides the SOA service is unknown, and sending the first detection result to a diagnosis module; if it is determined that the service provider has provided the SOA service, determining that the first detection result is used to indicate that the service provider normally provides the SOA service; if it is determined that the service provider does not provide the SOA service, determining that the first detection result is used to indicate that the service provider provides the SOA service abnormally, and sending the first detection result to the diagnosis module.

3. The method of claim 1, wherein, The step of detecting the service user to obtain the second detection result comprises the following steps: if the SOA service is successfully discovered within a first time length from a start of discovery of the SOA service by the service user, determining that a first sub-detection result included in the second detection result is used to indicate that discovery of the SOA service is normal; if the SOA service is not successfully discovered within the first time length from the start of discovery of the SOA service by the service user, determining that the first sub-detection result is used to indicate that discovery of the SOA service is abnormal, and sending the first sub-detection result to a diagnosis module.

4. The method of claim 1, wherein, The step of detecting the service user to obtain the second detection result comprises the following steps: if any function of the SOA service is successfully invoked within a second time length from a start of invocation of the function by the service user, determining that a second sub-detection result included in the second detection result is used to indicate that invocation of the function is normal; if the function is not successfully invoked within the second time length from the start of invocation of the function by the service user, determining that the second sub-detection result is used to indicate that invocation of the function is abnormal, and sending the second sub-detection result to a diagnosis module.

5. The method of claim 1, wherein, The step of detecting the service user to obtain the second detection result comprises the following steps: if a loop event is executed by the service user in a process in which the service user implements corresponding processing by invoking any function of the SOA service, determining whether a period of the loop event is within a target range; if the period is within the target range, determining that a third sub-detection result included in the second detection result is used to indicate that the period of the loop event is normal; if the period is not within the target range, determining that the third sub-detection result is used to indicate that the period of the loop event is abnormal, and sending the third sub-detection result to a diagnosis module.

6. The method according to any one of claims 2-5, characterized in that, The diagnosis module comprises a local diagnosis unit and a remote diagnosis unit.

7. A detection apparatus of a SOA service, characterized by, The method comprises the following steps: The first detection unit is configured to detect a service provider of the SOA service after a system for running the SOA service is started, and obtain a first detection result; The second detection unit is configured to detect any service user of the SOA service in a process of processing based on the SOA service, and obtain a second detection result; The result determination unit is configured to determine a detection result of the SOA service according to the first detection result and the second detection result.

8. An electronic device comprising: The processor, the memory, the communication interface and the communication bus are in communication with each other through the communication bus; The memory is configured to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the method in any one of claims 1-6.

9. A computer storage medium, having stored thereon a computer program, which, when executed by a processor, implements the method in any one of claims 1-6.

10. A computer program product, comprising computer instructions, which instruct a computing device to perform the method in any one of claims 1-6.