CN109525539B - Capability calling method, call receipt method, information processing method and system - Google Patents

Capability calling method, call receipt method, information processing method and system Download PDF

Info

Publication number
CN109525539B
CN109525539B CN201710854681.1A CN201710854681A CN109525539B CN 109525539 B CN109525539 B CN 109525539B CN 201710854681 A CN201710854681 A CN 201710854681A CN 109525539 B CN109525539 B CN 109525539B
Authority
CN
China
Prior art keywords
capability
information
set format
identification information
receipt
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
CN201710854681.1A
Other languages
Chinese (zh)
Other versions
CN109525539A (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 Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology 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 Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710854681.1A priority Critical patent/CN109525539B/en
Publication of CN109525539A publication Critical patent/CN109525539A/en
Application granted granted Critical
Publication of CN109525539B publication Critical patent/CN109525539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/03Protocol definition or specification 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A ability call method, call receipt method, information processing method and system, encapsulate the standard protocol that is presumed in the open system of ability, in the information down run course, can change the ability based on standard protocol that the upper application system issues call request of ability that is presumed, can be based on other agreement, ability call request that can be received by the relevant ability gateway, and forward to the relevant ability gateway; in the information uplink process, the receipt information or the information to be sent in any set format reported by any capability gateway can be converted into the information based on the set standard protocol and forwarded to the corresponding upper application system. Namely, the opening of the basic communication capacity is integrated and simplified, a unified capacity opening platform provided with a simple and easy-to-use calling interface is provided, and the development difficulty of an upper application system calling the communication capacity is reduced.

Description

Capability calling method, call receipt method, information processing method and system
Technical Field
The invention relates to the technical field of communication, in particular to a capability calling method, a call receipt method, an information processing method and an information processing system.
Background
At present, many internet enterprises establish their own open platforms, and open their own communication capabilities to users, such as App Engine of Google, F8 platform of Facebook, Orange Partner platform of france telecommunication, and ASSP platform and TOP platform of acriba. On the other hand, telecom operators also build capability openness gateways in various forms, such as short message gateways, multimedia message gateways and the like, which can be used by application systems on the enterprise side to call the communication capability of the capability openness gateway.
However, in the process of invention, the inventor of the present invention finds that, as mobile communication technology develops and internet open platform plays more and more important roles, the traditional basic communication capability of telecommunication operators is opened with more and more impact. The reason is that, from the capability opening practice of current domestic mainstream telecom operators, the opening of each basic communication capability is basically implemented by means of a respective independent capability opening gateway, which results in higher coupling degree between a capability calling interface and a bottom layer, and further results in higher development difficulty of an application system at an enterprise side and higher requirements on developers.
Disclosure of Invention
The embodiment of the invention provides a capability calling method, a call receipt method, an information processing method and a system, which are used for solving the problem that the coupling degree of a capability calling interface and a bottom layer is higher due to the fact that each communication capability is opened based on an independent gateway, and further the development difficulty of an application system for calling each communication capability is higher in the prior art.
The embodiment of the invention provides a capacity calling method, which is applied to a capacity open system, wherein a first communication interface of the capacity open system is in communication connection with an upper application system, a second communication interface of the capacity open system is in communication connection with a capacity gateway, and the upper application system calls the communication capacity of the capacity gateway through the capacity open system, and the method comprises the following steps:
receiving a capability calling request in a first set format sent by any upper application system, wherein the capability calling request in the first set format comprises to-be-called capability identification information and a data object;
according to the data object, determining the identification information of any upper application system, the identification information of the target lower terminal and the communication content information;
determining the to-be-called capability and a target capability gateway corresponding to the to-be-called capability according to the to-be-called capability identification information, and generating a capability calling request in a second set format, which can be received by the target capability gateway, wherein the capability calling request in the second set format carries identification information of any one upper application system, identification information of the target lower terminal and the communication content information;
and sending the capability calling request with the second set format to the target capability gateway.
Optionally, after receiving the capability invocation request in the first set format, before determining, according to the data object, the identification information of the any upper application system, the identification information of the target lower terminal, and the communication content information, the method further includes:
and converting the data object into a data object with a set data structure.
Optionally, after receiving the capability invocation request in the first set format, before determining, according to the data object, the identification information of the any upper application system, the identification information of the target lower terminal, and the communication content information, the method further includes:
adding the data object to a to-be-processed request queue corresponding to the to-be-called capability according to the to-be-called capability identification information;
determining the identification information of any upper application system, the identification information of the target lower terminal and the communication content information according to the data object, specifically comprising:
acquiring the data object from the request queue to be processed;
and analyzing the data object based on the set processing logic corresponding to the to-be-called capability to acquire the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
Optionally, after generating the capability call request in the second set format, before sending the capability call request in the second set format to the target capability gateway, the method further includes:
adding the capability calling request with the second set format to a request queue to be sent corresponding to the capability to be called;
sending the capability calling request with the second set format to the target capability gateway, specifically including:
acquiring the capacity calling request in the second set format from the request queue to be sent;
and sending the capability calling request with the second set format to the target capability gateway so that the target capability gateway executes communication capability according to the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
The embodiment of the invention also provides a method for calling receipt, which is applied to a capacity open system, wherein a first communication interface of the capacity open system is in communication connection with an upper application system, a second communication interface of the capacity open system is in communication connection with a capacity gateway, and the upper application system calls the communication capacity of the capacity gateway through the capacity open system, and the method comprises the following steps:
receiving receipt information in a second set format sent by any one capability gateway, wherein the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request in the second set format by any one of the capability gateways according to calling request identification information carried in the capability calling request in the second set format received in advance;
determining the calling request identification information corresponding to the receipt identification information and the call-back address information corresponding to the pre-stored calling request identification information;
and converting the receipt information in the second set format into the receipt information in the first set format which can be sent by the first communication interface, and sending the receipt information in the first set format to an upper application system which issues a capability call request in the second set format according to the callback address information.
The embodiment of the invention also provides another method for calling receipt, which is applied to a capability open system, wherein a first communication interface of the capability open system is in communication connection with an upper application system, a second communication interface of the capability open system is in communication connection with a capability gateway, and the upper application system calls the communication capability of the capability gateway through the capability open system, and the method comprises the following steps:
receiving receipt information in a second set format sent by any one capability gateway, wherein the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request by any one of the capability gateways according to the calling request identification information of the capability calling request received in advance;
converting the receipt information in the second set format into receipt information in a first set format which can be transmitted through the first communication interface, and correspondingly storing the receipt information in the first set format and the receipt identification information;
receiving a receipt acquiring request in a first set format sent by an upper application system, wherein the receipt acquiring request in the first set format carries receipt request identification information, and the receipt request identification information is configured to the receipt acquiring request in the first set format by the upper application system according to call request identification information of the call request returned by a capability open system;
and acquiring the receipt information in the first set format corresponding to the receipt acquisition request in the first set format according to the pre-stored corresponding relationship among the receipt request identification information, the receipt identification information and the call request identification information, and returning the receipt information in the first set format to the upper application system.
The embodiment of the invention also provides an information processing method, which is applied to a capacity open system, wherein a first communication interface of the capacity open system is in communication connection with an upper application system, a second communication interface of the capacity open system is in communication connection with a capacity gateway, and the capacity gateway sends information to the upper application system through the capacity open system, and the method comprises the following steps:
receiving information to be sent in a first set format sent by any capacity gateway, wherein the information to be sent in the first set format carries identification information of a target upper application system;
converting the information to be transmitted in the first set format into information to be transmitted in a second set format which can be transmitted through the first communication interface;
and determining a target upper layer application system for receiving the information to be sent in the first set format according to the identification information of the target upper layer application system, and sending the information to be sent in the second set format to the target upper layer application system.
Optionally, after receiving information to be transmitted in a first set format sent by any capability gateway, before converting the information to be transmitted in the first set format into information to be transmitted in a second set format that can be transmitted through the first communication interface, the method further includes: performing set logic processing on the information to be sent in the first set format;
wherein, the logic processing for setting the information to be sent in the first setting format includes any one or more of the following:
determining that the identification information of the target upper application system belongs to a pre-stored legal user set;
filtering set keywords in the information to be sent in the first set format;
allocating identification information which can be used for uniquely identifying the information to be sent in the first set format to the information to be sent in the first set format;
and storing the information to be transmitted in the first set format.
Further optionally, after receiving information to be transmitted in a first set format sent by any capability gateway, before performing logic processing for setting the information to be transmitted in the first set format, the method further includes: adding the information to be sent in the first set format to an information queue to be processed corresponding to any one capability gateway; and/or the presence of a gas in the gas,
after the logic processing for setting the information to be transmitted in the first set format is performed, before converting the information to be transmitted in the first set format into the information to be transmitted in the second set format that can be transmitted through the first communication interface, the method further includes: and adding the information to be sent in the first set format to an information queue to be sent corresponding to any one capability gateway.
Accordingly, an embodiment of the present invention further provides a capability opening system, including a first interface unit, a processing unit, a converting unit, and a second interface unit, where the first interface unit is in communication connection with an upper application system, the second interface unit is in communication connection with a capability gateway, and the upper application system calls a communication capability of the capability gateway through the capability opening system, where:
the first interface unit is used for receiving a capability calling request in a first set format sent by any upper application system, wherein the capability calling request in the first set format comprises to-be-called capability identification information and a data object;
the processing unit is used for determining the identification information of any upper application system, the identification information of a target lower terminal and the communication content information according to the data object;
the conversion unit is configured to determine, according to the to-be-called capability identification information, a to-be-called capability and a target capability gateway corresponding to the to-be-called capability, and generate a capability calling request in a second set format that can be received by the target capability gateway, where the capability calling request in the second set format carries identification information of any one of the upper application systems, identification information of the target lower terminal, and the communication content information;
and the second interface unit is used for sending the capability calling request with the second set format to the target capability gateway.
Optionally, the first interface unit is further configured to, after receiving the capability call request in the first set format, convert the data object into a data object with a set data structure before the processing unit determines, according to the data object, the identification information of the any upper application system, the identification information of the target lower terminal, and the communication content information.
Optionally, the processing unit is further configured to add the data object to a to-be-processed request queue corresponding to the to-be-called capability according to the to-be-called capability identification information before determining the identification information of the any upper application system, the identification information of the target lower terminal, and the communication content information according to the data object;
the processing unit is specifically configured to obtain the data object from the to-be-processed request queue; and analyzing the data object based on the set processing logic corresponding to the to-be-called capability to acquire the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
Optionally, the converting unit is further configured to, after the capability calling request in the second set format is generated, add the capability calling request in the second set format to a to-be-sent request queue corresponding to the to-be-called capability before the second interface unit sends the capability calling request in the second set format to the target capability gateway;
the second interface unit is specifically configured to obtain the capability call request in the second set format from the request queue to be sent; and sending the capability calling request with the second set format to the target capability gateway so that the target capability gateway executes communication capability according to the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
The embodiment of the present invention further provides another capability opening system, which includes a first interface unit, a processing unit, a converting unit, and a second interface unit, where the first interface unit is in communication connection with an upper application system, the second interface unit is in communication connection with a capability gateway, and the upper application system calls a communication capability of the capability gateway through the capability opening system, where:
the second interface unit is configured to receive receipt information in a second set format sent by any one of the capability gateways, where the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request in the second set format by any one of the capability gateways according to calling request identification information carried in the capability calling request in the second set format received in advance;
the processing unit is used for determining the calling request identification information corresponding to the receipt identification information and the call-back address information corresponding to the pre-stored calling request identification information;
the conversion unit is used for converting the receipt information in the second set format into the receipt information in the first set format which can be sent by the first interface unit;
and the first interface unit is used for sending the receipt information in the first set format to an upper application system which issues a capability calling request in the second set format according to the callback address information.
The embodiment of the present invention further provides another capability opening system, which includes a first interface unit, a processing unit, a converting unit, and a second interface unit, where the first interface unit is in communication connection with an upper application system, the second interface unit is in communication connection with a capability gateway, and the upper application system calls a communication capability of the capability gateway through the capability opening system, where:
the second interface unit is configured to receive receipt information in a second set format sent by any one of the capability gateways, where the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request by any one of the capability gateways according to the calling request identification information of the capability calling request received in advance;
the conversion unit is used for converting the receipt information in the second set format into the receipt information in the first set format which can be transmitted through the first interface unit, and correspondingly storing the receipt information in the first set format and the receipt identification information;
the first interface unit is configured to receive a receipt acquiring request in a first set format sent by an upper application system, where the receipt acquiring request in the first set format carries receipt request identification information, and the receipt request identification information is configured to the receipt acquiring request in the first set format by the upper application system according to call request identification information of the call request returned by the capability open system;
the processing unit is used for acquiring the receipt information in the first set format corresponding to the receipt acquisition request in the first set format according to the corresponding relationship among the receipt request identification information, the receipt identification information and the call request identification information which are stored in advance;
the first interface unit is further configured to return the receipt information in the first set format to the upper application system.
The embodiment of the present invention further provides another capability opening system, which includes a first interface unit, a conversion unit, and a second interface unit, where the first interface unit is in communication connection with an upper application system, the second interface unit is in communication connection with a capability gateway, and the capability gateway sends information to the upper application system through the capability opening system, where:
the second interface unit is used for receiving information to be sent in a first set format sent by any one capability gateway, wherein the information to be sent in the first set format carries identification information of a target upper application system;
the conversion unit is used for converting the information to be transmitted in the first set format into the information to be transmitted in the second set format which can be transmitted through the first interface unit;
the first interface unit is configured to determine, according to the identification information of the target upper layer application system, a target upper layer application system for receiving the information to be sent in the first set format, and send the information to be sent in the second set format to the target upper layer application system.
Optionally, the capability openness system further includes a processing unit, configured to perform, after the second interface unit receives information to be sent in a first set format sent by any capability gateway, logic processing for setting the information to be sent in the first set format before the conversion unit converts the information to be sent in the first set format into information to be sent in a second set format that can be transmitted by the first interface unit;
the processing unit is configured to perform logic processing for setting the information to be sent in the first set format in any one or more of the following manners:
determining that the identification information of the target upper application system belongs to a pre-stored legal user set;
filtering set keywords in the information to be sent in the first set format;
allocating identification information which can be used for uniquely identifying the information to be sent in the first set format to the information to be sent in the first set format;
and storing the information to be transmitted in the first set format.
Further optionally, the processing unit is further configured to add, before performing the set logic processing on the to-be-transmitted information in the first set format, the to-be-transmitted information in the first set format to a to-be-processed information queue corresponding to the any capability gateway; and/or after the logic processing for setting the information to be sent in the first set format is performed, before the conversion unit converts the information to be sent in the first set format into the information to be sent in the second set format which can be transmitted through the first interface unit, the information to be sent in the first set format is added to the information queue to be sent corresponding to any capability gateway.
The invention has the following beneficial effects:
the embodiment of the invention provides a capacity calling method, a call receipt method, an information processing method and a system, wherein a set standard protocol is encapsulated in a capacity open system, so that a capacity calling request based on the set standard protocol issued by an upper application system can be converted into a capacity calling request based on other protocols and received by a related capacity gateway in an information downlink process, and the capacity calling request can be forwarded to the related capacity gateway; in the information uplink process, the receipt information or other information to be sent in any set format reported by any capability gateway can be converted into information based on the set standard protocol and forwarded to the corresponding upper application system. That is to say, the traditional basic communication capacity openness is integrated and simplified, a unified capacity openness platform with a simple and easy-to-use calling interface is provided for a user, the problem that in the prior art, the development difficulty of an upper application system for calling communication capacity is high due to the fact that each communication capacity is opened based on a respective independent gateway is solved, and the system development difficulty is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive efforts.
FIG. 1 is a diagram illustrating an applicable scenario of a capability calling method, a receipt calling method, and an information processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a capability calling method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a method for invoking a response piece according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating steps of a method for invoking a response piece according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating steps of an information processing method according to a fourth embodiment of the present invention;
FIG. 6 is a diagram of a system architecture that can be implemented for an open capability system in an example of the present invention;
fig. 7 is a schematic structural diagram of a capability openness system according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a capability opening system according to a sixth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a capability opening system according to a seventh embodiment of the present invention;
fig. 10 is a schematic structural diagram of a capability openness system according to an eighth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
an embodiment of the present invention provides a capability calling method, as shown in fig. 1, which is a schematic diagram of an application scenario of the method, where the method is applicable to a capability openness system 101, a first communication interface of the capability openness system 101 may be in communication connection with one or more upper application systems 102 through an Enterprise Service Bus (ESB), and a second communication interface of the capability openness system may be in communication connection with a capability gateway 103.
In the upper application system 102, a set SDK (Software Development Kit) provided by a developer of the capability opening system 101 may be integrated, and based on the set SDK, the upper application system 102 may invoke the communication capability of the capability gateway 103 through the capability opening system 101.
The capability gateway 103 may include, but is not limited To, any one or more of a short message gateway, a multimedia message gateway, a WAP-PUSH (service info or PUSH info) gateway, and a CTD (Click To Dial) gateway. Each capability gateway 103 can receive the capability calling request and execute corresponding communication capability according to the received capability calling request; for example, the CTD gateway may receive a capability call request carrying CTD originator identification information, CTD caller identification information, and CTD callee identification information, and may initiate and establish a call connection between a CTD caller and a CTD callee.
Specifically, as shown in fig. 2, which is a flowchart illustrating steps of the method according to the first embodiment of the present invention, the method may include the following steps:
step 201: the capacity open system receives a capacity calling request in a first set format sent by any upper application system, wherein the capacity calling request in the first set format comprises to-be-called capacity identification information and a data object.
Preferably, the first setting format may be a setting format based on an HTTP REST protocol, and in an implementation, the first communication interface of the capability openness system may be specifically a simple and easy-to-use northbound interface provided for an upper-layer application system, and the interface may provide a REST WebService protocol conforming to the EMA standard; therefore, no matter what kind of capability gateway is used for communication capability calling, the upper application system can send a capability calling request to the capability opening system only based on the HTTP REST protocol; the problem that in the prior art, due to the fact that communication protocols adopted by different capability gateways are different, the coupling degree of the interface and the bottom layer is high, and then the development difficulty of the upper application system is high is solved, namely, the development difficulty of the upper application system can be reduced.
Preferably, the to-be-called capability identification information may be a URL (Uniform Resource Locator), that is, the to-be-called communication capability may be uniquely characterized by the URL. In addition, it should be noted that the to-be-invoked capability identification information may be carried in a message header part of the capability invocation request in the first set format, so that the to-be-invoked capability requested by the capability invocation request in the first set format can be determined upon receiving the capability invocation request in the first set format. In addition, a data object may be carried in the message body part of the capability call request in the first set format, and the data object may include, but is not limited to, identification information of any one of the upper layer application systems, identification information of the target lower layer terminal, and communication content information.
Optionally, after receiving the capability call request in the first set format in step 201 and before performing step 202, the method may further include: and converting the data object into a data object with a set data structure.
Because the communication content information in the capability calling request in the first set format for calling different communication capabilities may be different, for example, the communication content information included in the data object in the capability calling request in the first set format for calling the short message capability is text information, and the communication content information included in the data object in the capability calling request in the first set format for calling the multimedia message capability may include text information and picture information; therefore, for any received capability call request with any first set format, the data object in the capability call request with any first set format may be first converted into a data object with a set data structure, preferably, a data object with a nodessg format, so as to facilitate subsequent processing and analysis of the data object.
Also optionally, after receiving the capability invocation request in the first set format in step 201, further preferably, after converting the data object into a data object with a set data structure, before executing step 202, the method may further include:
and determining the capacity to be called according to the identification information of the capacity to be called, and adding the data object to a request queue to be processed corresponding to the capacity to be called.
Because the processing capacity of the capacity open system is the upper limit value, in order to avoid errors caused by a large number of capacity call requests in the first set format being issued to the capacity open system in a short time, the received capacity call requests in the first set format can be added to the queue of the to-be-processed requests, so that the capacity call requests in the first set format can be sequentially obtained from the queue of the to-be-processed requests and sequentially processed, and the error rate of processing is reduced as much as possible.
In addition, because the processing logic of the capacity calling request for requesting the short message capacity, the capacity calling request for requesting the multimedia message capacity, the capacity calling request for requesting the WapPush capacity and the capacity calling request for requesting the CTD capacity can be different, the request queues to be processed can be respectively set for the short message capacity, the multimedia message capacity, the WapPush capacity and the CTD capacity; and then, for any received capability calling request with any first set format, according to the to-be-called capability identification information of the capability calling request with any first set format, correspondingly adding the data object which is converted into the set data structure in the capability calling request with any first set format to the to-be-processed request queue of the communication capability requested by the capability calling request with any first set format.
Step 202: and the capacity open system determines the identification information of any upper application system, the identification information of the target lower terminal and the communication content information according to the data object.
The identification information of any upper application system can be flexibly configured for any upper application system by a capability open system according to actual use requirements; preferably, the identification information of any upper application system may specifically be a SAN (short message access number), and one capacity open system may be provided with a plurality of SANs and may be allocated to the upper application systems as identification information for uniquely identifying each upper application system.
Preferably, the identification information of the target lower layer terminal may specifically be an MSISDN (Mobile Station International ISDN Number ) of the target lower layer terminal; the identification information of the target lower layer terminal may also include other identifications besides the MSISDN, and this embodiment is not limited in any way herein.
Optionally, for the capability call request for requesting the capability of the short message, the communication content information includes, but is not limited to, text information; for a capability calling request for requesting multimedia message capability, communication content information includes but is not limited to text information and picture information; for a capability call request for requesting WapPush capability, communication content information includes, but is not limited to, text information, picture information, and URL information; in addition, for the capability call request for requesting the CTD capability, since the CTD caller and the CTD callee can be determined according to the identification information of any upper application system and the identification information of the target lower terminal, the communication content information may be empty or include other information, which is not limited herein.
Optionally, if the method includes adding the data object to a pending request queue corresponding to the to-be-called capability according to the to-be-called capability identification information, step 202 may specifically include:
acquiring the data object from the request queue to be processed;
and analyzing the data object based on the set processing logic corresponding to the to-be-called capability to acquire the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
The setting processing logic corresponding to any capacity to be called can be flexibly set according to the actual use requirement. For example, the processing logic corresponding to the short message capability may include: analyzing the identification information of the upper application system, the identification information of the target lower terminal and the communication content information from the data object according to the set data structure; but may also include, but is not limited to: determining whether the identification information of the upper application system is located in a prestored legal user list or not so as to check the legality of the request; filtering the communication content information by keywords to filter the junk information in the communication content information; allocating identification information which can be used for unique identification to the logic processing; and correspondingly storing the result of the logic processing (including but not limited to the identification information of the upper application system, the identification information of the target lower terminal, the communication content information, the validity check result and the like), the identification information of the to-be-called capability and the identification information of the logic processing. The processing logic corresponding to other communication capabilities is not described herein in detail.
Step 203: and the capacity open system determines the capacity to be called and a target capacity gateway corresponding to the capacity to be called according to the capacity identification information to be called, and generates a capacity calling request in a second set format which can be received by the target capacity gateway, wherein the capacity calling request in the second set format carries the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
It should be noted that, in the prior art, different capability gateways communicate based on different communication protocols, for example, a short message gateway may receive a capability call request based on a CMPP protocol (China Mobile Peer to Peer, chinese Mobile communication internet short message gateway interface protocol), and a multimedia message gateway may receive a capability call request based on an MM7 protocol; therefore, in step 203, the to-be-called capability and the corresponding target capability gateway need to be determined according to the to-be-called capability identification information, and a capability calling request of the corresponding protocol is generated. Therefore, the method provided by this embodiment can enable the capability openness system to provide a uniform communication interface to the upper layer application system, receive a call request for calling various communication capabilities based on the HTTP REST protocol, and complete the conversion of the HTTP REST protocol to the communication capability dedicated protocols such as the CMPP protocol and the MM7 protocol.
Optionally, after the step 203 generates the capability call request in the second set format and before the step 204 is executed, the method may further include:
and adding the capability calling request with the second set format to a request queue to be sent corresponding to the capability to be called. That is, since the processing capacity of the capability gateway is limited to the upper limit, before the generated capability call request in the second set format is sent to the target capability gateway, the capability call request in the second set format may be added to the request queue to be sent, so that the capability call request in the second set format may be sent sequentially according to the flow control condition of the target capability gateway.
Step 204: and the capability open system sends the capability calling request with the second set format to the target capability gateway.
Optionally, in an implementation manner, the second communication interface of the capability openness system may be embodied as a southbound interface for providing services to the device layer, and an interface protocol for interfacing with each capability gateway may be encapsulated in the southbound interface.
Optionally, if, after the step 203 generates the capability invoking request in the second set format, the method further includes adding the capability invoking request in the second set format to a to-be-sent request queue corresponding to the to-be-called capability, then the step 204 may specifically include:
acquiring the capacity calling request in the second set format from the request queue to be sent;
and sending the capability calling request with the second set format to the target capability gateway so that the target capability gateway executes communication capability according to the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
Further preferably, according to the flow control parameter of the target capability gateway, acquiring a number of capability call requests in a second set format not greater than a set number from the request queue to be sent, and sending the number of capability call requests in the second set format not greater than the set number to the target capability gateway, where the set number is not greater than an upper limit value of the flow control of the target capability gateway; for example, if the upper limit value of the flow control of the target capability gateway is 100, it is required to ensure that the number of capability call requests in the second setting format sent to the target capability gateway each time is not greater than 100.
It should be noted that the method for each capability gateway to execute the corresponding communication capability according to the received capability invoking request is similar to that in the prior art, and details are not described herein again in this embodiment.
To sum up, an embodiment of the present invention provides a capability calling method, which is applicable to a capability openness system, where a first communication interface of the capability openness system is in communication connection with an upper application system, a second communication interface of the capability openness system is in communication connection with a capability gateway, and the upper application system calls a communication capability of the capability gateway through the capability openness system, where the method may include: receiving a capability calling request in a first set format sent by any upper application system, wherein the capability calling request in the first set format comprises to-be-called capability identification information and a data object; determining the identification information of any upper application system, the identification information of a target lower terminal and communication content information according to the data object; determining the to-be-called capability and a target capability gateway corresponding to the to-be-called capability according to the to-be-called capability identification information, and generating a capability calling request in a second set format, which can be received by the target capability gateway, wherein the capability calling request in the second set format carries the identification information of any one upper application system, the identification information of the target lower terminal and the communication content information; and finally, sending the capability calling request with the second set format to the target capability gateway. That is, in the information downlink process, the capability call request based on the set standard protocol issued by the upper application system can be converted into the capability call request based on other protocols and received by the relevant capability gateway, and forwarded to the relevant capability gateway. Because the traditional basic communication capacity openness is integrated and simplified, a unified capacity openness platform provided with a simple and easy-to-use calling interface is provided for a user, so that the problem that the development difficulty of an upper application system for calling the communication capacity is high due to the fact that each communication capacity is opened based on an independent gateway in the prior art can be solved, and the system development difficulty is reduced.
Example two:
based on the same inventive concept, the second embodiment of the invention provides a method for calling a receipt. As shown in fig. 1, which is a schematic diagram of an applicable scenario of the method, the method is applicable to a capability openness system 101, a first communication interface of the capability openness system 101 may be communicatively connected to one or more upper layer application systems 102 through an ESB, and a second communication interface of the capability openness system may be communicatively connected to a capability gateway 103.
The upper application system 102 may integrate a set SDK provided by a developer of the capability openness system 101, and based on the set SDK, the upper application system 102 may call the communication capability of the capability gateway 103 through the capability openness system 101.
The capability gateway 103 may include, but is not limited to, any one or more of a short message gateway, a multimedia message gateway, a WapPush gateway, and a CTD gateway. Each capability gateway 103 may receive the capability call request, execute the corresponding communication capability according to the received capability call request, and return the call result of the communication capability, i.e., the receipt information, to the upper application system 102 through the capability openness system 101.
Specifically, as shown in fig. 3, which is a flowchart illustrating steps of the method for invoking a receipt according to the second embodiment of the present invention, the method may include the following steps:
step 301: the capacity open system receives receipt information in a second set format sent by any capacity gateway, wherein the receipt information in the second set format carries receipt identification information; and configuring the receipt identification information to the receipt information in the second set format corresponding to the capability calling request in the second set format by any one of the capability gateways according to the calling request identification information carried in the capability calling request in the second set format received in advance.
It should be noted that, in the step flow of the capability invoking method in the first embodiment, in the capability invoking request in the second set format sent by the capability openness system to the target capability gateway in step 204, the invoking request identification information ID2 for uniquely identifying the capability invoking request in the second set format may be carried; therefore, when the target capability gateway (any of the capability gateways in this embodiment) generates the response piece information in the second set format corresponding to the capability call request in the second set format according to the capability call result, based on the setting rule, according to the call request identification information of the capability call request in the second set format, the generated response piece information in the second set format may be assigned with a response piece identification information ID3 that can be used to uniquely identify the response piece information in the second set format.
Optionally, the setting rule can be flexibly set according to actual use requirements; for example, the receipt identification information ID3 may be set to be completely or partially identical to the corresponding call request identification information ID2, and the embodiment is not limited thereto.
In the prior art, different capability gateways communicate based on different communication protocols, and therefore, the formats of the response piece information in the second set format, which is sent to the capability openness system, are different for the different capability gateways. For example, the short message gateway may communicate based on the CMPP protocol, and therefore, the receipt information in the second set format sent by the short message gateway received by the capability opening system is actually the receipt information based on the CMPP protocol; and the multimedia message gateway can communicate based on the MM7 protocol, so that the receipt information in the second set format received by the capability opening system and sent by the multimedia message gateway is actually the receipt information based on the MM7 protocol. Furthermore, in an implementation manner, the second communication interface of the capability openness system may be embodied as a southbound interface for providing services to the device layer, and an interface protocol for interfacing with each capability gateway may be encapsulated in the interface.
In addition, the receipt information in the second set format may also carry call result information, where the call result information may include various information used to represent an execution result of the communication capability executed by any capability gateway according to the pre-received capability call request in the second set format corresponding to the receipt information in the second set format, and this is similar to the prior art and is not described here again.
Step 302: the capability opening system determines the call request identification information (ID2) corresponding to the receipt identification information (ID3) and callback address information corresponding to the call request identification information (ID2) stored in advance.
In a possible implementation manner, in the step flow of the capability invoking method in the first embodiment, after the capability openness system receives the capability invoking request in the first set format sent by any upper layer application system in step 201, the capability openness system may allocate, to the received capability invoking request in the first set format, an identification ID1 that can be used to uniquely identify the capability invoking request in the first set format, and return an ID1 to any upper layer application system. And the capability opening system acquires callback address information carried in the capability calling request in the first set format, wherein the callback address information can be used for representing address information of receipt information for receiving the capability calling request in the first set format. The capability openness system stores the ID1 in correspondence with the callback address information.
In the step flow of the capability calling method according to the first embodiment, after the capability opening system generates the capability calling request in the second setting format corresponding to the capability calling request in the first setting format in step 203, the ID2 (i.e., the calling request identification information) that can uniquely identify the capability calling request in the second setting format is allocated to the capability calling request in the second setting format, and the ID1, the ID2, and the callback address information are stored in association with each other.
Therefore, after receiving the response piece information in the second set format sent by any capability gateway, the capability opening system may determine ID2 corresponding to the response piece identification information ID3 according to the response piece identification information ID3 carried in the response piece information in the second set format and the setting rule; and determining callback address information corresponding to the receipt information in the second set format according to the corresponding relationship among the ID1, the ID2 and the callback address information.
In another possible implementation manner, in the step flow of the capability calling method in the first embodiment, in step 201, the callback address information that may not be carried in the capability calling request in the first setting format received by the capability openness system may be pre-stored with the callback address information corresponding to each upper application system, so that after receiving the receipt information in the second setting format sent by any capability gateway, the capability openness system determines, according to the receipt identification information ID3 and the setting rule carried in the receipt information in the second setting format, the ID2 corresponding to the receipt identification information; and according to the corresponding relationship between ID1, ID2 and the identification information of the upper layer application system, the callback address information corresponding to the receipt information in the second set format can be determined, which is not described herein again.
Optionally, the callback Address information may specifically be a SAN, and may also be IP Address (Internet Protocol Address) information, and this embodiment is not limited in this respect.
Step 303: and the capacity open system converts the receipt information in the second set format into the receipt information in the first set format which can be sent by the first communication interface, and sends the receipt information in the first set format to an upper application system which issues a capacity call request in the second set format according to the callback address information.
In one possible implementation, the first communication interface of the open capability system may be embodied as a simple, easy-to-use northbound interface provided to the upper-level application system, and the interface may provide the REST WebService protocol compliant with the EMA standard; therefore, preferably, the first setting format may be a setting format based on the HTTP REST protocol.
To sum up, an embodiment of the present invention provides a method for invoking a receipt, which is applicable to a capability openness system, where a first communication interface of the capability openness system is in communication connection with an upper application system, a second communication interface of the capability openness system is in communication connection with a capability gateway, and the upper application system invokes a communication capability of the capability gateway through the capability openness system, where the method includes: receiving receipt information in a second set format sent by any one capability gateway, wherein the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request in the second set format by any one of the capability gateways according to calling request identification information carried in the capability calling request in the second set format received in advance; determining the calling request identification information corresponding to the receipt identification information and the call-back address information corresponding to the pre-stored calling request identification information; and converting the receipt information in the second set format into the receipt information in the first set format which can be sent by the first communication interface, and sending the receipt information in the first set format to an upper application system which issues a capability call request in the second set format according to the callback address information. That is, in the information uplink process, the response piece information in any set format reported by any capability gateway can be converted into information based on a set standard protocol and forwarded to the corresponding upper application system. Because the traditional basic communication capacity openness is integrated and simplified, a unified capacity openness platform provided with a simple and easy-to-use calling interface is provided for a user, so that the problem that the development difficulty of an upper application system for calling the communication capacity is high due to the fact that each communication capacity is opened based on an independent gateway in the prior art can be solved, and the system development difficulty is reduced.
Example three:
based on the same inventive concept, the third embodiment of the present invention provides another method for calling a receipt. As shown in fig. 1, which is a schematic diagram of an applicable scenario of the method, the method is applicable to a capability openness system 101, a first communication interface of the capability openness system 101 may be communicatively connected to one or more upper layer application systems 102 through an ESB, and a second communication interface of the capability openness system may be communicatively connected to a capability gateway 103.
The upper application system 102 may integrate a set SDK provided by a developer of the capability openness system 101, and based on the set SDK, the upper application system 102 may call the communication capability of the capability gateway 103 through the capability openness system 101.
The capability gateway 103 may include, but is not limited to, any one or more of a short message gateway, a multimedia message gateway, a WapPush gateway, and a CTD gateway. Each capability gateway 103 may receive the capability call request, execute the corresponding communication capability according to the received capability call request, and return the call result of the communication capability, i.e., the receipt information, to the upper application system 102 through the capability openness system 101.
Specifically, as shown in fig. 4, which is a flowchart of the steps of the receipt invoking method in the third embodiment of the present invention, the method may include the following steps:
step 401: the capacity open system receives receipt information in a second set format sent by any capacity gateway, wherein the receipt information in the second set format carries receipt identification information; and configuring the receipt identification information to the receipt information in the second set format corresponding to the capability calling request by any one of the capability gateways according to the calling request identification information of the capability calling request received in advance.
In a possible implementation manner, in the step flow of the capability invoking method in the first embodiment, after the capability openness system receives the capability invoking request in the first set format sent by any upper layer application system in step 201, the capability openness system may allocate, to the received capability invoking request in the first set format, an identification ID1 that can be used to uniquely identify the capability invoking request in the first set format, and return an ID1 to any upper layer application system.
After the capability invocation request in the first configuration format is converted into the second configuration format in step 203, the capability invocation request in the second configuration format may be assigned an ID2 that can uniquely identify the capability invocation request in the second configuration format, and the ID1 and the ID2 are stored correspondingly.
Since the capability calling request in the second set format sent by the capability open system to the target capability gateway in step 204 carries the calling request identification information ID2 for uniquely identifying the capability calling request in the second set format; therefore, when the target capability gateway (any of the capability gateways in this embodiment) generates response piece information in the second set format corresponding to the capability call request in the second set format according to the capability call result, based on the first set rule, according to the call request identification information of the capability call request in the second set format, a response piece identification information ID3 that can be used for uniquely identifying the response piece information in the second set format is allocated to the generated response piece information in the second set format, so that it can be seen that there is a corresponding relationship among ID1, ID2 and ID 3.
Optionally, the first setting rule may be flexibly set according to actual use requirements; for example, the receipt identification information ID3 may be set to be completely or partially identical to the corresponding call request identification information ID2, and the embodiment is not limited thereto.
In the prior art, different capability gateways communicate based on different communication protocols, and therefore, the formats of the response piece information in the second set format, which is sent to the capability openness system, are different for the different capability gateways. For example, the short message gateway may communicate based on the CMPP protocol, and therefore, the receipt information in the second set format sent by the short message gateway received by the capability opening system is actually the receipt information based on the CMPP protocol; and the multimedia message gateway can communicate based on the MM7 protocol, so that the receipt information in the second set format received by the capability opening system and sent by the multimedia message gateway is actually the receipt information based on the MM7 protocol. Furthermore, in an implementation manner, the second communication interface of the capability openness system may be embodied as a southbound interface for providing services to the device layer, and an interface protocol for interfacing with each capability gateway may be encapsulated in the interface.
In addition, the receipt information in the second set format may also carry call result information, where the call result information may include various information used to represent an execution result of the communication capability executed by any capability gateway according to the pre-received capability call request in the second set format corresponding to the receipt information in the second set format, and this is similar to the prior art and is not described here again.
Step 402: and the capacity open system converts the receipt information in the second set format into the receipt information in the first set format which can be transmitted through the first communication interface, and correspondingly stores the receipt information in the first set format and the receipt identification information.
In one possible implementation, the first communication interface of the open capability system may be embodied as a simple, easy-to-use northbound interface provided to the upper-level application system, and the interface may provide the REST WebService protocol compliant with the EMA standard; therefore, preferably, the first setting format may be a setting format based on the HTTP REST protocol.
Further optionally, the receipt information in any first setting format and the receipt identification information ID3 corresponding thereto may be correspondingly stored in the database, so that in the subsequent process, according to the receipt obtaining request in the first setting format sent by the upper application system, the receipt information in the first setting format corresponding to the receipt obtaining request in the first setting format may be found from the database.
Step 403: the method comprises the steps that an ability open system receives a receipt obtaining request in a first set format sent by an upper application system, wherein the receipt obtaining request in the first set format carries receipt request identification information, and the receipt request identification information is configured to the receipt obtaining request in the first set format by the upper application system according to call request identification information of a call request returned by the ability open system.
Alternatively, when the upper application system sends the response piece obtaining request in the first set format to the capability opening system for the capability invoking request in the first set format, based on the second set rule, according to the identifier ID1 of the capability invoking request in the first set format, the upper application system may configure a response piece request identifier ID4 for uniquely identifying the response piece obtaining request in the first set format, so that there is a corresponding relationship between ID1 and ID 4.
Optionally, the second setting rule may be flexibly set according to actual use requirements; for example, the response piece request identification information ID4 and the corresponding identification ID1 of the capability invocation request with the first set format may be set to be completely or partially identical, and the embodiment is not limited in any way herein.
Step 404: and the capacity opening system acquires the receipt information in the first set format corresponding to the receipt acquisition request in the first set format according to the pre-stored corresponding relation among the receipt request identification information (ID4), the receipt identification information (ID3) and the call request identification information (ID1 and/or ID2), and returns the receipt information in the first set format to the upper application system.
That is, since there is a corresponding relationship between the receipt request identification information ID4, the receipt identification information ID3, and the call request identification information (the identification ID1 of the capability call request in the first set format, and the identification ID2 of the capability call request in the second set format), the receipt information in the first set format corresponding to the receipt acquisition request in the first set format sent by the upper application system can be found in the database, a channel is established between the capability open system and the upper application system, and the receipt information in the first set format corresponding to the receipt acquisition request in the first set format sent by the upper application system is returned to the upper application system in the synchronous transmission mode.
To sum up, an embodiment of the present invention provides a method for invoking a receipt, which is applicable to a capability openness system, where a first communication interface of the capability openness system is in communication connection with an upper application system, a second communication interface of the capability openness system is in communication connection with a capability gateway, and the upper application system invokes a communication capability of the capability gateway through the capability openness system, where the method includes: receiving receipt information in a second set format sent by any one capability gateway, wherein the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request by any one of the capability gateways according to the calling request identification information of the capability calling request received in advance; converting the receipt information in the second set format into receipt information in a first set format which can be transmitted through the first communication interface, and correspondingly storing the receipt information in the first set format and the receipt identification information; receiving a receipt acquiring request in a first set format sent by an upper application system, wherein the receipt acquiring request in the first set format carries receipt request identification information, and the receipt request identification information is configured to the receipt acquiring request in the first set format by the upper application system according to call request identification information of the call request returned by the capability open system; and finally, acquiring the receipt information in the first set format corresponding to the receipt acquisition request in the first set format according to the corresponding relation among the pre-stored receipt request identification information, the receipt identification information and the call request identification information, and returning the receipt information in the first set format to the upper application system. That is, in the information uplink process, the response piece information in any set format reported by any capability gateway can be converted into information based on a set standard protocol and forwarded to the corresponding upper application system. Because the traditional basic communication capacity openness is integrated and simplified, a unified capacity openness platform provided with a simple and easy-to-use calling interface is provided for a user, so that the problem that the development difficulty of an upper application system for calling the communication capacity is high due to the fact that each communication capacity is opened based on an independent gateway in the prior art can be solved, and the system development difficulty is reduced.
Example four:
based on the same inventive concept, the fourth embodiment of the present invention provides an information processing method. As shown in fig. 1, which is a schematic diagram of an applicable scenario of the method, the method is applicable to a capability openness system 101, a first communication interface of the capability openness system 101 may be communicatively connected to one or more upper layer application systems 102 through an ESB, and a second communication interface of the capability openness system may be communicatively connected to a capability gateway 103.
The capability gateway 103 may include, but is not limited to, any one or more of a short message gateway and a multimedia message gateway. The upper application system 102 may integrate a set SDK provided by a developer of the capability openness system 101, and based on the set SDK, the upper application system 102 may receive the uplink information sent by the capability gateway 103 through the capability openness system 101.
Specifically, as shown in fig. 5, which is a flowchart illustrating steps of the information processing method according to the fourth embodiment of the present invention, the method may include the following steps:
step 501: the method comprises the steps that a capability open system receives information to be sent in a first set format sent by any capability gateway, wherein the information to be sent in the first set format carries identification information of a target upper application system.
It should be noted that, in the prior art, different capability gateways communicate based on different communication protocols, and therefore, formats of the information to be transmitted in the first set format, which is transmitted to the capability openness system, are different for the different capability gateways. For example, the short message gateway may communicate based on the CMPP protocol, so that the information to be sent in the first set format, which is sent by the short message gateway and received by the capability opening system, is actually information based on the CMPP protocol; the multimedia message gateway can communicate based on the MM7 protocol, so that the information to be sent in the first set format, which is sent by the multimedia message gateway and received by the capability openness system, is actually information based on the MM7 protocol. Furthermore, in an implementation manner, the second communication interface of the capability openness system may be embodied as a southbound interface for providing services to the device layer, and an interface protocol for interfacing with each capability gateway may be encapsulated in the interface.
It should be further noted that, for any upper layer application system, the identification information of any upper layer application system may be flexibly configured for any upper layer application system by the capability open system according to the actual use requirement; preferably, the identification information of any upper application system may specifically be a SAN, and one capacity open system may be provided with a plurality of SANs and may be allocated to the upper application systems as identification information for uniquely identifying each upper application system; therefore, the identification information of the target upper layer application system is the identification information which uniquely identifies the target upper layer application system used for receiving the information to be sent.
Optionally, the information to be sent in the first set format may also carry identification information of a lower layer terminal that sends the information to be sent in the first set format, where the identification information of the lower layer terminal may specifically be an MSISDN of a target lower layer terminal; the identification information of the lower terminal may also include other identification information besides the MSISDN, and this embodiment is not limited in any way herein.
Optionally, after the step 501 is executed to receive the information to be transmitted in the first set format sent by any capability gateway, before the step 502 is executed, the method may further include: performing set logic processing on the information to be sent in the first set format;
the logic processing for setting the information to be transmitted in the first setting format may include any one or more of the following:
determining that the identification information of the target upper application system belongs to a pre-stored legal user set;
filtering set keywords in the information to be sent in the first set format;
setting identification information which can be used for uniquely identifying the information to be transmitted in the first set format for the information to be transmitted in the first set format;
and storing the information to be transmitted in the first set format.
That is, the capability openness system may also manage each piece of received uplink information. The capability opening system can verify the legality of the information to be sent by determining whether the identification information of the target upper application system is located in a prestored legal user list; the content information of the information to be sent can be subjected to keyword filtering so as to filter the junk information in the information to be sent; setting identification information which can be used for uniquely identifying the logic processing (setting identification information for the information to be sent in the first set format) for the logic processing; and correspondingly storing the result of the logic processing (including but not limited to identification information of the target upper-layer application system, a validity check result and the like), the information to be sent and the identification information of the logic processing (identification information of the information to be sent). It should be noted that the logic processing for setting the information to be sent in the first setting format may include, but is not limited to, the above, and this embodiment is not described herein again.
Optionally, after the step 501 is executed to receive information to be transmitted in a first set format sent by any capability gateway, before performing logic processing for setting the information to be transmitted in the first set format, the method may further include: and adding the information to be sent in the first set format to an information queue to be processed corresponding to any one capability gateway.
Because the processing capacity of the capacity openness system is at the upper limit, in order to avoid errors caused by reporting a large amount of uplink information to the capacity openness system in a short time, the received information to be sent in the first set format can be added to the information queue to be processed, so that the information to be sent in the first set format can be sequentially acquired from the information queue to be processed and sequentially processed, and the error rate of processing can be reduced as much as possible.
In addition, because the processing logics for logically processing the short messages and the multimedia messages can be different, information queues to be processed can be respectively set for the short message gateway and the multimedia message gateway; and then, for any received information to be sent in any first set format, the information to be sent in any first set format can be correspondingly added to the information queue to be processed corresponding to the capability gateway according to the capability gateway sending the information to be sent in any first set format. For example, the received short message to be sent in the first set format is added to a short message queue to be processed, and the received multimedia message to be sent in the first set format is added to a multimedia message queue to be processed.
Step 502: and the capacity opening system converts the information to be transmitted in the first set format into the information to be transmitted in the second set format which can be transmitted through the first communication interface.
Preferably, the second setting format may be a setting format based on an HTTP REST protocol, and in an implementation, the first communication interface of the capability openness system may be specifically a simple and easy-to-use northbound interface provided for an upper-layer application system, and the interface may provide a REST WebService protocol conforming to the EMA standard; therefore, no matter the capacity open system aims at the short message or the multimedia message, the capacity open system can only forward the information to be sent to the capacity gateway to the upper application system based on the HTTP REST protocol; the problem that in the prior art, due to the fact that communication protocols adopted by different capability gateways are different, the coupling degree of the interface and the bottom layer is high, and then the development difficulty of the upper application system is high is solved, namely, the development difficulty of the upper application system can be reduced.
Optionally, after the logic processing for setting the information to be transmitted in the first set format is performed, before step 502 is executed to convert the information to be transmitted in the first set format into information to be transmitted in a second set format that can be transmitted through the first communication interface, the method may further include: and adding the information to be sent in the first set format to an information queue to be sent corresponding to any one capability gateway.
Because the processing capability of the first communication interface, that is, the northbound interface provided to the upper layer application system, has an upper limit of capability, before the information to be sent in the first set format is converted into the information to be sent in the second set format, the information to be sent in the first set format may be added to the corresponding information queue to be sent, for example, the short message to be sent in the first set format is added to the short message queue to be sent, the multimedia message to be sent in the first set format is added to the multimedia message queue to be sent, so that the format conversion and the sending of the information to be sent in the first set format may be performed subsequently according to the flow control condition of the first communication interface.
Step 503: and the capacity open system determines a target upper layer application system for receiving the information to be sent in the first set format according to the identification information of the target upper layer application system, and sends the information to be sent in the second set format to the target upper layer application system.
To sum up, an embodiment of the present invention provides an information processing method, which is applicable to a capability openness system, where a first communication interface of the capability openness system is in communication connection with an upper application system, a second communication interface of the capability openness system is in communication connection with a capability gateway, and the capability gateway sends information to the upper application system through the capability openness system, where the method may include: receiving information to be sent in a first set format sent by any capacity gateway, wherein the information to be sent in the first set format carries identification information of a target upper application system; converting the information to be transmitted in the first set format into information to be transmitted in a second set format which can be transmitted through the first communication interface; and determining a target upper layer application system for receiving the information to be sent in the first set format according to the identification information of the target upper layer application system, and sending the information to be sent in the second set format to the target upper layer application system. That is, in the information uplink process, the information to be sent in any set format reported by any capability gateway can be converted into the information based on the set standard protocol, and forwarded to the corresponding upper application system. Because the traditional basic communication capacity openness is integrated and simplified, a unified capacity openness platform provided with a simple and easy-to-use calling interface is provided for a user, so that the problem that the development difficulty of an upper application system for calling the communication capacity is high due to the fact that each communication capacity is opened based on an independent gateway in the prior art can be solved, and the system development difficulty is reduced.
The following will describe in detail the specific steps of the capability openness system executing the capability calling method and calling the receipt method provided by the embodiment of the present invention by taking a specific example as an example.
As shown in fig. 6, it is a system architecture diagram of the capability openness system, which includes a northbound interface machine, a business logic processing module, and a southbound interface machine; the northbound interface machine comprises a protocol converter and a data converter, wherein the protocol converter is encapsulated with a REST WebService protocol following EMA standard, and the data converter is used for converting a received data object into a data object in NodeMsg format; the service logic processing module comprises a short message capability processing sub-module, a multimedia message capability processing sub-module, a Wappush capability processing sub-module and a CTD capability processing sub-module, and is respectively used for processing the calling request, the receipt information or the information to be sent of the short message, the multimedia message, the Wappush and the CTD; the southbound interface machine is packaged with interface protocols for interfacing with various capability gateways.
Example one:
the process of capability calling and receipt calling for any communication capability, such as short message communication capability, may include the following steps:
step 1: the northbound interface machine receives a capability calling request based on an HTTP REST protocol and sent by an upper application system A, wherein the capability calling request carries to-be-called capability identification information URL1, a data object data1 and callback address information IP 1; the data1 includes identification information SAN1 of the upper application system A, identification information MSISDN1 of the target lower terminal and communication content information;
step 2: the northbound interface machine allocates an identification information ID1 for the capability calling request and returns an ID1 to the upper application system A;
and step 3: a data converter in the northbound interface machine determines the communication capacity to be called as short message capacity according to the URL1 carried in the capacity calling request, and converts the data1 carried in the capacity calling request into a data object data2 in NodeMsg format;
and 4, step 4: correspondingly adding the data2 to a to-be-processed request queue corresponding to the short message capability processing submodule;
and 5: the short message capability processing submodule acquires data2 from the request queue to be processed, analyzes the data2 and determines the identification information SAN1 of the upper application system A, the identification information MSISDN1 of the target lower terminal and the communication content information;
step 6: the short message capability processing submodule generates a capability calling request based on a CMPP (China Mobile protocol and presence protocol) according to the determined identification information SAN1 of the upper application system A, the identification information MSISDN1 of the target lower-layer terminal and the communication content information, and allocates an identification information ID2 to the capability calling request based on the CMPP; correspondingly storing the ID1, the IP1 and the ID 2;
and 7: adding the capacity calling request based on the CMPP protocol to a request queue to be sent corresponding to the short message capacity processing submodule;
and 8: the southbound interface machine acquires the capacity calling request based on the CMPP from the request queue to be sent, and sends the capacity calling request based on the CMPP to a corresponding short message gateway, wherein the capacity calling request based on the CMPP carries ID 2;
and step 9: the short message gateway generates CMPP protocol-based receipt information corresponding to the CMPP protocol-based capability calling request according to a capability calling result, and carries the ID2 in the CMPP protocol-based receipt information and returns the receipt information to the southbound interface machine;
step 10: the short message capability processing submodule determines the callback address information of the receipt information based on the CMPP protocol to be IP1 according to the corresponding relation of the pre-stored ID1, IP1 and ID 2;
step 11: and the protocol converter of the northbound interface machine converts the response piece information based on the CMPP protocol into response piece information based on the HTTP REST protocol, and returns the response piece information based on the HTTP REST protocol to the upper-layer application system A according to the IP 1.
Example two:
in the first embodiment, the capability openness system actively pushes the call receipt information to the upper application system in a Push mode, and in another implementation manner, the capability openness system may also actively acquire the call receipt information from the upper application system in a Pull mode, and the steps are as follows:
step 1: the northbound interface machine receives a capability calling request based on an HTTP REST protocol and sent by an upper application system A, wherein the capability calling request carries to-be-called capability identification information URL1 and a data object data 1; the data1 includes identification information SAN1 of the upper application system A, identification information MSISDN1 of the target lower terminal and communication content information;
step 2: the northbound interface machine allocates an identification information ID1 for the capability calling request and returns an ID1 to the upper application system A;
and step 3: a data converter in the northbound interface machine determines the communication capacity to be called as short message capacity according to the URL1 carried in the capacity calling request, and converts the data1 carried in the capacity calling request into a data object data2 in NodeMsg format;
and 4, step 4: correspondingly adding the data2 to a to-be-processed request queue corresponding to the short message capability processing submodule;
and 5: the short message capability processing submodule acquires data2 from the request queue to be processed, analyzes the data2 and determines the identification information SAN1 of the upper application system A, the identification information MSISDN1 of the target lower terminal and the communication content information;
step 6: the short message capability processing submodule generates a capability calling request based on a CMPP (China Mobile protocol and presence protocol) according to the determined identification information SAN1 of the upper application system A, the identification information MSISDN1 of the target lower-layer terminal and the communication content information, and allocates an identification information ID2 to the capability calling request based on the CMPP; correspondingly storing the ID1 and the ID 2;
and 7: adding the capacity calling request based on the CMPP protocol to a request queue to be sent corresponding to the short message capacity processing submodule;
and 8: the southbound interface machine acquires the capacity calling request based on the CMPP from the request queue to be sent, and sends the capacity calling request based on the CMPP to a corresponding short message gateway, wherein the capacity calling request based on the CMPP carries ID 2;
and step 9: the short message gateway generates CMPP protocol-based receipt information corresponding to the CMPP protocol-based capability calling request according to a capability calling result, and carries the ID2 in the CMPP protocol-based receipt information and returns the receipt information to the southbound interface machine;
step 10: the protocol converter of the northbound interface machine converts the receipt information based on the CMPP protocol into the receipt information based on the HTTP REST protocol, and stores the receipt information based on the HTTP REST protocol in a database corresponding to the ID 2;
step 11: receiving a receipt acquisition request based on an HTTP REST protocol sent by an upper-layer application system A by a northbound interface machine, wherein the receipt acquisition request carries an ID 1;
step 12: the northbound interface machine searches the response piece information which is identified as ID2 and is based on the HTTP REST protocol in the database according to the corresponding relation between the pre-stored ID1 and the pre-stored ID2, establishes a communication channel with the upper application system A, and returns the searched response piece information based on the HTTP REST protocol to the upper application system A by adopting a synchronous transmission mode.
Example five:
based on the same inventive concept, a fifth embodiment of the present invention provides a capability opening system, and specifically, as shown in fig. 7, it is a schematic structural diagram of the capability opening system in the fifth embodiment of the present invention, where the capability opening system may include: a first interface unit 701, a processing unit 702, a conversion unit 703 and a second interface unit 704, where the first interface unit 701 is connected to an upper application system in a communication manner, the second interface unit 704 is connected to a capability gateway in a communication manner, and the upper application system calls a communication capability of the capability gateway through the capability open system, where:
the first interface unit 701 is configured to receive a capability calling request in a first set format sent by any upper application system, where the capability calling request in the first set format includes to-be-called capability identification information and a data object;
the processing unit 702 is configured to determine, according to the data object, identification information of the any upper application system, identification information of a target lower terminal, and communication content information;
the conversion unit 703 is configured to determine, according to the to-be-called capability identification information, a to-be-called capability and a target capability gateway corresponding to the to-be-called capability, and generate a capability calling request in a second set format that can be received by the target capability gateway, where the capability calling request in the second set format carries identification information of any one of the upper application systems, identification information of the target lower terminal, and the communication content information;
the second interface unit 704 is configured to send the capability calling request with the second set format to the target capability gateway.
Optionally, the first interface unit 701 may be further configured to, after receiving the capability call request in the first set format, convert the data object into a data object with a set data structure before the processing unit 702 determines, according to the data object, the identification information of the any upper application system, the identification information of the target lower terminal, and the communication content information.
Optionally, the processing unit 702 may be further configured to, before determining, according to the data object, the identification information of any upper application system, the identification information of a target lower terminal, and the communication content information, add the data object to a to-be-processed request queue corresponding to the to-be-called capability according to the to-be-called capability identification information;
the processing unit 702 may specifically be configured to obtain the data object from the pending request queue; and analyzing the data object based on the set processing logic corresponding to the to-be-called capability to acquire the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
Optionally, the converting unit 703 may be further configured to, after the capability calling request in the second set format is generated, add the capability calling request in the second set format to a to-be-sent request queue corresponding to the to-be-called capability before the second interface unit 704 sends the capability calling request in the second set format to the target capability gateway;
the second interface unit 704 is specifically configured to obtain the capability call request in the second set format from the request queue to be sent; and sending the capability calling request with the second set format to the target capability gateway so that the target capability gateway executes communication capability according to the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
In summary, the capability openness system provided in this embodiment encapsulates the set standard protocol, so that, in the information downlink process, the capability call request based on the set standard protocol and issued by the upper application system can be converted into a capability call request based on another protocol and receivable by the relevant capability gateway, and forwarded to the relevant capability gateway. That is to say, the traditional basic communication capacity openness is integrated and simplified, a unified capacity openness platform with a simple and easy-to-use calling interface is provided for a user, the problem that in the prior art, the development difficulty of an upper application system for calling communication capacity is high due to the fact that each communication capacity is opened based on a respective independent gateway is solved, and the system development difficulty is reduced.
Example six:
based on the same inventive concept, a sixth embodiment of the present invention further provides another capability opening system, and specifically, as shown in fig. 8, it is a schematic structural diagram of the capability opening system in the sixth embodiment of the present invention, where the capability opening system may include: a first interface unit 801, a processing unit 802, a conversion unit 803, and a second interface unit 804, where the first interface unit 801 is connected to an upper layer application system in a communication manner, the second interface unit 804 is connected to a capability gateway in a communication manner, and the upper layer application system calls a communication capability of the capability gateway through the capability open system, where:
the second interface unit 804 is configured to receive response piece information in a second set format sent by any capability gateway, where the response piece information in the second set format carries response piece identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request in the second set format by any one of the capability gateways according to calling request identification information carried in the capability calling request in the second set format received in advance;
a processing unit 802, configured to determine the call request identification information corresponding to the receipt identification information, and call-back address information corresponding to the call request identification information stored in advance;
a conversion unit 803, configured to convert the receipt information in the second set format into the receipt information in the first set format that can be sent by the first interface unit 801;
the first interface unit 801 is configured to send the receipt information in the first set format to an upper application system that issues a capability call request in the second set format according to the callback address information.
In summary, the capability openness system provided in this embodiment encapsulates a set standard protocol, and in the information uplink process, the response piece information in any set format reported by any capability gateway can be converted into information based on the set standard protocol and forwarded to the corresponding upper application system. That is to say, the traditional basic communication capacity openness is integrated and simplified, a unified capacity openness platform with a simple and easy-to-use calling interface is provided for a user, the problem that in the prior art, the development difficulty of an upper application system for calling communication capacity is high due to the fact that each communication capacity is opened based on a respective independent gateway is solved, and the system development difficulty is reduced.
Example seven:
based on the same inventive concept, a capability opening system is further provided in the seventh embodiment of the present invention, and specifically, as shown in fig. 9, it is a schematic structural diagram of the capability opening system in the seventh embodiment of the present invention, and the capability opening system may include: a first interface unit 901, a processing unit 902, a conversion unit 903, and a second interface unit 904, where the first interface unit 901 is connected to an upper application system in a communication manner, the second interface unit 904 is connected to a capability gateway in a communication manner, and the upper application system calls a communication capability of the capability gateway through the capability open system, where:
the second interface unit 904 is configured to receive response piece information in a second set format sent by any capability gateway, where the response piece information in the second set format carries response piece identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request by any one of the capability gateways according to the calling request identification information of the capability calling request received in advance;
a converting unit 903, configured to convert the receipt information in the second set format into the receipt information in the first set format that can be transmitted through the first interface unit 901, and store the receipt information in the first set format in correspondence with the receipt identifier information;
the first interface unit 901 is configured to receive a receipt obtaining request in a first set format sent by an upper application system, where the receipt obtaining request in the first set format carries receipt request identification information, and the receipt request identification information is configured to the receipt obtaining request in the first set format by the upper application system according to call request identification information of the call request returned by the capability open system;
the processing unit 902 is configured to obtain the receipt information in the first set format corresponding to the receipt obtaining request in the first set format according to the correspondence among the receipt request identification information, the receipt identification information, and the call request identification information stored in advance;
the first interface unit 901 is further configured to return the receipt information in the first set format to the upper application system.
In summary, the capability openness system provided in this embodiment encapsulates a set standard protocol, and in the information uplink process, the response piece information in any set format reported by any capability gateway can be converted into information based on the set standard protocol and forwarded to the corresponding upper application system. That is to say, the traditional basic communication capacity openness is integrated and simplified, a unified capacity openness platform with a simple and easy-to-use calling interface is provided for a user, the problem that in the prior art, the development difficulty of an upper application system for calling communication capacity is high due to the fact that each communication capacity is opened based on a respective independent gateway is solved, and the system development difficulty is reduced.
Example eight:
based on the same inventive concept, an eighth embodiment of the present invention further provides another capability opening system, and specifically, as shown in fig. 10, it is a schematic structural diagram of the capability opening system in the eighth embodiment of the present invention, and the capability opening system may include: a first interface unit 1001, a conversion unit 1002, and a second interface unit 1003, where the first interface unit 1001 is connected to an upper application system in a communication manner, the second interface unit 1003 is connected to a capability gateway in a communication manner, and the capability gateway sends information to the upper application system through the capability open system, where:
the second interface unit 1003 is configured to receive information to be sent in a first set format sent by any capability gateway, where the information to be sent in the first set format carries identification information of a target upper application system;
the converting unit 1002 is configured to convert the to-be-transmitted information in the first set format into to-be-transmitted information in a second set format that can be transmitted through the first interface unit 1001;
the first interface unit 1001 is configured to determine, according to the identification information of the target upper layer application system, a target upper layer application system for receiving the information to be sent in the first set format, and send the information to be sent in the second set format to the target upper layer application system.
Optionally, the capability openness system may further include a processing unit (not shown in fig. 10), configured to perform, after the second interface unit 1003 receives information to be sent in a first set format sent by any capability gateway, a logic process for setting the information to be sent in the first set format before the converting unit 1002 converts the information to be sent in the first set format into information to be sent in a second set format that can be transmitted by the first interface unit 1001;
the processing unit may be configured to perform logic processing for setting the information to be transmitted in the first set format in any one or more of the following manners:
determining that the identification information of the target upper application system belongs to a pre-stored legal user set;
filtering set keywords in the information to be sent in the first set format;
allocating identification information which can be used for uniquely identifying the information to be sent in the first set format to the information to be sent in the first set format;
and storing the information to be transmitted in the first set format.
Further optionally, the processing unit may be further configured to add, before performing the set logic processing on the to-be-transmitted information in the first set format, the to-be-transmitted information in the first set format to a to-be-processed information queue corresponding to the any capability gateway; and/or after performing logic processing for setting the information to be transmitted in the first set format, before the converting unit 1002 converts the information to be transmitted in the first set format into information to be transmitted in a second set format that can be transmitted through the first interface unit 1001, add the information to be transmitted in the first set format to an information queue to be transmitted corresponding to any capability gateway.
In summary, the capability openness system provided in this embodiment encapsulates a set standard protocol, and in the information uplink process, information to be sent in any set format reported by any capability gateway can be converted into information based on the set standard protocol and forwarded to a corresponding upper application system. That is to say, the traditional basic communication capacity openness is integrated and simplified, a unified capacity openness platform with a simple and easy-to-use calling interface is provided for a user, the problem that in the prior art, the development difficulty of an upper application system for calling communication capacity is high due to the fact that each communication capacity is opened based on a respective independent gateway is solved, and the system development difficulty is reduced.
Furthermore, it is to be understood that any number of elements in the figures and descriptions are to be regarded as illustrative rather than restrictive, and that any nomenclature is used for distinction and not intended to be limiting.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (14)

1. A capability calling method, applied to a capability openness system, where a first communication interface of the capability openness system is communicatively connected to an upper application system, a second communication interface of the capability openness system is communicatively connected to a capability gateway, and the upper application system calls a communication capability of the capability gateway through the capability openness system, the method comprising:
receiving a capability calling request in a first set format sent by any upper application system, wherein the capability calling request in the first set format comprises to-be-called capability identification information and a data object;
converting the data object into a data object with a set data structure, wherein the set data structure is in a NodeMsg format;
according to the data object, determining the identification information of any upper application system, the identification information of the target lower terminal and the communication content information;
determining the to-be-called capability and a target capability gateway corresponding to the to-be-called capability according to the to-be-called capability identification information, and generating a capability calling request in a second set format, which can be received by the target capability gateway, wherein the capability calling request in the second set format carries identification information of any one upper application system, identification information of the target lower terminal and the communication content information;
and sending the capability calling request with the second set format to the target capability gateway.
2. The capability calling method of claim 1,
after receiving the capability calling request in the first set format, before determining the identification information of any upper application system, the identification information of the target lower terminal, and the communication content information according to the data object, the method further includes:
adding the data object to a to-be-processed request queue corresponding to the to-be-called capability according to the to-be-called capability identification information;
determining the identification information of any upper application system, the identification information of the target lower terminal and the communication content information according to the data object, specifically comprising:
acquiring the data object from the request queue to be processed;
and analyzing the data object based on the set processing logic corresponding to the to-be-called capability to acquire the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
3. The capability calling method of claim 1,
after generating the capability call request in the second set format, before sending the capability call request in the second set format to the target capability gateway, the method further includes:
adding the capability calling request with the second set format to a request queue to be sent corresponding to the capability to be called;
sending the capability calling request with the second set format to the target capability gateway, specifically including:
acquiring the capacity calling request in the second set format from the request queue to be sent;
and sending the capability calling request with the second set format to the target capability gateway so that the target capability gateway executes communication capability according to the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
4. A method for invoking receipt, applied to a capability openness system, wherein a first communication interface of the capability openness system is communicatively connected to an upper application system, a second communication interface of the capability openness system is communicatively connected to a capability gateway, and the upper application system invokes a communication capability of the capability gateway through the capability openness system, the method comprising:
receiving receipt information in a second set format sent by any one capability gateway, wherein the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request in the second set format by any one of the capability gateways according to calling request identification information carried in the capability calling request in the second set format received in advance;
determining the calling request identification information corresponding to the receipt identification information and the call-back address information corresponding to the pre-stored calling request identification information;
converting the receipt information in the second set format into receipt information in the first set format which can be sent by the first communication interface, and sending the receipt information in the first set format to an upper application system which issues a capability calling request in the second set format according to the callback address information, wherein the capability calling request in the second set format is generated by the capability open system converting the data object into a data object with a set data structure after receiving the capability request in the first set format which is sent by the upper application system and comprises the to-be-called capability identification information and the data object, determining the identification information of the upper application system, the identification information of a target lower terminal and communication content information according to the data object, and determining the to-be-called capability and a target capability gateway corresponding to the to-be-called capability according to the to-be-called capability identification information, wherein, the setting data structure is in NodeMsg format.
5. A method for invoking receipt, applied to a capability openness system, wherein a first communication interface of the capability openness system is communicatively connected to an upper application system, a second communication interface of the capability openness system is communicatively connected to a capability gateway, and the upper application system invokes a communication capability of the capability gateway through the capability openness system, the method comprising:
receiving receipt information in a second set format sent by any one capability gateway, wherein the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request by any one of the capability gateways according to the calling request identification information of the capability calling request received in advance;
converting the receipt information in the second set format into receipt information in a first set format which can be transmitted through the first communication interface, and correspondingly storing the receipt information in the first set format and the receipt identification information;
receiving a receipt acquiring request in a first set format sent by an upper application system, wherein the receipt acquiring request in the first set format carries receipt request identification information, and the receipt request identification information is configured to the receipt acquiring request in the first set format by the upper application system according to call request identification information of the call request returned by a capability open system;
according to the prestored corresponding relationship among the receipt request identification information, the receipt identification information and the call request identification information, acquiring the receipt information in the first set format corresponding to the receipt acquisition request in the first set format, and returning the receipt information in the first set format to the upper application system, wherein the capability call request is generated by the capability open system converting the data object into the data object with the set data structure after receiving the capability request in the first set format, which is sent by the upper application system and comprises the to-be-called capability identification information and the data object, determining the identification information of the upper application system, the identification information of the target lower terminal and the communication content information according to the data object, determining the to-be-called capability and the target capability gateway corresponding to the to-be-called capability according to the to-be-called capability identification information, wherein, the setting data structure is in NodeMsg format.
6. An information processing method is applied to a capability openness system, wherein a first communication interface of the capability openness system is in communication connection with an upper application system, a second communication interface of the capability openness system is in communication connection with a capability gateway, and the capability gateway sends information to the upper application system through the capability openness system, and the method comprises the following steps:
receiving information to be sent in a first set format sent by any capacity gateway, wherein the information to be sent in the first set format carries identification information of a target upper application system;
converting the information to be transmitted in the first set format into information to be transmitted in a second set format which can be transmitted through the first communication interface;
determining a target upper layer application system for receiving the information to be sent in the first set format according to the identification information of the target upper layer application system, and sending the information to be sent in the second set format to the target upper layer application system;
after receiving information to be transmitted in a first set format sent by any capability gateway, before converting the information to be transmitted in the first set format into information to be transmitted in a second set format capable of being transmitted through the first communication interface, the method further includes: performing set logic processing on the information to be sent in the first set format; wherein, the logic processing for setting the information to be sent in the first setting format includes any one or more of the following: determining that the identification information of the target upper application system belongs to a pre-stored legal user set; filtering set keywords in the information to be sent in the first set format; allocating identification information which can be used for uniquely identifying the information to be sent in the first set format to the information to be sent in the first set format; and storing the information to be transmitted in the first set format.
7. The information processing method according to claim 6,
after receiving information to be transmitted in a first set format sent by any capability gateway, before performing logic processing for setting the information to be transmitted in the first set format, the method further includes: adding the information to be sent in the first set format to an information queue to be processed corresponding to any one capability gateway; and/or the presence of a gas in the gas,
after the logic processing for setting the information to be transmitted in the first set format is performed, before converting the information to be transmitted in the first set format into the information to be transmitted in the second set format that can be transmitted through the first communication interface, the method further includes: and adding the information to be sent in the first set format to an information queue to be sent corresponding to any one capability gateway.
8. A capability opening system is characterized by comprising a first interface unit, a processing unit, a conversion unit and a second interface unit, wherein the first interface unit is in communication connection with an upper application system, the second interface unit is in communication connection with a capability gateway, and the upper application system calls the communication capability of the capability gateway through the capability opening system, wherein:
the first interface unit is used for receiving a capability calling request in a first set format sent by any upper application system, wherein the capability calling request in the first set format comprises to-be-called capability identification information and a data object;
the processing unit is used for determining the identification information of any upper application system, the identification information of a target lower terminal and the communication content information according to the data object;
the first interface unit is further configured to, after receiving the capability call request in the first set format, convert the data object into a data object having a set data structure before the processing unit determines, according to the data object, the identification information of the any upper application system, the identification information of the target lower terminal, and the communication content information;
the conversion unit is configured to determine, according to the to-be-called capability identification information, a to-be-called capability and a target capability gateway corresponding to the to-be-called capability, and generate a capability calling request in a second set format that can be received by the target capability gateway, where the capability calling request in the second set format carries identification information of any one of the upper application systems, identification information of the target lower terminal, and the communication content information;
and the second interface unit is used for sending the capability calling request with the second set format to the target capability gateway.
9. The capability openness system of claim 8,
the processing unit is further configured to add the data object to a to-be-processed request queue corresponding to the to-be-called capability according to the to-be-called capability identification information before determining the identification information of the any upper application system, the identification information of the target lower terminal, and the communication content information according to the data object;
the processing unit is specifically configured to obtain the data object from the to-be-processed request queue; and analyzing the data object based on the set processing logic corresponding to the to-be-called capability to acquire the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
10. The capability openness system of claim 9,
the conversion unit is further configured to, after the capability calling request in the second set format is generated, add the capability calling request in the second set format to a to-be-sent request queue corresponding to the to-be-called capability before the second interface unit sends the capability calling request in the second set format to the target capability gateway;
the second interface unit is specifically configured to obtain the capability call request in the second set format from the request queue to be sent; and sending the capability calling request with the second set format to the target capability gateway so that the target capability gateway executes communication capability according to the identification information of any upper application system, the identification information of the target lower terminal and the communication content information.
11. A capability opening system is characterized by comprising a first interface unit, a processing unit, a conversion unit and a second interface unit, wherein the first interface unit is in communication connection with an upper application system, the second interface unit is in communication connection with a capability gateway, and the upper application system calls the communication capability of the capability gateway through the capability opening system, wherein:
the second interface unit is configured to receive receipt information in a second set format sent by any one of the capability gateways, where the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request in the second set format by any one of the capability gateways according to calling request identification information carried in the capability calling request in the second set format received in advance;
the processing unit is used for determining the calling request identification information corresponding to the receipt identification information and the call-back address information corresponding to the pre-stored calling request identification information;
the conversion unit is used for converting the receipt information in the second set format into the receipt information in the first set format which can be sent by the first interface unit;
the first interface unit is used for sending the receipt information in the first set format to an upper application system issuing a capability calling request in the second set format according to the callback address information, wherein, the capability calling request in the second set format is that the capability open system converts the data object into a data object with a set data structure after receiving the capability request in the first set format, which is sent by the upper application system and includes the identification information of the capability to be called and the data object, and according to the data object, determining the identification information of the upper application system, the identification information of the target lower terminal and the communication content information, and determining the to-be-called capability and a target capability gateway corresponding to the to-be-called capability according to the to-be-called capability identification information, wherein the set data structure is in a NodeMsg format.
12. A capability opening system is characterized by comprising a first interface unit, a processing unit, a conversion unit and a second interface unit, wherein the first interface unit is in communication connection with an upper application system, the second interface unit is in communication connection with a capability gateway, and the upper application system calls the communication capability of the capability gateway through the capability opening system, wherein:
the second interface unit is configured to receive receipt information in a second set format sent by any one of the capability gateways, where the receipt information in the second set format carries receipt identification information; the receipt identification information is configured to the receipt information in the second set format corresponding to the capability calling request by any one of the capability gateways according to the calling request identification information of the capability calling request received in advance;
the conversion unit is used for converting the receipt information in the second set format into the receipt information in the first set format which can be transmitted through the first interface unit, and correspondingly storing the receipt information in the first set format and the receipt identification information;
the first interface unit is configured to receive a receipt acquiring request in a first set format sent by an upper application system, where the receipt acquiring request in the first set format carries receipt request identification information, and the receipt request identification information is configured to the receipt acquiring request in the first set format by the upper application system according to call request identification information of the call request returned by the capability open system;
the processing unit is used for acquiring the receipt information in the first set format corresponding to the receipt acquisition request in the first set format according to the corresponding relationship among the receipt request identification information, the receipt identification information and the call request identification information which are stored in advance;
the first interface unit is further configured to return the receipt information in the first set format to the upper application system, where the capability calling request is generated after the capability open system receives a capability request, which is sent by the upper application system and includes identification information of a to-be-called capability and a first set format of a data object, converts the data object into a data object with a set data structure, determines identification information of the upper application system, identification information of a target lower terminal, and communication content information according to the data object, and determines, according to the identification information of the to-be-called capability and a target capability gateway corresponding to the to-be-called capability, where the set data structure is a nodelmsg format.
13. A capability opening system is characterized by comprising a first interface unit, a conversion unit and a second interface unit, wherein the first interface unit is in communication connection with an upper application system, the second interface unit is in communication connection with a capability gateway, and the capability gateway sends information to the upper application system through the capability opening system, wherein:
the second interface unit is used for receiving information to be sent in a first set format sent by any one capability gateway, wherein the information to be sent in the first set format carries identification information of a target upper application system;
the conversion unit is used for converting the information to be transmitted in the first set format into the information to be transmitted in the second set format which can be transmitted through the first interface unit;
the first interface unit is configured to determine, according to the identification information of the target upper layer application system, a target upper layer application system for receiving the information to be sent in the first set format, and send the information to be sent in the second set format to the target upper layer application system;
the capability opening system further comprises a processing unit, configured to perform logic processing for setting information to be sent in a first set format before the conversion unit converts the information to be sent in the first set format into information to be sent in a second set format, which can be transmitted by the first interface unit, after the second interface unit receives the information to be sent in the first set format, which is sent by any one of the capability gateways;
the processing unit is configured to perform logic processing for setting the information to be sent in the first set format in any one or more of the following manners: determining that the identification information of the target upper application system belongs to a pre-stored legal user set; filtering set keywords in the information to be sent in the first set format; allocating identification information which can be used for uniquely identifying the information to be sent in the first set format to the information to be sent in the first set format; and storing the information to be transmitted in the first set format.
14. The capability openness system of claim 13,
the processing unit is further configured to add the information to be sent in the first set format to the information queue to be processed corresponding to any one of the capability gateways before performing set logic processing on the information to be sent in the first set format; and/or after the logic processing for setting the information to be sent in the first set format is performed, before the conversion unit converts the information to be sent in the first set format into the information to be sent in the second set format which can be transmitted through the first interface unit, the information to be sent in the first set format is added to the information queue to be sent corresponding to any capability gateway.
CN201710854681.1A 2017-09-20 2017-09-20 Capability calling method, call receipt method, information processing method and system Active CN109525539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710854681.1A CN109525539B (en) 2017-09-20 2017-09-20 Capability calling method, call receipt method, information processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710854681.1A CN109525539B (en) 2017-09-20 2017-09-20 Capability calling method, call receipt method, information processing method and system

Publications (2)

Publication Number Publication Date
CN109525539A CN109525539A (en) 2019-03-26
CN109525539B true CN109525539B (en) 2021-04-02

Family

ID=65769541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710854681.1A Active CN109525539B (en) 2017-09-20 2017-09-20 Capability calling method, call receipt method, information processing method and system

Country Status (1)

Country Link
CN (1) CN109525539B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405035A (en) * 2020-03-13 2020-07-10 北京旷视科技有限公司 Data transmission method and data channel system
CN115529589A (en) * 2021-06-24 2022-12-27 中移(成都)信息通信科技有限公司 Capability opening method, capability opening device, communication equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969469A (en) * 2010-10-25 2011-02-09 华为技术有限公司 Callback processing method and device in telecom capability opening
CN102196006A (en) * 2010-03-17 2011-09-21 中国移动通信集团公司 Open system for providing resources for application program
CN102573112A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Telecommunication network capability opening method, system and alliance support platform
CN103813329A (en) * 2012-11-14 2014-05-21 中国移动通信集团公司 Capability calling method and capability opening system
CN103812838A (en) * 2012-11-13 2014-05-21 中国移动通信集团公司 Service calling method and device and system
WO2016045708A1 (en) * 2014-09-23 2016-03-31 Nokia Solutions And Networks Oy Control of communication using service function chaining

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196006A (en) * 2010-03-17 2011-09-21 中国移动通信集团公司 Open system for providing resources for application program
CN101969469A (en) * 2010-10-25 2011-02-09 华为技术有限公司 Callback processing method and device in telecom capability opening
CN102573112A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Telecommunication network capability opening method, system and alliance support platform
CN103812838A (en) * 2012-11-13 2014-05-21 中国移动通信集团公司 Service calling method and device and system
CN103813329A (en) * 2012-11-14 2014-05-21 中国移动通信集团公司 Capability calling method and capability opening system
WO2016045708A1 (en) * 2014-09-23 2016-03-31 Nokia Solutions And Networks Oy Control of communication using service function chaining

Also Published As

Publication number Publication date
CN109525539A (en) 2019-03-26

Similar Documents

Publication Publication Date Title
US9215079B2 (en) Servlet API and method for XMPP protocol
EP2888868B1 (en) Calling an unready terminal
CN104717647B (en) Professional ability method for authenticating, equipment and system
CN111294235B (en) Data processing method, device, gateway and readable storage medium
CN108696523B (en) Response method and device for call service
US8027435B2 (en) Method and system for protocol embedded automated test control
CN112073923A (en) Communication method, device, gateway and readable storage medium compatible with multiple operators
CN109525539B (en) Capability calling method, call receipt method, information processing method and system
WO2024021405A1 (en) Data transmission system and method
CN106970843B (en) Remote calling method and device
CN113556359A (en) Communication protocol conversion method, device, system and gateway device
US10204098B2 (en) Method and system to communicate between devices through natural language using instant messaging applications and interoperable public identifiers
US20150358263A1 (en) Communication between a web application instance connected to a connection server and a calling entity other than said connection server
CN110620721A (en) Gateway equipment, application method and service system
CN114040032A (en) Protocol conversion method, system, storage medium and electronic equipment
CN113360386A (en) Switching chip drive test method, device, electronic equipment and storage medium
KR102553478B1 (en) Arrangement method of resources necessary for network function, storage medium and electronic device
CN110022332B (en) Hypertext transfer security protocol proxy method, device, equipment and medium
US11115528B1 (en) Call control service
CN114979128A (en) Cross-region communication method and device and electronic equipment
CN112433870A (en) Data calling method and device, computer readable storage medium and electronic equipment
CN108809900B (en) Framework and method for unified resource access
CN109582481A (en) Transmission method, device, equipment and the storage medium of call result
CN111371823A (en) Method for client to access micro-service in non-WEB scene
CN112765246B (en) Task processing method, device, electronic equipment and storage medium

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