Service calling method, device, equipment, storage medium and program product

The initial service call information is converted into target service call information through the preset mapping parameter table, which solves the problem of service name and call path changes when the old system is moved to the new system, realizes insensitive service migration and transformation, and improves service calls Experience.

CN114885030BActive Publication Date: 2024-12-24INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210627298.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-12-24
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

When the service functions of the old system are moved to the new system during business changes or IT architecture adjustments, changes in the service name, call path or communication area cause the service caller to need to transform a lot, wasting manpower and affect the experience.

Method used

The initial service call information is converted into the target service call information through the preset mapping parameter table, including the mapping of the service name, method name, version number and communication area message, so as to realize the target service call without the need for the service caller to cooperate with the transformation.

Benefits of technology

It realizes system migration without any sense of service callers, reduces the transformation workload and improves the service call experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114885030B_ABST
    Figure CN114885030B_ABST
Patent Text Reader

Abstract

The present disclosure provides a service calling method, which can be applied to the field of cloud computing technology. The method includes: in response to a service calling request, obtaining initial service calling information, wherein the initial service calling information includes initial service information and an initial communication area message; determining target service calling information according to a preset mapping parameter table and the initial service calling information, wherein the preset mapping parameter table is used to characterize the mapping relationship between the initial service calling information and the target service calling information; calling the target service according to the target service calling information. The present disclosure also provides a service calling device, equipment, storage medium and program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of cloud computing technology, specifically to the field of distributed technology, and more specifically to a service invocation method, apparatus, device, storage medium, and program product. Background Art

[0002] With business changes or IT architecture adjustments, there is often a need to migrate the existing service functions of the old system to the new system. This kind of system transformation often causes changes in the service name, service call path or service communication area. In order to continue to use the new service, the caller directly changes to call the service of the new system. However, if there are many service callers, it often leads to a large workload for the caller to transform, wasting manpower.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] In view of the above problems, the present disclosure provides a service invoking method, apparatus, device, medium and program product.

[0005] According to a first aspect of the present disclosure, a service calling method is provided, comprising:

[0006] In response to the service call request, obtaining initial service call information, wherein the initial service call information includes initial service information and an initial communication area message;

[0007] Determining target service call information according to a preset mapping parameter table and the initial service call information, wherein the preset mapping parameter table is used to characterize a mapping relationship between the initial service call information and the target service call information; and

[0008] The target service is called according to the target service calling information.

[0009] According to an embodiment of the present disclosure, the preset mapping parameter table includes a service name mapping relationship, a method name mapping relationship, a version number mapping relationship, and a communication area message mapping relationship, and the determining of the target service call information according to the preset mapping parameter table and the initial service call information includes:

[0010] Determine target service information according to the initial service information and the preset mapping parameter table;

[0011] Generate a target communication area message according to the mapping relationship between the initial communication area message and the communication area message; and

[0012] Target service calling information is generated according to the target service information and the target communication area message.

[0013] According to an embodiment of the present disclosure, the initial service information includes an initial service name, an initial method name, and an initial version number, and determining the target service information according to the initial service information and the preset mapping parameter table includes:

[0014] Determine the target service name according to the mapping relationship between the initial service name and the service name;

[0015] Determine the target method name according to the mapping relationship between the initial method name and the method name;

[0016] Determine the target version number according to the mapping relationship between the initial version number and the version number; and

[0017] The target service information is determined according to the target service name, the target method name and the target version number.

[0018] According to an embodiment of the present disclosure, before determining the target service calling information according to the preset mapping parameter table and the initial service calling information, it also includes:

[0019] Determining a target service type according to a preset service pilot parameter table and the initial service call information, wherein the preset service pilot parameter table is used to characterize a correspondence between a transaction area and / or a transaction user and a service type; and

[0020] When the target service type is a new service, a step of determining target service calling information according to a preset mapping parameter table and the initial service calling information is performed.

[0021] According to an embodiment of the present disclosure, when the target service type is an old service, the target service is called according to the initial service calling information.

[0022] According to an embodiment of the present disclosure, the initial service information further includes user information and / or transaction area information, and the determining of the target service type according to the preset service parameter table and the initial service call information includes:

[0023] Determine the service pilot area information and / or service pilot user information according to the preset service pilot parameter table;

[0024] When it is determined that the transaction area information matches the service pilot area information, and / or the user information matches the service pilot user information, determining that the target service is the new service; and

[0025] When it is determined that the transaction area information does not match the service pilot area information, and / or the user information does not match the service pilot user information, it is determined that the target service is the old service.

[0026] According to an embodiment of the present disclosure, calling the target service according to the target service calling information includes:

[0027] Obtain the service stub of the system where the target service is located; and

[0028] The target service is called according to the service stub and the target service calling information.

[0029] A second aspect of the present disclosure provides a device for acquiring a service call link, comprising: an acquisition module, configured to acquire initial service call information in response to a service call request, wherein the initial service call information includes initial service information and an initial communication area message;

[0030] a determination module, configured to determine target service call information according to a preset mapping parameter table and the initial service call information, wherein the preset mapping parameter table is used to characterize a mapping relationship between the initial service call information and the target service call information; and

[0031] The service calling module is used to call the target service according to the target service calling information.

[0032] According to an embodiment of the present disclosure, the determination module includes:

[0033] A first determination submodule, configured to determine target service information according to the initial service information and the preset mapping parameter table;

[0034] A first generating submodule is used to generate a target communication area message according to the initial communication area message and the communication area message mapping relationship; and

[0035] The second generating submodule is used to generate target service calling information according to the target service information and the target communication area message.

[0036] According to an embodiment of the present disclosure, the first determining submodule includes:

[0037] A first determining unit, configured to determine a target service name according to a mapping relationship between the initial service name and the service name;

[0038] A second determining unit, configured to determine a target method name according to a mapping relationship between the initial method name and the method name;

[0039] A third determining unit is used to determine a target version number according to the mapping relationship between the initial version number and the version number; and

[0040] The fourth determining unit is used to determine the target service information according to the target service name, the target method name and the target version number.

[0041] According to an embodiment of the present disclosure, it also includes: a target service type determination module.

[0042] According to an embodiment of the present disclosure, the target service type determination module includes:

[0043] A second determination submodule is used to determine the target service type according to a preset service pilot parameter table and the initial service call information, wherein the preset service pilot parameter table is used to characterize the correspondence between the transaction area and / or transaction user and the service type;

[0044] A third determining submodule, configured to, when the target service type is a new service, execute a step of determining target service calling information according to a preset mapping parameter table and the initial service calling information; and

[0045] The fourth determining submodule is configured to call the target service according to the initial service calling information when the target service type is an old service.

[0046] According to an embodiment of the present disclosure, the second determining submodule includes:

[0047] A fifth determining unit, configured to determine service pilot area information and / or service pilot user information according to the preset service pilot parameter table;

[0048] a sixth determining unit, configured to determine that the target service is the new service when it is determined that the transaction area information matches the service pilot area information and / or the user information matches the service pilot user information; and

[0049] A seventh determining unit is configured to determine that the target service is the old service when it is determined that the transaction area information does not match the service pilot area information and / or the user information does not match the service pilot user information.

[0050] According to an embodiment of the present disclosure, the service calling module includes:

[0051] The acquisition submodule is used to obtain the service stub of the system where the target service is located;

[0052] The service calling submodule is used to call the target service according to the service stub and the target service calling information.

[0053] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned service calling method.

[0054] The fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned service calling method.

[0055] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned service calling method when executed by a processor.

[0056] A service calling method provided by an embodiment of the present invention, after receiving a service calling request, converts the initial service calling information into target service calling information according to a preset mapping parameter table, and calls the target service according to the target service calling information. The service calling method provided by an embodiment of the present invention is imperceptible to the service caller. After the service is upgraded and updated, the service caller does not need to cooperate with the transformation, thereby improving the service caller experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The above contents and other purposes, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0058] Figure 1 The schematic diagram shows the transformation process of the service caller during service migration;

[0059] Figure 2 The application scenario diagram of the service invocation method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown;

[0060] Figure 3a A schematic diagram schematically shows a service calling process according to an embodiment of the present disclosure;

[0061] Figure 3b A schematic diagram schematically shows a service calling device according to an embodiment of the present disclosure;

[0062] Figure 4 A flowchart of a service calling method according to an embodiment of the present disclosure is schematically shown;

[0063] Figure 5 A flowchart schematically shows a method for determining target service call information according to an embodiment of the present disclosure;

[0064] Figure 6 A flowchart of calling a target service according to target service calling information according to an embodiment of the present disclosure is schematically shown;

[0065] Figure 7a One of the flowcharts of the method for determining the target service type provided according to an embodiment of the present disclosure;

[0066] Figure 7bThis is a second flowchart of a method for determining a target service type according to an embodiment of the present disclosure;

[0067] Figure 8 The structure block diagram of the service calling device according to the embodiment of the present disclosure is schematically shown;

[0068] Fig. 9 A block diagram of an electronic device suitable for implementing a service calling method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0069] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0070] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0071] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0072] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0073] First, the terms that appear in this disclosure are explained:

[0074] Access layer: The server that the client disconnects from is usually called an access server. One or more access servers constitute the access layer. The access layer has the following specific functions: maintaining the network connection with the client and managing the client's network status; receiving client requests, forwarding the requests to the business layer, and forwarding the data sent by the business layer to the client; providing nearby access, load balancing, and optimizing network experience.

[0075] Aspect: A cross-cutting point between application objects, which can be abstracted into separate modules. It can add some common functions to the business components in the system without modifying the source code.

[0076] When business or IT architecture is adjusted, there is often a need to migrate the existing service functions of the old system to the new system. This kind of system transformation often causes changes in service names, service call paths, or service communication areas. The existing technology requires the caller to directly call the service of the new system. Figure 1 The following schematic diagram shows the transformation process of the service caller during service migration. Figure 1 As shown, the service caller needs to be modified and the service of the new system is adjusted. However, when there are many service callers, it often leads to a large workload for the caller to modify, wastes a lot of manpower and material resources, and also affects the user experience of the service caller.

[0077] An embodiment of the present disclosure provides a service calling method, comprising: obtaining initial service calling information in response to a service calling request, wherein the initial service calling information includes initial service information and an initial communication area message; determining target service calling information according to a preset mapping parameter table and the initial service calling information, wherein the preset mapping parameter table is used to characterize the mapping relationship between the initial service calling information and the target service calling information; and calling the target service according to the target service calling information.

[0078] Figure 2 The application scenario diagram of the service invocation method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown. Figure 3a The following is a schematic diagram showing a service calling process according to an embodiment of the present disclosure. Figure 3b A schematic diagram of a service invoking device according to an embodiment of the present disclosure is schematically shown.

[0079] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a service call scenario. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0080] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0081] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0082] The server 105 may be an access layer server that provides a service call forwarding service for the service caller, for example, an access layer server that provides forwarding processing in response to a service call instruction issued by a user using terminal devices 101, 102, 103 (only as an example). The access layer server may analyze and process the received user service call request and other data, generate new service call information according to the user's service call request, forward the new service call information, and provide services to the service caller.

[0083] It should be noted that the service calling method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the service calling device provided in the embodiment of the present disclosure can generally be set in the server 105. The service calling method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the service calling device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0084] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0085] It should be noted that the service calling method and device determined in the embodiments of the present disclosure can be used for applications in the financial field in the field of distributed technology, and can also be used in any field other than the financial field. The application field of the service calling method and device determined in the embodiments of the present disclosure is not limited.

[0086] like Figure 3a As shown, the method provided by the embodiment of the present disclosure is executed by a service rescheduling device, i.e., a service calling device, which is deployed in the old system. When a service caller initiates a service calling request, the access layer of the old system, after receiving the initial service calling request, determines the corresponding new service name and method name in the preset service mapping parameter table according to the initial service name, and then calls the new service of the new system according to the new service name and method name, and the new system provides services to the service caller. Figure 3bAs shown, the service adjustment device includes a section interception device, a pilot judgment device, a new and old service and communication area mapping device and a new service calling device. The section interception device intercepts the initial service call request and obtains the calling service name, method name, version number, transaction area information and user information, etc. The pilot judgment device determines whether the current service needs to be mapped to a new service based on the transaction area information and / or user information, that is, determines the target service type. When it is determined that it needs to be mapped to a new service, the new and old service and communication area mapping device generates a target service call request based on the initial service call request mapping, and the new service calling device calls the target service based on the target service call request, thereby achieving service migration without being felt by the service caller and improving the service consumption experience of the service caller.

[0087] The following will be based on Figure 2 The scene described and Figure 3a and Figure 3b The device structure shown in FIG. Figure 4 to Figure 7b The service calling method of the embodiment of the present disclosure is described in detail.

[0088] Figure 4 The flowchart of the service calling method according to the embodiment of the present disclosure is schematically shown. Figure 4 As shown, the service calling method of this embodiment includes operations S210 to S230. The method can be executed by a server or other computing devices, for example, the access layer of the old system.

[0089] In operation S210, initial service calling information is acquired in response to a service calling request.

[0090] According to an embodiment of the present disclosure, the initial service calling information includes initial service information and an initial communication area message.

[0091] In one example, a service caller sends a service call request to a server to call a service. The access layer of the old system uses Spring aspect annotations in the method class of the service call to intercept the initial service call information, where the initial service call information includes initial service information and initial communication area message.

[0092] In operation S220, target service calling information is determined according to the preset mapping parameter table and the initial service calling information.

[0093] According to an embodiment of the present disclosure, the preset mapping parameter table is used to characterize the mapping relationship between the initial service calling information and the target service calling information.

[0094] In an example, the preset mapping parameter table is pre-configured by the development and operation personnel, and mainly includes the following fields: old service name, old method name, old version number, new service name, new method name, new version number, and communication area mapping relationship. These field values ​​are obtained and initialized into the preset mapping parameter table. The preset mapping parameter table records the mapping relationship between the old and new services, such as service name, method name, version number, and communication area service call information. According to the initial service call information and the preset mapping parameter table, the target service call information can be determined, and then the service call can be completed. For the specific process, please refer to Figure 5 The operations S221 to S223 are described.

[0095] In operation S230, a target service is called according to the target service calling information.

[0096] In an example, the target service is called in the new system according to the target service call information. For the specific calling process, see Figure 6 Operations S241 to S242 are shown and are not described in detail here.

[0097] A service calling method provided by an embodiment of the present invention, after receiving a service calling request, converts the initial service calling information into target service calling information according to a preset mapping parameter table, and calls the target service according to the target service calling information. The service calling method provided by an embodiment of the present invention is imperceptible to the service caller. After the service is upgraded and updated, the service caller does not need to cooperate with the transformation, thereby improving the service caller experience.

[0098] Figure 5 The flowchart of the method for determining target service call information according to an embodiment of the present disclosure is schematically shown. Figure 5 As shown, operation S220 includes operations S221 to S223.

[0099] In operation S221, target service information is determined according to the initial service information and the preset mapping parameter table.

[0100] According to an embodiment of the present disclosure, the preset mapping parameter table includes a service name mapping relationship, a method name mapping relationship, a version number mapping relationship, and a communication area message mapping relationship.

[0101] According to an embodiment of the present disclosure, the target service name is determined based on the mapping relationship between the initial service name and the service name; the target method name is determined based on the mapping relationship between the initial method name and the method name; the target version number is determined based on the mapping relationship between the initial version number and the version number; the target service information is determined based on the target service name, the target method name and the target version number.

[0102] According to an embodiment of the present disclosure, the initial service information includes an initial service name, an initial method name, and an initial version number.

[0103] In one example, the mapping relationship between the new and old services is determined according to a preset mapping parameter table, including a service name mapping relationship, a method name mapping relationship, a version number mapping relationship, and a communication area message mapping relationship. The target service name, target method name, and target version number of the target service are determined according to the initial service name, initial method name, and initial version number in the initial service information in combination with the above mapping relationships to form the target service information.

[0104] In operation S222, a target communication area message is generated according to the initial communication area message and the communication area message mapping relationship.

[0105] In operation S223, target service calling information is generated according to the target service information and the target communication area message.

[0106] In one example, the target communication area message of the target service is converted according to the mapping relationship between the initial communication area message and the communication area message. The communication area message formats of different services are different. The following is only used as an example: For example, the communication area message of the initial service (old service) is:

[0107] [{″COMMMNG.ZONENO″:″200″,″COMMMNG.BRNO″:″620″,″COMECHAN.SERIALNO″:″050202006090829000097486760″}]

[0108] The communication area message mapping relationship obtained from the preset mapping parameter table is as follows:

[0109] {COMMMNG.ZONENO=InfoCommV10.zoneno, COMMMNG.BR NO=InfoCommV10.brno, COMECHAN.SERIALNO=InfoCommV10.serialno}

[0110] Then the communication area message for calling the new service can be obtained as:

[0111] [{″InfoCommV10.zoneno″:″200″,″InfoCommV10.brno″:″620″,″InfoCommV10.serialno″:″050202006090829000097486760″}]

[0112] The initial service call information is converted into target service call information through a preset mapping parameter table, and the communication area message and target service information of the target service are determined, thereby shielding changes in the service name, service call path or service communication area caused by system upgrades and modifications, and achieving seamless migration for the service caller.

[0113] Figure 6 The flowchart of calling the target service according to the target service calling information according to the embodiment of the present disclosure is schematically shown. Figure 6 As shown, operation S230 includes operations S231 to S232.

[0114] In operation S231, a service stub of the system where the target service is located is obtained.

[0115] In operation S232, the target service is called according to the service stub and the target service calling information.

[0116] In one example, a service stub of a new system is introduced, and based on the target service call information obtained in operation S220, namely the target service name, target method name, target version number and target communication area message, an RPC (Remote Procedure Call Protocol) remote procedure call is used to call the access layer of the new system, which is then forwarded to the business layer by the access layer of the new system, thereby completing the call of the new service.

[0117] Figure 7a This is one of the flowcharts of the method for determining the target service type provided according to an embodiment of the present disclosure, Figure 7b This is a second flow chart of a method for determining a target service type according to an embodiment of the present disclosure. Figure 7a As shown, operations S310 to S330 are included, and the execution order of operations S310 to S330 is before operation S220.

[0118] In operation S310, a target service type is determined according to a preset service pilot parameter table and the initial service calling information.

[0119] In operation S320, when the target service type is a new service, a step of determining target service calling information according to a preset mapping parameter table and the initial service calling information is performed.

[0120] In operation S330, when the target service type is an old service, the target service is called according to the initial service calling information.

[0121] In one example, after a service is upgraded, in order to ensure the high availability of the service during the service migration process and test whether the new service function is complete and correct, you can first complete some version updates, generate a service pilot parameter table based on the service update situation, and before performing service mapping, use the preset service pilot parameter table to judge the service initially called and determine the target service type to call. When a bug occurs in the new service function, you can switch back to calling the old service, modify the new service correctly, and then switch to calling the new service. After the new service function is stable, you can modify the service pilot parameter table and call the new service directly without judgment.

[0122] The target service types include new services and old services. The process of determining the target service type can be seen in Figure 7b Operations S311 to S313 are shown.

[0123] like Figure 7b As shown, operation S310 includes operations S311 to S313.

[0124] In operation S311, service pilot area information and / or service pilot user information is determined according to the preset service pilot parameter table.

[0125] According to an embodiment of the present disclosure, the preset service pilot parameter table is used to characterize the correspondence between transaction areas and / or transaction users and service types.

[0126] In operation S312, when it is determined that the transaction area information matches the service pilot area information, and / or the user information matches the service pilot user information, the target service is determined to be the new service.

[0127] In operation S313, when it is determined that the transaction area information does not match the service pilot area information, and / or the user information does not match the service pilot user information, it is determined that the target service is the old service.

[0128] According to an embodiment of the present disclosure, the initial service information also includes user information and / or transaction area information.

[0129] In one example, the preset service pilot parameter table includes the old service name, the old method name, the version number, the service pilot area information, and the service pilot user information. In the disclosed embodiment, for example, the service pilot can be set according to the transaction area, or the service pilot can be set according to the transaction user dimension. Specifically, according to the user information in the initial service information, the service pilot area information and the service pilot user information are determined according to the preset service pilot parameter table. The user information is matched with the service pilot user information. If they match, the target service is determined to be the new service; if it is determined that the transaction area information in the initial service information is within the service pilot area, the target service is determined to be the new service. If it is determined that the transaction area information does not match the service pilot area information, and / or the user information does not match the service pilot user information, the target service is determined to be the old service.

[0130] Based on the above service calling method, the present disclosure also provides a service calling device. Figure 8 The device is described in detail.

[0131] Figure 8 The structural block diagram of the service calling device according to the embodiment of the present disclosure is schematically shown.

[0132] like Figure 8 As shown, the service calling device 800 of this embodiment includes an acquisition module 810 , a determination module 820 and a service calling module 830 .

[0133] The acquisition module 810 is used to obtain initial service call information in response to the service call request, wherein the initial service call information includes initial service information and initial communication area message. In one embodiment, the acquisition module 810 can be used to perform the operation S210 described above, which will not be repeated here.

[0134] The determination module 820 is used to determine the target service call information according to the preset mapping parameter table and the initial service call information, wherein the preset mapping parameter table is used to characterize the mapping relationship between the initial service call information and the target service call information. In one embodiment, the determination module 820 can be used to perform the operation S220 described above, which will not be repeated here.

[0135] The service calling module 830 is used to call the target service according to the target service calling information. In one embodiment, the service calling module 830 can be used to perform the operation S230 described above, which will not be described in detail here.

[0136] According to an embodiment of the present disclosure, the determination module 820 includes: a first determination submodule 811 , a first generation submodule 812 , and a second generation submodule 813 .

[0137] The first determination submodule 811 is used to determine the target service information according to the initial service information and the preset mapping parameter table. In one embodiment, the first determination submodule 811 can be used to perform the operation S221 described above, which will not be described in detail here.

[0138] The first generation submodule 812 is used to generate a target communication area message according to the mapping relationship between the initial communication area message and the communication area message. In one embodiment, the first generation submodule 812 can be used to perform the operation S222 described above, which will not be described in detail here.

[0139] The second generation submodule 813 is used to generate target service call information according to the target service information and the target communication area message. In one embodiment, the second generation submodule 813 can be used to perform the operation S223 described above, which will not be repeated here.

[0140] According to an embodiment of the present disclosure, the first determining submodule 811 includes a first determining unit 8111 , a second determining unit 8112 , a third determining unit 8113 and a fourth determining unit 8114 .

[0141] The first determining unit 8111 is used to determine the target service name according to the initial service name and the service name mapping relationship. In one embodiment, the first determining unit 8111 can be used to perform the operation S210 described above, which will not be described in detail here.

[0142] The second determining unit 8112 is used to determine the target method name according to the mapping relationship between the initial method name and the method name. In one embodiment, the second determining unit 8112 can be used to perform the operation S210 described above, which will not be described in detail here.

[0143] The third determining unit 8113 is used to determine the target version number according to the initial version number and the version number mapping relationship. In one embodiment, the third determining unit 8113 can be used to perform the operation S210 described above, which will not be described in detail here.

[0144] The fourth determining unit 8114 is used to determine the target service information according to the target service name, the target method name and the target version number. In one embodiment, the fourth determining unit 8114 can be used to perform the operation S210 described above, which will not be described in detail here.

[0145] According to an embodiment of the present disclosure, it also includes: a target service type determination module 840.

[0146] According to an embodiment of the present disclosure, the target service type determination module 840 includes a second determination submodule 841 , a third determination submodule 842 , and a fourth determination submodule 843 .

[0147] The second determination submodule 841 is used to determine the target service type according to the preset service pilot parameter table and the initial service call information, wherein the preset service pilot parameter table is used to characterize the correspondence between the transaction area and / or transaction user and the service type. In one embodiment, the second determination submodule 841 can be used to perform the operation S310 described above and will not be repeated here.

[0148] The third determination submodule 842 is used to perform the step of determining the target service call information according to the preset mapping parameter table and the initial service call information when the target service type is a new service. In one embodiment, the third determination submodule 842 can be used to perform the operation S320 described above and will not be described in detail.

[0149] The fourth determining submodule 843 is used to call the target service according to the initial service calling information when the target service type is an old service. In one embodiment, the fourth determining submodule 843 can be used to perform the operation S330 described above, which will not be described in detail here.

[0150] According to an embodiment of the present disclosure, the second determining submodule 841 includes: a fifth determining unit 8411 , a sixth determining unit 8412 , and a seventh determining unit 8413 .

[0151] The fifth determining unit 8411 is used to determine the service pilot area information and / or service pilot user information according to the preset service pilot parameter table. In one embodiment, the fifth determining unit 8411 can be used to perform the operation S311 described above, which will not be described in detail here.

[0152] The sixth determination unit 8412 is used to determine that the target service is the new service when it is determined that the transaction area information matches the service pilot area information and / or the user information matches the service pilot user information. In one embodiment, the sixth determination unit 8412 can be used to perform the operation S312 described above, which is not described in detail here.

[0153] The seventh determination unit 8413 is used to determine that the target service is the old service when it is determined that the transaction area information does not match the service pilot area information and / or the user information does not match the service pilot user information. In one embodiment, the seventh determination unit 8413 can be used to perform the operation S313 described above, which is not repeated here.

[0154] According to an embodiment of the present disclosure, the service calling module 830 includes: an acquisition submodule 831 and a service calling submodule 832 .

[0155] According to an embodiment of the present disclosure, the acquisition submodule 831 is used to acquire the service stub of the system where the target service is located. In one embodiment, the acquisition submodule 831 can be used to perform the operation S231 described above, which will not be described in detail here.

[0156] The service calling submodule 832 is used to call the target service according to the service stub and the target service calling information. In one embodiment, the service calling submodule 832 can be used to perform the operation S232 described above, which will not be described in detail here.

[0157] According to an embodiment of the present disclosure, any multiple modules in the acquisition module 810, the determination module 820 and the service call module 830 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 810, the determination module 820 and the service call module 830 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the acquisition module 810, the determination module 820 and the service call module 830 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0158] Fig. 9 A block diagram of an electronic device suitable for implementing a service calling method according to an embodiment of the present disclosure is schematically shown.

[0159] like Fig. 9 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0160] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0161] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.

[0162] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the service calling method according to the embodiment of the present disclosure is implemented.

[0163] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.

[0164] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the service calling method provided by the embodiment of the present disclosure.

[0165] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0166] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0167] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0168] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0169] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0170] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0171] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A service calling method, characterized in that: include: In response to the service call request, obtaining initial service call information, wherein the initial service call information includes initial service information and an initial communication area message; Determining the target service type according to a preset service pilot parameter table and the initial service call information, wherein the preset service pilot parameter table is used to characterize the correspondence between the transaction area and / or transaction user and the service type; When the target service type is a new service, determining the target service call information according to a preset mapping parameter table and the initial service call information, wherein the preset mapping parameter table is used to characterize a mapping relationship between the initial service call information and the target service call information; and Calling the target service according to the target service calling information, The initial service call information further includes user information and / or transaction area information, and the determining of the target service type according to the preset service pilot parameter table and the initial service call information includes: Determine the service pilot area information and / or service pilot user information according to the preset service pilot parameter table; When it is determined that the transaction area information matches the service pilot area information, and / or the user information matches the service pilot user information, determining that the target service is the new service; and When it is determined that the transaction area information does not match the service pilot area information, and / or the user information does not match the service pilot user information, it is determined that the target service is an old service.

2. The method according to claim 1, characterized in that The preset mapping parameter table includes a service name mapping relationship, a method name mapping relationship, a version number mapping relationship, and a communication area message mapping relationship. The determining of the target service call information according to the preset mapping parameter table and the initial service call information includes: Determine target service information according to the initial service information and the preset mapping parameter table; Generate a target communication area message according to the mapping relationship between the initial communication area message and the communication area message; and Target service calling information is generated according to the target service information and the target communication area message.

3. The method according to claim 2, characterized in that The initial service information includes an initial service name, an initial method name, and an initial version number, and determining the target service information according to the initial service information and the preset mapping parameter table includes: Determine the target service name according to the mapping relationship between the initial service name and the service name; Determine the target method name according to the mapping relationship between the initial method name and the method name; Determine the target version number according to the mapping relationship between the initial version number and the version number; and The target service information is determined according to the target service name, the target method name and the target version number.

4. The method according to claim 1, characterized in that: When the target service type is an old service, the target service is called according to the initial service calling information.

5. The method according to claim 4, characterized in that The calling of the target service according to the target service calling information comprises: Obtain the service stub of the system where the target service is located; and The target service is called according to the service stub and the target service calling information.

6. A service calling device, comprising: An acquisition module, configured to acquire initial service call information in response to a service call request, wherein the initial service call information includes initial service information and an initial communication area message; a target service type determination module, used to determine the target service type according to a preset service pilot parameter table and the initial service call information, wherein the preset service pilot parameter table is used to characterize the correspondence between the transaction area and / or transaction user and the service type; a determination module, configured to determine the target service call information according to a preset mapping parameter table and the initial service call information when the target service type is a new service, wherein the preset mapping parameter table is used to characterize a mapping relationship between the initial service call information and the target service call information; and A service calling module is used to call the target service according to the target service calling information. The initial service call information further includes user information and / or transaction area information, and the determining of the target service type according to the preset service pilot parameter table and the initial service call information includes: Determine the service pilot area information and / or service pilot user information according to the preset service pilot parameter table; When it is determined that the transaction area information matches the service pilot area information, and / or the user information matches the service pilot user information, determining that the target service is the new service; and When it is determined that the transaction area information does not match the service pilot area information, and / or the user information does not match the service pilot user information, it is determined that the target service is an old service.

7. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 5.