CN109842620B - Service publishing method and device - Google Patents

Service publishing method and device Download PDF

Info

Publication number
CN109842620B
CN109842620B CN201910053445.9A CN201910053445A CN109842620B CN 109842620 B CN109842620 B CN 109842620B CN 201910053445 A CN201910053445 A CN 201910053445A CN 109842620 B CN109842620 B CN 109842620B
Authority
CN
China
Prior art keywords
service
template
platform
target
publishing
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
CN201910053445.9A
Other languages
Chinese (zh)
Other versions
CN109842620A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910053445.9A priority Critical patent/CN109842620B/en
Publication of CN109842620A publication Critical patent/CN109842620A/en
Application granted granted Critical
Publication of CN109842620B publication Critical patent/CN109842620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a service publishing method and device, relates to the field of communication, and can automatically complete protocol conversion work between a capability sharing platform and a service capability publishing system, improve service capability publishing efficiency and reduce manual configuration cost. The method comprises the following steps: the service sharing platform determines a corresponding target service publishing platform according to the service request of the terminal; sending a first service template corresponding to a target service publishing platform to the target service publishing platform; acquiring a second service template; the second service template is a service template generated after the target service publishing platform writes the service parameters into the first service template; the second service template is authenticated to generate a third service template; carrying out protocol conversion on the third service template to generate a fourth service template; and sending the fourth service template to the terminal so that the terminal analyzes the fourth service template to obtain the service parameters. For service distribution.

Description

Service publishing method and device
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for service publishing.
Background
The capability sharing platform is used for centralizing the service capabilities (such as balance inquiry, package handling and the like) of each service capability issuing system and providing unified external services. The capability sharing platform is connected with a plurality of service capability issuing systems in a butt joint mode, the capability of each service capability issuing system is determined, and when a service request of a user is received, the service capability required by the user is obtained from the corresponding service capability issuing system.
In the working process of the capability sharing platform, the capability sharing platform needs to establish connection with a plurality of service capability publishing systems. Since the protocols of the respective service capability issuing systems are not identical. Therefore, when the capability sharing platform enters a service from the service capability publishing system, a worker is required to convert the protocol of the service capability publishing system into a protocol corresponding to the capability sharing platform. This process is time consuming and incurs high manual configuration costs.
Disclosure of Invention
The embodiment of the application provides a service publishing method and device, which can automatically complete protocol conversion work between a capability sharing platform and a service capability publishing system, improve the connection efficiency between the capability sharing platform and the service capability publishing system, and reduce the manual configuration cost.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a service publishing method, including: determining a corresponding target service release platform according to a service request of a terminal; writing the service request into a first preset template corresponding to the target service publishing platform to generate a first service template, and sending the first service template to the target service publishing platform; acquiring a second service template; the second service template is a template generated by the target service publishing platform writing the service parameters corresponding to the service request into a second preset template corresponding to the service publishing platform; writing authentication information into the second service template to generate a third service template; performing protocol conversion on the third service template to generate a fourth service template; and sending the fourth service template to the terminal so that the terminal analyzes the fourth service template to obtain the service parameters.
In a second aspect, the present application provides a service publishing apparatus, including: the processing module is used for determining a corresponding target service publishing platform according to the service request of the terminal; the sending module is used for writing the service request into a first preset template corresponding to the target service publishing platform to generate a first service template and sending the first service template to the target service publishing platform; the acquisition module is used for acquiring a second service template; the second service template is a template generated by the target service publishing platform writing the service parameters corresponding to the service request into a second preset template corresponding to the service publishing platform; the processing module is further configured to write authentication information in the second service template to generate a third service template; the processing module is further configured to perform protocol conversion on the third service template to generate a fourth service template; the sending module is further configured to send the fourth service template to the terminal, so that the terminal analyzes the fourth service template to obtain the service parameter.
In a third aspect, the present application provides a service publishing device, including: a processor, a communication interface, and a memory; the memory is configured to store one or more programs, where the one or more programs include computer executable instructions, and when the service distribution apparatus runs, the processor executes the computer executable instructions stored in the memory, so as to enable the service distribution apparatus to execute the service distribution method according to the first aspect and any implementation manner of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the service publishing method according to the first aspect and any implementation manner thereof.
In a fifth aspect, the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the service publishing method according to the first aspect and any implementation manner thereof.
The service publishing method provided by the embodiment of the application determines a corresponding target service publishing platform according to a service request of a terminal; writing the service request into a first preset template corresponding to the target service publishing platform to generate a first service template, and sending the first service template to the target service publishing platform; acquiring a second service template; the second service template is a template generated by the target service publishing platform writing the service parameters corresponding to the service request into a second preset template corresponding to the service publishing platform; writing authentication information into the second service template to generate a third service template; performing protocol conversion on the third service template to generate a fourth service template; and sending the fourth service template to the terminal so that the terminal analyzes the fourth service template to obtain the service parameters. The method can automatically complete the protocol conversion work between the capability sharing platform and the service capability publishing system, improve the service capability publishing efficiency and reduce the manual configuration cost.
Drawings
Fig. 1 is a system architecture diagram of a service system according to an embodiment of the present application;
fig. 2 is a flowchart of a service publishing method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a service publishing device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another service issuing device according to an embodiment of the present application.
Detailed Description
The service publishing method and apparatus provided in the present application will be described in detail below with reference to the accompanying drawings.
The terms "first" and "second", etc. in the description and drawings of the present application are used for distinguishing between different objects and not for describing a particular order of the objects.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
The service publishing method provided by the embodiment of the application is applied to the service system 100 shown in fig. 1. The service system 100 includes at least one terminal 101, at least one service publishing platform 102, and a service sharing platform 103.
The terminal 101 is configured to send a service request (for example, services such as balance inquiry, package inquiry handling, number inquiry, identity authentication, and the like) to the service sharing platform 103, so that the service sharing platform 103 calls a corresponding service parameter to the corresponding service publishing platform 102 according to the service request of the terminal 101.
The service publishing platform 102 is configured to query a corresponding service parameter storage location according to a service request of the terminal, and send the service parameter to the service sharing platform 103. A service publishing platform supports one or more service requests. There is at least one service publishing platform in the service system 100, and different service publishing platforms can publish different service parameters. For example, the service system 100 includes three service publishing platforms 102, one service publishing platform 102 is responsible for performing balance inquiry, one service publishing platform 102 is responsible for package inquiry and handling, and one service publishing platform 102 is responsible for number inquiry and identity authentication.
The service sharing platform 103 is used for establishing connection with the terminal 101 and the service publishing platform 102. The service sharing platform 103 may be wirelessly connected to the terminal 101, or the service sharing platform 103 is set in a network node of an operator, and the service sharing platform 103 is connected to the terminal 101 through the operator network. The service sharing platform 103 interfaces with the service publishing platform 102 through a physical or virtual interface. Illustratively, each interface is connected to one service publishing platform 102, and a mapping relationship between the service publishing platform 102 and the interface is established. When the service sharing platform 103 receives a service request of a terminal, the service request can be forwarded from the interface to the service publishing platform 102 after the service publishing platform 102 is determined according to the mapping relationship between the service publishing platform 102 and the interface.
The service publishing method provided by the embodiment of the application is applied to the service publishing system shown in fig. 1, and the service publishing method is executed by a service sharing platform. As shown in fig. 2, the method includes S201-S205:
s201, determining a corresponding target service publishing platform according to the service request of the terminal.
The service request of the terminal is a request for acquiring the required service parameters by the terminal, and the target service publishing platform is a service publishing platform capable of providing the service parameters required by the terminal.
Specifically, when the terminal needs to perform service query or service transaction, the terminal generates a corresponding service request and sends the service request to the service sharing platform. The service sharing platform stores service publishing platforms corresponding to different types of service requests in advance. And when the service sharing platform receives the terminal service request, determining a target service release platform corresponding to the service request.
In an implementation manner of the present application, before a terminal sends a request service, the target service publishing platform needs to be registered in the service sharing platform. A first preset template and a second preset template are preset in the service sharing platform. The first preset template is a service request template and is used for enabling the capacity sharing platform to send a service request to the target service publishing platform according to the first preset template. The second preset template is a service publishing template and is used for enabling the service publishing platform to publish the service. When the service publishing platform is registered in the service sharing platform, the service sharing platform automatically acquires the public attribute parameters of the service publishing platform, wherein the public attribute parameters comprise: the service issuing address root directory, the joint debugging address root directory and the protocol type.
S202, writing the service request into a first preset template corresponding to the target service publishing platform to generate a first service template, and sending the first service template to the target service publishing platform.
Specifically, the service sharing platform and the service publishing platform are connected through an interface (a virtual interface or a physical interface), and different service publishing platforms may use different access protocols (for example, XML, json or webservice, soap, and the like) to connect with the service sharing platform and perform data transmission. In the application, different service templates are set for service publishing platforms of different protocols in advance. And the corresponding service publishing platform and the service sharing platform carry out service interaction through the service template of the corresponding protocol.
Illustratively, the first preset template of the json format is:
Figure BDA0001951617510000041
Figure BDA0001951617510000051
s203, acquiring a second service template.
The second service template is a template generated by the target service publishing platform writing the service parameters corresponding to the service request into a second preset template corresponding to the service publishing platform.
Specifically, after the target service publishing platform receives the first service template, the first service template is analyzed. And acquiring the service request in the first service template. And acquiring corresponding service parameters at corresponding positions according to the service request. And acquiring a service release template. And writing the service parameters into the corresponding service release template to generate a second service template. And sending the second service template to the service sharing platform.
In an implementation manner of this step, the method for writing the service parameter into the second preset template by the service publishing platform includes: and determining the service parameters and directly writing the service parameters into the access template. And writing the service parameters into an excel service parameter template, and importing the excel service parameter template into the service request template. And acquiring a message containing the service parameters, regulating the contents of the message, such as service parameter constraint, length description and the like, to be in accordance with the standard required by the second preset template, and writing the contents into the second preset template.
An exemplary excel service parameter template is:
Figure BDA0001951617510000052
the second preset template is as follows:
Figure BDA0001951617510000053
the second service template is:
Figure BDA0001951617510000054
Figure BDA0001951617510000061
and S204, writing authentication information into the second service template to generate a third service template.
Specifically, a platform identifier, a key, and a token allocated to the target service publishing platform are obtained.
And writing the platform identification, the key and the token into the second service template to generate a third service template.
Exemplary, specifically: and the capability sharing platform automatically distributes APP-ID and APP-SECRET to the service capability publishing system after the service capability publishing system completes registration, generates token and completes authentication of the capability sharing platform. And encapsulating the APP-ID, the APP-SECRET, the message timestamp and the token and writing the encapsulated APP-ID, the APP-SECRET, the message timestamp and the token into a SERVICE request template 'SERVICE _ HEAD' part in the second template to generate 'SERVICE _ NEW _ HEAD'. And placing the SERVICE parameter in the SERVICE _ BODY at the API name _ REQ sub-node to generate the SERVICE _ NEW _ BODY. And encapsulating the SERVICE _ NEW _ HEAD and the SERVICE _ NEW _ BODY to generate a SERVICE request template in a third template. And placing the SERVICE response part in the SERVICE response template in the second template, wherein the SERVICE response part is in the SERVICE _ BODY, in the API name _ RSP, writing authentication information in the second SERVICE template, and generating a third SERVICE template.
Illustratively, the third service template is:
Figure BDA0001951617510000062
Figure BDA0001951617510000071
and S205, performing protocol conversion on the third service template to generate a fourth service template.
Specifically, the capability sharing platform determines whether the protocol of the service publishing platform is the same as the protocol of the terminal. If the two templates are the same, the protocol conversion may not be executed, and the fourth service template and the third service template are the same template. And if the protocol of the service publishing platform is different from the protocol of the terminal, performing protocol conversion, and converting the protocol in the third service template into the protocol of the terminal.
Illustratively, the service publishing platform uses a json protocol, and the terminal uses an XML protocol, then the protocol conversion process is as follows:
before conversion: the third service template is the same as the third service template in S203.
The converted fourth protocol template is:
Figure BDA0001951617510000072
s206, sending the fourth service template to the terminal so that the terminal analyzes the fourth service template to obtain the service parameters.
Specifically, the terminal parses a fourth service template to obtain a parameter 1 in the fourth service template: AAA. Parameter 2: BBB. Parameter 3: CCC. The service request is completed.
The service publishing method provided by the embodiment of the application determines the corresponding target service publishing platform according to the service request of the terminal. And writing the service request into a first preset template corresponding to the target service publishing platform to generate a first service template, and sending the first service template to the target service publishing platform. And acquiring a second service template. The second service template is a template generated by the target service publishing platform writing the service parameters corresponding to the service request into a second preset template corresponding to the service publishing platform. And writing authentication information into the second service template to generate a third service template. And carrying out protocol conversion on the third service template to generate a fourth service template. And sending the fourth service template to the terminal so that the terminal analyzes the fourth service template to obtain the service parameters. The method can automatically complete the protocol conversion work between the capability sharing platform and the service capability publishing system, improve the service capability publishing efficiency and reduce the manual configuration cost.
In one implementation of the present embodiment. After the third service template is subjected to protocol conversion to generate a fourth service template, public service parameter supplementation can also be carried out. The method specifically comprises the following steps: and sending the fourth service template to the target service publishing platform. And acquiring a fifth service template, wherein the fifth service template is a template generated after the target service publishing platform writes the public service parameters into the fourth service template. The common service parameters include: the service capability issuing system issues the service to the target service issuing platform system according to the service capability information of the target service issuing platform system. And establishing a mapping relation between the target service publishing platform and the fifth service template, so that when other terminals with the same protocol as the terminal call the service parameters of the target service publishing platform subsequently, the target service publishing platform directly modifies the service parameters in the fifth service template into the service parameters required by the other terminals and publishes the service. According to the implementation mode, the service platform only needs to convert the template when service release is carried out for the first time. And after the first template conversion is completed, establishing a mapping relation between the terminal protocol and the service release platform protocol. And when other terminals with the same protocol with the terminal call the service parameters of the target service publishing platform subsequently, the target service publishing platform directly modifies the service parameters in the fifth service template into the service parameters required by the other terminals and publishes the service. And the steps of template conversion, authentication, public parameter writing and the like are not required to be carried out every time. Thereby greatly reducing the operating pressure of the system.
Illustratively, the fifth service template is:
Figure BDA0001951617510000081
Figure BDA0001951617510000091
before the mapping relationship between the target service publishing platform and the fifth service template is established, the service system may further perform a service invocation test, specifically: and the service sharing platform generates a test service calling address and determines a first test service parameter corresponding to the test service calling address. And sending the test service calling address to the target service publishing platform so that the target service publishing platform provides a second test service parameter according to the test service calling address, and modifying the service parameter in the fifth service template into the second test service parameter to generate a sixth service template. And acquiring the sixth service template, and analyzing the sixth service template to acquire the second test service parameter. And if the first test service parameter is consistent with the second test service parameter, establishing a mapping relation between the target service publishing platform and the fifth service template. Through the automatic test, whether the service parameters obtained by the fifth template are the required service parameters of the terminal can be determined. The situation of service distribution errors caused by system working errors and the like is avoided.
In the embodiment of the present application, the signal detection apparatus may be divided into the functional modules or the functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
As shown in fig. 3, the present application provides a service publishing apparatus, which is applied to a service system, where the service system includes at least one terminal, at least one service publishing platform, and a service sharing platform. Wherein, the service sharing platform is connected with at least one service publishing platform and at least one terminal. The device is used for executing the service publishing method, and comprises the following steps:
the processing module 302 is configured to determine a corresponding target service publishing platform according to the service request of the terminal.
A sending module 303, configured to write the service request into a first preset template corresponding to the target service publishing platform to generate a first service template, and send the first service template to the target service publishing platform.
An obtaining module 301, configured to obtain the second service template. The second service template is a template generated by the target service publishing platform writing the service parameters corresponding to the service request into a second preset template corresponding to the service publishing platform.
The processing module 302 is further configured to write authentication information in the second service template, and generate a third service template.
The processing module 302 is further configured to perform protocol conversion on the third service template to generate a fourth service template.
The sending module 303 is further configured to send the fourth service template to the terminal, so that the terminal analyzes the fourth service template to obtain the service parameter.
Optionally, the apparatus further comprises: the obtaining module 301 is further configured to obtain a platform identifier, a key, and a token that are allocated to the target service publishing platform. The processing module 302 is further configured to write the platform identifier, the key, and the token into the second service template, so as to generate a third service template.
Optionally, the apparatus further comprises: the sending module 303 is further configured to send the fourth service template to the target service publishing platform. The obtaining module 301 is further configured to obtain a fifth service template, where the fifth service template is a template generated after the target service publishing platform writes a common service parameter into the fourth service template. The common service parameters include: the service capability issuing system issues the service to the target service issuing platform system according to the service capability information of the target service issuing platform system. The processing module 302 is further configured to establish a mapping relationship between the target service publishing platform and the fifth service template, so that when other terminals having the same protocol as the terminal subsequently invoke the service parameters of the target service publishing platform, the target service publishing platform directly modifies the service parameters in the fifth service template to the service parameters required by the other terminals and publishes the service.
Optionally, the apparatus further comprises: the processing module 302 is further configured to generate a test service invocation address, and determine a first test service parameter corresponding to the test service invocation address. The sending module 303 is further configured to send the test service invocation address to the target service publishing platform, so that the target service publishing platform provides a second test service parameter according to the test service invocation address, and modifies the service parameter in the fifth service template into the second test service parameter to generate a sixth service template. The obtaining module 301 is further configured to obtain the sixth service template, and analyze the sixth service template to obtain the second test service parameter. The processing module 302 is further configured to determine that the first testing service parameter is consistent with the second testing service parameter. And establishing a mapping relation between the target service publishing platform and the fifth service template.
Fig. 4 shows a schematic diagram of another possible structure of the service issuing device involved in the above embodiment. The service issuing device comprises: a processor 402 and a communication interface 403. The processor 402 is configured to control and manage the actions of the service announcement device, for example, to perform the steps performed by the processing module 302 described above, and/or to perform other processes for the techniques described herein. The communication interface 403 is used to support communication between the service distribution apparatus and other network entities. For example, the steps performed by the acquisition module 301 and the sending module 302 described above, and/or other processes for performing the techniques described herein, are performed. The service issuing device may further comprise a memory 401 and a bus 404, the memory 401 being used for storing program codes and data of the service issuing device.
The memory 401 may be a memory in a service issuing device, etc., and the memory may include a volatile memory, such as a random access memory. The memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk. The memory may also comprise a combination of memories of the kind described above.
The processor 402 may be any means that can implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein. The processor may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The bus 404 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 404 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the service publishing method described in the above method embodiments.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is enabled to execute the service publishing method in the method flow shown in the above method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a register, a hard disk, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A service publishing method is characterized in that the method is applied to a service system, and the service system comprises at least one terminal, at least one service publishing platform and a service sharing platform; the service sharing platform is connected with at least one service publishing platform and at least one terminal; the method is performed by the service sharing platform; the method comprises the following steps:
determining a corresponding target service release platform according to a service request of a terminal;
writing the service request into a first preset template corresponding to the target service publishing platform to generate a first service template, and sending the first service template to the target service publishing platform;
acquiring a second service template; the second service template is a template generated by the target service publishing platform writing the service parameters corresponding to the service request into a second preset template corresponding to the service publishing platform;
writing authentication information into the second service template to generate a third service template;
performing protocol conversion on the third service template to generate a fourth service template;
and sending the fourth service template to the terminal so that the terminal analyzes the fourth service template to obtain the service parameters.
2. The service publishing method according to claim 1, wherein the authentication information is written in the second service template to generate a third service template; the method comprises the following steps:
acquiring a platform identifier, a key and a token distributed for the target service issuing platform;
and writing the platform identification, the key and the token into the second service template to generate a third service template.
3. The service publishing method according to claim 1, wherein after performing protocol conversion on the third service template to generate a fourth service template, the method further comprises:
sending the fourth service template to the target service publishing platform;
acquiring a fifth service template, wherein the fifth service template is a template generated after the target service publishing platform writes the public service parameters into the fourth service template; the common service parameters include: the routing direction of the service released by the service system, the target service releasing platform system identification and the target service releasing platform type;
and establishing a mapping relation between the target service publishing platform and the fifth service template, so that when other terminals with the same protocol as the terminal call the service parameters of the target service publishing platform subsequently, the target service publishing platform directly modifies the service parameters in the fifth service template into the service parameters required by the other terminals and publishes the service.
4. The service publishing method according to claim 3, wherein before the establishing of the mapping relationship between the target service publishing platform and the fifth service template, the method further comprises:
generating a test service calling address, and determining a first test service parameter corresponding to the test service calling address;
sending the test service calling address to the target service publishing platform so that the target service publishing platform provides a second test service parameter according to the test service calling address, and modifying the service parameter in the fifth service template into the second test service parameter to generate a sixth service template;
acquiring the sixth service template, and analyzing the sixth service template to acquire the second test service parameter;
if the first test service parameter is consistent with the second test service parameter; and establishing a mapping relation between the target service publishing platform and the fifth service template.
5. A service release device is characterized in that the device is applied to a service system, wherein the service system comprises at least one terminal, at least one service release platform and a service sharing platform; the service sharing platform is connected with at least one service publishing platform and at least one terminal; the service publishing device is applied to the service sharing platform, and the device comprises:
the processing module is used for determining a corresponding target service publishing platform according to the service request of the terminal;
the sending module is used for writing the service request into a first preset template corresponding to the target service publishing platform to generate a first service template and sending the first service template to the target service publishing platform;
the acquisition module is used for acquiring a second service template; the second service template is a template generated by the target service publishing platform writing the service parameters corresponding to the service request into a second preset template corresponding to the service publishing platform;
the processing module is further configured to write authentication information in the second service template to generate a third service template;
the processing module is further configured to perform protocol conversion on the third service template to generate a fourth service template;
the sending module is further configured to send the fourth service template to the terminal, so that the terminal analyzes the fourth service template to obtain the service parameter.
6. The service distribution apparatus according to claim 5, wherein said apparatus further comprises:
the acquisition module is further configured to acquire a platform identifier, a key, and a token that are allocated to the target service publishing platform;
the processing module is further configured to write the platform identifier, the key, and the token into the second service template, and generate a third service template.
7. The service distribution apparatus according to claim 5, wherein said apparatus further comprises:
the sending module is further configured to send the fourth service template to the target service publishing platform;
the obtaining module is further configured to obtain a fifth service template, where the fifth service template is a template generated after the target service publishing platform writes a common service parameter into the fourth service template; the common service parameters include: the routing direction of the service released by the service system, the target service releasing platform system identification and the target service releasing platform type;
the processing module is further configured to establish a mapping relationship between the target service publishing platform and the fifth service template, so that when other terminals having the same protocol as the terminal subsequently call the service parameters of the target service publishing platform, the target service publishing platform directly modifies the service parameters in the fifth service template to the service parameters required by the other terminals and publishes the service.
8. The service distribution apparatus according to claim 7, wherein said apparatus further comprises:
the processing module is also used for generating a test service calling address and determining a first test service parameter corresponding to the test service calling address;
the sending module is further configured to send the test service invocation address to the target service publishing platform, so that the target service publishing platform provides a second test service parameter according to the test service invocation address, and modifies a service parameter in the fifth service template into the second test service parameter to generate a sixth service template;
the acquisition module is further configured to acquire the sixth service template and analyze the sixth service template to acquire the second test service parameter;
the processing module is further configured to determine whether the first test service parameter is consistent with the second test service parameter; and establishing a mapping relation between the target service publishing platform and the fifth service template.
9. A service delivery apparatus, characterized in that the service delivery apparatus comprises: a processor, a communication interface, and a memory; wherein the memory is used for storing one or more programs, the one or more programs including computer-executable instructions, and when the service issuing device runs, the processor executes the computer-executable instructions stored in the memory to make the service issuing device execute the service issuing method according to any one of claims 1 to 4.
10. A computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the service announcement method of any one of claims 1 to 4.
CN201910053445.9A 2019-01-21 2019-01-21 Service publishing method and device Active CN109842620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910053445.9A CN109842620B (en) 2019-01-21 2019-01-21 Service publishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910053445.9A CN109842620B (en) 2019-01-21 2019-01-21 Service publishing method and device

Publications (2)

Publication Number Publication Date
CN109842620A CN109842620A (en) 2019-06-04
CN109842620B true CN109842620B (en) 2021-10-19

Family

ID=66883951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910053445.9A Active CN109842620B (en) 2019-01-21 2019-01-21 Service publishing method and device

Country Status (1)

Country Link
CN (1) CN109842620B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602056B (en) * 2019-08-21 2022-08-30 厦门网宿有限公司 Service parameter transmission method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060561A (en) * 2006-04-18 2007-10-24 胡乐乐 A method and system for providing the telecommunication value-added service
CN101557297A (en) * 2009-05-14 2009-10-14 中兴通讯股份有限公司 Internet-based open telecommunication service generation system and method thereof
CN103065256A (en) * 2004-12-23 2013-04-24 华为技术有限公司 Publishing system and publishing method of advertising business information
CN103229485A (en) * 2012-11-12 2013-07-31 华为技术有限公司 Realization method and platform for service capability sharing
CN109088881A (en) * 2018-09-12 2018-12-25 杭州趣链科技有限公司 A kind of shared platform chain and method for interchanging data for realizing cross-platform data exchange

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060274784A1 (en) * 2005-06-02 2006-12-07 Mediatek Incorporation Methods and systems for cross-platform message exchange
CN100461683C (en) * 2007-01-18 2009-02-11 华为技术有限公司 Universal business system and device, network access system and business processing method
CN101677319A (en) * 2008-09-19 2010-03-24 华为技术有限公司 Method, apparatus and system for service access on the basis of XMPP protocol
CN102064990A (en) * 2011-02-22 2011-05-18 深圳市同洲电子股份有限公司 Service network access platform and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065256A (en) * 2004-12-23 2013-04-24 华为技术有限公司 Publishing system and publishing method of advertising business information
CN101060561A (en) * 2006-04-18 2007-10-24 胡乐乐 A method and system for providing the telecommunication value-added service
CN101557297A (en) * 2009-05-14 2009-10-14 中兴通讯股份有限公司 Internet-based open telecommunication service generation system and method thereof
CN103229485A (en) * 2012-11-12 2013-07-31 华为技术有限公司 Realization method and platform for service capability sharing
CN109088881A (en) * 2018-09-12 2018-12-25 杭州趣链科技有限公司 A kind of shared platform chain and method for interchanging data for realizing cross-platform data exchange

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于TMF规则的能力共享平台设计实现;侯青军;《中国新通信》;20180205;全文 *

Also Published As

Publication number Publication date
CN109842620A (en) 2019-06-04

Similar Documents

Publication Publication Date Title
CN109995713B (en) Service processing method in micro-service framework and related equipment
CN111163129B (en) Resource processing method and device based on cross-link network
CN109474578B (en) Message checking method, device, computer equipment and storage medium
WO2018201978A1 (en) Interface call data processing method, apparatus, computer device and storage medium
CN110601880B (en) Cloud platform, service processing method, command interface and computer equipment
CN112965700B (en) Routing-based micro-service processing method and device, computer equipment and medium
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
CN109857404B (en) SDK interface packaging method and device, storage medium and electronic equipment
CN112511591B (en) Method, device, equipment and medium for realizing hospital interface data interaction
CN111596927B (en) Service deployment method and device and electronic equipment
WO2016107120A1 (en) Application programming interface calling method and device
CN109062906B (en) Translation method and device for program language resources
CN111966390A (en) Project construction method, system, terminal device and storage medium
CN108810835B (en) Method and device for associating one number with multiple terminals, terminal and storage medium
CN109842620B (en) Service publishing method and device
CN107908565B (en) Test method and test equipment
CN110958278B (en) API gateway-based data processing method and system and API gateway
CN110022332B (en) Hypertext transfer security protocol proxy method, device, equipment and medium
CN112738181B (en) Method, device and server for cluster external IP access
CN112052267B (en) Data query method, equipment, server and storage medium
CN114885024A (en) Routing method, device, equipment and medium of application example
CN110753082B (en) Service calling method and terminal equipment
CN114064176A (en) View interaction method and device, electronic equipment and computer readable medium
CN111177660B (en) Permission verification method for open platform script code
CN112650710A (en) Data migration sending method and device, storage medium and electronic device

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