CN114257635B - Service calling method, system, computer device, storage medium and program product - Google Patents

Service calling method, system, computer device, storage medium and program product Download PDF

Info

Publication number
CN114257635B
CN114257635B CN202111399223.6A CN202111399223A CN114257635B CN 114257635 B CN114257635 B CN 114257635B CN 202111399223 A CN202111399223 A CN 202111399223A CN 114257635 B CN114257635 B CN 114257635B
Authority
CN
China
Prior art keywords
service
calling
format
access channel
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111399223.6A
Other languages
Chinese (zh)
Other versions
CN114257635A (en
Inventor
黄日钊
王康椿
陈泽垒
方敏华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202111399223.6A priority Critical patent/CN114257635B/en
Publication of CN114257635A publication Critical patent/CN114257635A/en
Application granted granted Critical
Publication of CN114257635B publication Critical patent/CN114257635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to a service calling method, a service calling device, computer equipment and a storage medium. The method comprises the following steps: the service calling system determines a target message format corresponding to the service characteristic information in the service calling information according to the format corresponding relation by receiving the service calling information sent by the service calling party, performs format conversion on the service calling information according to the target message format, further determines a calling result according to the service calling information after format conversion, and sends the calling result to the service calling party. In the method, the service calling system does not need to provide corresponding configuration information for each service, and only needs to determine the target message format corresponding to the service according to the service characteristic information in the service calling information, so that the occupation of the storage space on the service calling system is reduced, and the operation efficiency of the service calling system is improved.

Description

Service calling method, system, computer device, storage medium and program product
Technical Field
The present invention relates to the field of big data resource scheduling technology, and in particular, to a service calling method, a system, a computer device, a storage medium, and a computer program product.
Background
With the increasing demand of user services, the server side needs to provide more and more services for service callers accordingly.
In the conventional technology, the server side needs to be configured with configuration information corresponding to each service, the configuration information includes channels (which can be understood as servlets and service connectors) corresponding to the service, a service calling party can generally call the service through multiple service channels, each type of service called by each service channel corresponds to one servlet, and the server side needs to configure how many servlets accordingly. For example, the service caller can call the balance inquiry and the account transfer payment through two service channels of the bank applet and the bank APP, and the server side needs to provide four servlets for the service caller.
When the server side provides a large amount of services, the data volume of the configuration information is also huge, a large amount of storage space is required to be occupied, and the operation efficiency of the server side is reduced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a service invocation method, apparatus, computer device, storage medium, and computer program product.
A service invocation method, comprising:
receiving service calling information sent by a service calling party; the service calling information comprises service characteristic information of the target service;
determining a target message format corresponding to the service characteristic information according to the format correspondence, and performing format conversion on the service call information according to the target message format; the format correspondence comprises the correspondence between service characteristic information of the service and message formats adapted to components calling the corresponding service;
and determining a calling result according to the service calling information after format conversion, and sending the calling result to a service calling party.
In one embodiment, the service feature information includes a transaction code and an access channel code, and determining a target message format corresponding to the service feature information according to a format correspondence includes:
obtaining a message format corresponding to the transaction code and the access channel code according to the format corresponding relation; the transaction code is used for representing the type of the called service, and the access channel code is used for representing a channel for calling the service;
and determining the message format corresponding to the transaction code and the access channel code as a target message format.
In one embodiment, determining the call result according to the service request information after format conversion includes:
determining the URL address of a component for calling the target service according to the transaction code and the access channel code;
sending the service call information after format conversion to a URL address;
and receiving a calling result sent by the component corresponding to the URL address.
In one embodiment, determining the URL address of the component invoking the target service based on the transaction code and the access channel code includes:
determining service codes corresponding to the transaction codes and the access channel codes according to the format correspondence; the format corresponding relation also comprises corresponding relation among transaction codes, access channel codes and service codes;
and acquiring the URL address corresponding to the service code as the URL address of the component for calling the target service.
In one embodiment, the method further comprises:
determining transaction codes and access channel codes of services and message formats adapted to components calling the corresponding services;
and correspondingly associating the transaction code with the access channel code and the message format adapted to the component for calling the corresponding service to obtain a format corresponding relation.
A service invocation system, comprising:
the information receiving module is used for receiving the service calling information sent by the service calling party; the service calling information comprises service characteristic information of the target service;
the message conversion module is used for determining a target message format corresponding to the service characteristic information according to the format corresponding relation and carrying out format conversion on the service call information according to the target message format; the format corresponding relation comprises service characteristic information of the service and a message format adapted to a component for calling the corresponding service;
and the call feedback module is used for determining a call result according to the service call information after format conversion and sending the call result to the service calling party.
In one embodiment, the service features include transaction codes and access channel codes, and the message conversion module is specifically configured to:
obtaining a message format corresponding to the transaction code and the access channel code according to the format corresponding relation;
determining a message format corresponding to the transaction code and the access channel code as a target message format; the transaction code is used for representing the type of the called service, and the access channel code is used for representing the channel for calling the service.
In one embodiment, the call feedback module is specifically configured to:
determining the URL address of a component for calling the target service according to the transaction code and the access channel code;
sending the service call information after format conversion to a URL address;
and receiving a calling result sent by the component corresponding to the URL address.
In one embodiment, the call feedback module is specifically configured to:
determining service codes corresponding to the transaction codes and the access channel codes according to the format correspondence;
and acquiring the URL address corresponding to the service code as the URL address of the component for calling the target service.
In one embodiment, the information receiving module is further configured to:
determining transaction codes and access channel codes of services and message formats adapted to components calling the corresponding services;
and correspondingly associating the transaction code with the access channel code and the message format adapted to the component for calling the corresponding service to obtain a format corresponding relation.
A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements any of the methods described above when executing the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements any of the methods described above.
A computer program product comprising a computer program which when executed by a processor implements any of the methods described above.
The service calling method, the device, the computer equipment, the storage medium and the computer program product are characterized in that the service calling system is used for determining a target message format corresponding to the service characteristic information in the service calling information according to the format corresponding relation by receiving the service calling information sent by the service calling party, performing format conversion on the service calling information according to the target message format, determining a calling result according to the service calling information after format conversion, and sending the calling result to the service calling party. By the method, the service calling system does not need to provide corresponding configuration information for each service, only needs to determine the target message format corresponding to the service according to the service characteristic information in the service calling information, and particularly, when the service calling system can provide a large number of services, the service calling system does not need to store a large number of redundant configuration information, so that the occupation of storage space on the service calling system is reduced, and the operation efficiency of the service calling system is improved.
Drawings
FIG. 1 is an application environment diagram of a service invocation method in an embodiment provided by the present solution;
FIG. 2 is a flowchart of a service invocation method according to the first embodiment;
FIG. 3 is a flowchart illustrating a method for determining a target message format according to a second embodiment;
FIG. 4 is a schematic diagram of a service invocation system according to a third embodiment;
FIG. 5 is a flowchart illustrating a method for determining a call result according to a fourth embodiment;
FIG. 6 is a flowchart of a service invocation method in a fifth embodiment;
fig. 7 is a block diagram showing the construction of a service invocation system in the sixth embodiment;
fig. 8 is an internal structural diagram of the computer device in the embodiment provided in this scheme.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The service calling method provided by the application can be applied to an application environment shown in fig. 1. Wherein the service invoker 102 communicates with the service invocation system 104 over a network. The service calling system 104 receives service calling information sent by the service calling party 102, the service calling information comprises service feature information of a target service, the service calling system 104 determines a target message format corresponding to the service feature information according to a format corresponding relation, performs format conversion on the service calling information according to the target message format, further determines a calling result according to the service calling information after format conversion, and sends the calling result to the service calling party 102. The format corresponding relation comprises service characteristic information of the service and a message format adapted to a component calling the corresponding service. The service invoker 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the service invocation system 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a service calling method is provided, and the service calling system in fig. 1 is taken as an example to illustrate the application of the method, and the method includes the following steps:
s210, receiving service call information sent by a service calling party.
The service calling information comprises service characteristic information of the target service. The target service is the service to be called by the service calling party, and the service characteristic information is used for characterizing the service, and can be the service type, such as balance inquiry and account transfer payment, and can also be a service channel, such as an internet banking channel, an applet channel or an ATM (Automated Teller Machine, automatic teller machine) channel. The service characteristic information may indicate a specific service, and the service invocation system may determine the specific service based on the service characteristic information.
Optionally, the user performs a service selection operation on the service calling party to determine the target service, and the service calling party generates service calling information including service characteristic information of the target service in response to the service selection operation of the user and sends the service calling information to the service calling system to initiate a service calling request to the service calling system. For example, after the user clicks on the mobile phone and enters the APP of the XX bank, the balance inquiry is selected, and the mobile phone is used as a service calling party to generate service calling information in response to the service selection operation of the user, and the service calling information is sent to the service calling system. The service characteristic information indicates that the target service is balance inquiry service initiated by an online banking channel.
Correspondingly, the service calling system receives the service calling information sent by the service calling party.
Optionally, the service calling system provides servlets matched with the number of service channels for the service calling party, each service channel corresponds to a servlet, and the service calling party generates service calling information in a corresponding message format based on the servlet selected by the user.
S220, determining a target message format corresponding to the service characteristic information according to the format corresponding relation, and performing format conversion on the service call information according to the target message format.
The format correspondence includes a correspondence between service feature information of the service and a message format adapted to a component calling the corresponding service. The target message format is a message format adapted to the component calling the target service. For example, the message format adapted to the component calling the target service is xml format, and the target message format is xml format.
Specifically, after receiving the service call information, the service call system unpacks the service call information to obtain service feature information of the target service, determines a configuration file corresponding to the service feature information according to a format corresponding relation, wherein the configuration file comprises a message format adapted to a component for calling the corresponding service, determines that the message format is the target message format, and performs format conversion on the service call information according to the target message format to convert the message format of the service call information into the target message format, so as to obtain the service call information after format conversion.
Optionally, if the service calling system does not determine the message format corresponding to the service feature information according to the format correspondence, reporting an error to the service calling party.
S230, determining a calling result according to the service calling information after format conversion, and sending the calling result to a service calling party.
Optionally, the service calling system extracts service feature information in the service calling information after format conversion, so as to determine a component for calling the target service according to the service feature information, further sends the service calling information after format conversion to the component, calls the target service by the component, obtains a corresponding calling result, and feeds back the calling result to the service calling party.
In this embodiment, the service calling system determines, by receiving service calling information sent by the service calling party, a target message format corresponding to service feature information in the service calling information according to a format correspondence, and performs format conversion on the service calling information according to the target message format, and further determines a calling result according to the service calling information after format conversion, and sends the calling result to the service calling party. By the method, the service calling system does not need to provide corresponding configuration information for each service, only the target message format corresponding to the service is determined according to the service characteristic information in the service calling information, and particularly when the service calling system can provide a large number of services, the service calling system does not need to store a large number of redundant configuration information, so that occupation of storage space on the service calling system is reduced, and the operation efficiency of the service calling system is improved.
In one embodiment, the service characteristic information includes a transaction code and an access channel code, and as shown in fig. 3, S220 includes:
s310, acquiring a message format corresponding to the transaction code and the access channel code according to the format corresponding relation.
The transaction code is used for representing the type of the called service, and the access channel code is used for representing the channel for calling the service. The characteristics of the corresponding service can be characterized through the transaction code and the access channel code.
Optionally, in the case that the service feature information includes a transaction code and an access channel code, the format correspondence includes a correspondence between the transaction code of the service, the access channel code, and a message format adapted to a component that invokes the corresponding service.
S320, determining the message format corresponding to the transaction code and the access channel code as a target message format.
Specifically, in the case that the service feature information includes a transaction code and an access channel code, the service calling system obtains a message format corresponding to the transaction code and the access channel code according to the format correspondence, and determines that the message format is a target message format adapted to a component for calling the target service. For example, the format correspondence relationship including the transaction code, the access channel code of the service and the correspondence relationship with the message format adapted to the component for calling the corresponding service is shown in the following table 1, if the service feature information of the target service in the service calling information received by the service calling system includes the transaction code a001 and the access channel code B001, the message format adapted to the component for calling the target service can be determined to be the format a based on the following table.
Table 1 format correspondence table
Transaction code Access channel coding Message format
A001 B001 A
A001 B002 B
A001 B003 C
In this embodiment, the service invocation system obtains the message format corresponding to the transaction code and the access channel code according to the format correspondence, and further determines that the message format corresponding to the transaction code and the access channel code is the target message format adapted to the component invoking the target service. The transaction code is used for representing the type of the called service, the access channel code is used for representing the channel of the called service, the service characteristics of the target service can be accurately reflected through the transaction code and the access channel code, the target service can be uniquely determined, the message format adapted to the component for calling the target service can be determined by referring to the format corresponding relation, and the accuracy of the determined target message format is further improved.
In one embodiment, as shown in fig. 4, the service invocation system includes an integration component 401, a public component 402, and a product component 403, where the public component 402 and the product component 403 communicate with the integration component 401 via a network, respectively. As shown in fig. 5, determining the call result according to the service call information after format conversion in S230 includes:
s510, determining the URL address of the component for calling the target service according to the transaction code and the access channel code.
Optionally, the integration component 401, the common component 402, and the product component 403 are independent servers.
Specifically, the integration component 401 receives service call information sent by a service caller, and unpacks the service call information to obtain service feature information including a transaction code and an access channel code of a target service, so as to determine a URL (Uniform Resource Locator ) address of a component for calling the target service according to the transaction code and the access channel code.
Optionally, the format correspondence further includes correspondence between transaction codes, access channel codes, and service codes, and the integration component 401 determines the service codes corresponding to the transaction codes and the access channel codes according to the format correspondence, and obtains URL addresses corresponding to the service codes as URL addresses of components for invoking the target service.
It should be noted that, the format correspondence is independently pre-stored in the service calling system in the form of a database table. When the service traffic is increased and the service scale is required to be enlarged, only the database cluster is needed.
Specifically, the integration component 401 may determine, according to the format correspondence, a service code corresponding to the transaction code and the access channel code, where the common component 402 pre-stores a correspondence between the service code and the URL address of the product component, and the integration component 401 obtains, from the common component 402, the URL address of the product component corresponding to the service code corresponding to the transaction code and the access channel code, as the URL address of the component that invokes the target service.
S520, the service call information after format conversion is sent to the URL address.
S530, receiving a calling result sent by a component corresponding to the URL address.
Specifically, after determining the URL address of the component for calling the target service, the integration component 401 sends the service call information after format conversion to the URL address, and the product component 403 corresponding to the URL address calls the target service according to the service call information after format conversion, and obtains a corresponding call result, and the product component 403 sends the call result to the integration component 401, and the integration component 401 receives the call result.
In this embodiment, the service calling system determines the service code corresponding to the transaction code and the access channel code according to the format correspondence, and obtains the URL address corresponding to the service code as the URL address of the component for calling the target service. When the calling method is applied to other server containers, the format corresponding relation is not required to be changed, so that decoupling between the server containers and service functions is realized, the database table can be integrally migrated, related data required to be changed for replacing the server containers is greatly reduced, and portability of the whole service calling method is improved.
In one embodiment, the method further includes a process of constructing a format correspondence, as shown in fig. 6, and the method further includes:
s610, determining transaction codes and access channel codes of the services and message formats adapted to components calling the corresponding services.
Alternatively, the service invocation system may determine the transaction code and the access channel code of the service and the message format adapted to the component invoking the corresponding service based on the transaction code and the access channel code of the service entered by the system developer and the message format adapted to the component invoking the corresponding service. For example, the service calling system responds to a corresponding relation construction request initiated by a system developer, a corresponding relation construction page is displayed through a display device, a transaction code input by the system developer in a service transaction code filling area is received, an access channel code input in a service access channel code filling area and a message format input in an adapted message format filling area are received, and the transaction code and the access channel code of the service and a message format adapted to a component calling the corresponding service can be obtained.
S620, the transaction code and the access channel code are correspondingly associated with the message format adapted by the component for calling the corresponding service, and a format corresponding relation is obtained.
Specifically, the service calling system correspondingly associates the determined transaction code and the access channel code with the message format adapted to the component calling the corresponding service to obtain a format corresponding relation. For example, continuing the above example, the service call system associates the information input by the system developer in the corresponding filling area in the corresponding relation construction page, so as to obtain the format corresponding relation.
Optionally, the format corresponding relationship may further include a service number corresponding to the transaction code and the access channel code, and the construction of the format corresponding relationship including the service number corresponding to the transaction code and the access channel code may also be determined by a manner that a merchant obtains information input by a system developer in a corresponding filling area, which is not described herein.
Optionally, the format correspondence may further include information such as a service name, a number of times the service has been currently invoked, and a maximum number of simultaneous invocations. The service calling system can insert the corresponding relation of the format into the routing table by adopting SQL (Structured Query Language, database query and programming language) query sentences, so that the service can be registered correspondingly, and meanwhile, when the information such as the calling condition of the service, the total number of the service and the like is required to be counted, the service calling system can be realized by adopting simple SQL query sentences. Meanwhile, the format correspondence in the routing table can be modified in batches.
In this embodiment, the service calling system determines the transaction code and the access channel code of the service and the message format adapted to the component calling the corresponding service, and correspondingly associates the transaction code and the access channel code with the message format adapted to the component calling the corresponding service to obtain the format correspondence, so as to make a data base for subsequent service calling, thereby facilitating quick determination of the target message format and improving the overall efficiency of service calling.
It should be understood that, although the steps in the flowcharts in fig. 2-6 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of the flowcharts of FIGS. 2-6 may include steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in other steps.
In one embodiment, as shown in fig. 7, there is provided a service invocation system including: an information receiving module 701, a message converting module 702 and a calling feedback module 703, wherein:
the information receiving module 701 is configured to receive service call information sent by a service caller; the service calling information comprises service characteristic information of the target service;
the message conversion module 702 is configured to determine a target message format corresponding to the service feature information according to the format correspondence, and perform format conversion on the service call information according to the target message format; the format corresponding relation comprises service characteristic information of the service and a message format adapted to a component for calling the corresponding service;
the call feedback module 703 is configured to determine a call result according to the service call information after format conversion, and send the call result to the service caller.
In one embodiment, the service features include transaction codes and access channel codes, and the message conversion module 702 is specifically configured to:
obtaining a message format corresponding to the transaction code and the access channel code according to the format corresponding relation; determining a message format corresponding to the transaction code and the access channel code as a target message format; the transaction code is used for representing the type of the called service, and the access channel code is used for representing the channel for calling the service.
In one embodiment, the call feedback module 703 is specifically configured to:
determining the URL address of a component for calling the target service according to the transaction code and the access channel code; sending the service call information after format conversion to a URL address; and receiving a calling result sent by the component corresponding to the URL address.
In one embodiment, the call feedback module 703 is specifically configured to:
determining service codes corresponding to the transaction codes and the access channel codes according to the format correspondence; and acquiring the URL address corresponding to the service code as the URL address of the component for calling the target service.
In one embodiment, the information receiving module 701 is further configured to:
determining transaction codes and access channel codes of services and message formats adapted to components calling the corresponding services; and correspondingly associating the transaction code with the access channel code and the message format adapted to the component for calling the corresponding service to obtain a format corresponding relation.
The specific limitation of the service calling device can be referred to the limitation of the service calling method hereinabove, and the description thereof is omitted. The respective modules in the service invocation apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing data related to service calls. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a service invocation method.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
receiving service calling information sent by a service calling party; the service calling information comprises service characteristic information of the target service; determining a target message format corresponding to the service characteristic information according to the format correspondence, and performing format conversion on the service call information according to the target message format; the format correspondence comprises the correspondence between service characteristic information of the service and message formats adapted to components calling the corresponding service; and determining a calling result according to the service calling information after format conversion, and sending the calling result to a service calling party.
In one embodiment, the service characteristic information includes transaction code and access channel code, and the processor when executing the computer program further performs the steps of:
obtaining a message format corresponding to the transaction code and the access channel code according to the format corresponding relation; the transaction code is used for representing the type of the called service, and the access channel code is used for representing a channel for calling the service; and determining the message format corresponding to the transaction code and the access channel code as a target message format.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining the URL address of a component for calling the target service according to the transaction code and the access channel code; sending the service call information after format conversion to a URL address; and receiving a calling result sent by the component corresponding to the URL address.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining service codes corresponding to the transaction codes and the access channel codes according to the format correspondence; the format corresponding relation also comprises corresponding relation among transaction codes, access channel codes and service codes; and acquiring the URL address corresponding to the service code as the URL address of the component for calling the target service.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining transaction codes and access channel codes of services and message formats adapted to components calling the corresponding services; and correspondingly associating the transaction code with the access channel code and the message format adapted to the component for calling the corresponding service to obtain a format corresponding relation.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving service calling information sent by a service calling party; the service calling information comprises service characteristic information of the target service; determining a target message format corresponding to the service characteristic information according to the format correspondence, and performing format conversion on the service call information according to the target message format; the format correspondence comprises the correspondence between service characteristic information of the service and message formats adapted to components calling the corresponding service; and determining a calling result according to the service calling information after format conversion, and sending the calling result to a service calling party.
In one embodiment, the service characteristic information includes transaction code and access channel code, and the computer program when executed by the processor further performs the steps of:
obtaining a message format corresponding to the transaction code and the access channel code according to the format corresponding relation; the transaction code is used for representing the type of the called service, and the access channel code is used for representing a channel for calling the service; and determining the message format corresponding to the transaction code and the access channel code as a target message format.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the URL address of a component for calling the target service according to the transaction code and the access channel code; sending the service call information after format conversion to a URL address; and receiving a calling result sent by the component corresponding to the URL address.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining service codes corresponding to the transaction codes and the access channel codes according to the format correspondence; the format corresponding relation also comprises corresponding relation among transaction codes, access channel codes and service codes; and acquiring the URL address corresponding to the service code as the URL address of the component for calling the target service.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining transaction codes and access channel codes of services and message formats adapted to components calling the corresponding services; and correspondingly associating the transaction code with the access channel code and the message format adapted to the component for calling the corresponding service to obtain a format corresponding relation.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
receiving service calling information sent by a service calling party; the service calling information comprises service characteristic information of the target service; determining a target message format corresponding to the service characteristic information according to the format correspondence, and performing format conversion on the service call information according to the target message format; the format correspondence comprises the correspondence between service characteristic information of the service and message formats adapted to components calling the corresponding service; and determining a calling result according to the service calling information after format conversion, and sending the calling result to a service calling party.
In one embodiment, the service characteristic information includes transaction code and access channel code, and the computer program when executed by the processor further performs the steps of:
obtaining a message format corresponding to the transaction code and the access channel code according to the format corresponding relation; the transaction code is used for representing the type of the called service, and the access channel code is used for representing a channel for calling the service; and determining the message format corresponding to the transaction code and the access channel code as a target message format.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the URL address of a component for calling the target service according to the transaction code and the access channel code; sending the service call information after format conversion to a URL address; and receiving a calling result sent by the component corresponding to the URL address.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining service codes corresponding to the transaction codes and the access channel codes according to the format correspondence; the format corresponding relation also comprises corresponding relation among transaction codes, access channel codes and service codes; and acquiring the URL address corresponding to the service code as the URL address of the component for calling the target service.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining transaction codes and access channel codes of services and message formats adapted to components calling the corresponding services; and correspondingly associating the transaction code with the access channel code and the message format adapted to the component for calling the corresponding service to obtain a format corresponding relation.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A service invocation method applied to a service invocation system, the method comprising:
receiving service calling information sent by a service calling party; the service calling information comprises service characteristic information of a target service;
determining a target message format corresponding to the service characteristic information according to the format corresponding relation, and performing format conversion on the service call information according to the target message format; the format corresponding relation comprises the corresponding relation between service characteristic information of the service and a message format adapted to a component for calling the corresponding service;
determining a calling result according to the service calling information after format conversion, and sending the calling result to the service calling party;
the service characteristic information comprises a transaction code and an access channel code, and the determining the target message format corresponding to the service characteristic information according to the format corresponding relation comprises the following steps:
acquiring a message format corresponding to the transaction code and the access channel code according to the format corresponding relation; the transaction code is used for representing the type of the called service, and the access channel code is used for representing a channel for calling the service;
and determining the message format corresponding to the transaction code and the access channel code as the target message format.
2. The method of claim 1, wherein the determining the call result according to the service call information after format conversion comprises:
determining the URL address of a component for calling the target service according to the transaction code and the access channel code;
sending the service call information after format conversion to the URL address;
and receiving the calling result sent by the component corresponding to the URL address.
3. The method of claim 2, wherein determining the URL address of the component invoking the target service based on the transaction code and the access channel code comprises:
determining service codes corresponding to the transaction codes and the access channel codes according to the format corresponding relation; the format corresponding relation also comprises a corresponding relation among transaction codes, access channel codes and service codes;
and acquiring the URL address corresponding to the service code as the URL address of the component for calling the target service.
4. A method according to any one of claims 1 to 3, characterized in that the method further comprises:
determining transaction codes and access channel codes of services and message formats adapted to components calling the corresponding services;
and correspondingly associating the transaction code with the access channel code and the message format adapted to the component for calling the corresponding service to obtain the format corresponding relation.
5. A service invocation system, the system comprising:
the information receiving module is used for receiving the service calling information sent by the service calling party; the service calling information comprises service characteristic information of a target service;
the message conversion module is used for determining a target message format corresponding to the service characteristic information according to the format corresponding relation and carrying out format conversion on the service call information according to the target message format; the format corresponding relation comprises the corresponding relation between service characteristic information of the service and a message format adapted to a component for calling the corresponding service; the service feature comprises a transaction code and an access channel code, and the message conversion module is specifically used for: acquiring a message format corresponding to the transaction code and the access channel code according to the format corresponding relation; determining a message format corresponding to the transaction code and the access channel code as the target message format; the transaction code is used for representing the type of the called service, and the access channel code is used for representing a channel for calling the service;
and the call feedback module is used for determining a call result according to the service call information after format conversion and sending the call result to the service calling party.
6. The system of claim 5, wherein the call feedback module is specifically configured to:
determining the URL address of a component for calling the target service according to the transaction code and the access channel code;
sending the service call information after format conversion to the URL address;
and receiving the calling result sent by the component corresponding to the URL address.
7. The system of claim 6, wherein the call feedback module is specifically configured to:
determining service codes corresponding to the transaction codes and the access channel codes according to the format corresponding relation;
and acquiring the URL address corresponding to the service code as the URL address of the component for calling the target service.
8. The system of any one of claims 5 to 7, wherein the information receiving module is further configured to:
determining transaction codes and access channel codes of services and message formats adapted to components calling the corresponding services;
and correspondingly associating the transaction code with the access channel code and the message format adapted to the component for calling the corresponding service to obtain the format corresponding relation.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202111399223.6A 2021-11-19 2021-11-19 Service calling method, system, computer device, storage medium and program product Active CN114257635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111399223.6A CN114257635B (en) 2021-11-19 2021-11-19 Service calling method, system, computer device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111399223.6A CN114257635B (en) 2021-11-19 2021-11-19 Service calling method, system, computer device, storage medium and program product

Publications (2)

Publication Number Publication Date
CN114257635A CN114257635A (en) 2022-03-29
CN114257635B true CN114257635B (en) 2023-05-23

Family

ID=80793067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111399223.6A Active CN114257635B (en) 2021-11-19 2021-11-19 Service calling method, system, computer device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN114257635B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938387B (en) * 2022-07-22 2022-11-11 浙江中控技术股份有限公司 Data transmission method, device, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704521A (en) * 2019-08-30 2020-01-17 深圳壹账通智能科技有限公司 Interface data access method and system
CN111010438A (en) * 2019-12-13 2020-04-14 北京达佳互联信息技术有限公司 Remote procedure calling method, device, server and storage medium
CN111355800A (en) * 2020-02-28 2020-06-30 中国建设银行股份有限公司 Service processing method, device, equipment and storage medium
CN111722947A (en) * 2020-06-28 2020-09-29 深圳壹账通智能科技有限公司 Service calling method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704521A (en) * 2019-08-30 2020-01-17 深圳壹账通智能科技有限公司 Interface data access method and system
CN111010438A (en) * 2019-12-13 2020-04-14 北京达佳互联信息技术有限公司 Remote procedure calling method, device, server and storage medium
CN111355800A (en) * 2020-02-28 2020-06-30 中国建设银行股份有限公司 Service processing method, device, equipment and storage medium
CN111722947A (en) * 2020-06-28 2020-09-29 深圳壹账通智能科技有限公司 Service calling method and system

Also Published As

Publication number Publication date
CN114257635A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN111722947A (en) Service calling method and system
CN110780870B (en) Service execution method, device, equipment and storage medium
CN109213770B (en) Data processing method, system, computer device and storage medium
EP3688708A1 (en) Computerized transaction management module for blockchain networks
CN114257635B (en) Service calling method, system, computer device, storage medium and program product
CN113467855A (en) Webpage request processing method and device, electronic equipment and storage medium
CN113779949A (en) Report generation method, report generation device, electronic equipment, storage medium and report generation system
CN116795913A (en) Data export method, data import method and data export import system
CN116010016A (en) Method, device, electronic equipment and medium for switching abnormal languages of service by system
CN112732742B (en) Query page creating method and device, computer equipment and storage medium
CN112650600B (en) Method, device and computer equipment for pushing message content
CN110888901B (en) System management method, device, computer equipment and storage medium
US20210141791A1 (en) Method and system for generating a hybrid data model
CN109460230B (en) Method and system for multiplexing transmission value and service logic between pages
CN113744050A (en) Network loan approval method, device and system
CN113312075A (en) Configuration information issuing method and device, storage medium and processor
CN110196877B (en) Data display method, device, computer equipment and storage medium
WO2020215542A1 (en) Information notification method and device, computer apparatus, and storage medium
CN111159311A (en) Data mapping integration method, device, equipment and storage medium
CN112231377A (en) Data mapping method, system, device, server and storage medium
CN117436889A (en) Resource processing method, device, computer equipment and storage medium
CN116860403A (en) Asynchronous task generating method and asynchronous task processing method
CN117035855A (en) Resource management method, apparatus, device, storage medium, and program product
CN117193978A (en) Task scheduling method, device, equipment and storage medium
CN116846997A (en) Message processing method, device, computer equipment, storage medium and program product

Legal Events

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