CN1859120A - System and method for realizing service - Google Patents
System and method for realizing service Download PDFInfo
- Publication number
- CN1859120A CN1859120A CNA2006100567544A CN200610056754A CN1859120A CN 1859120 A CN1859120 A CN 1859120A CN A2006100567544 A CNA2006100567544 A CN A2006100567544A CN 200610056754 A CN200610056754 A CN 200610056754A CN 1859120 A CN1859120 A CN 1859120A
- Authority
- CN
- China
- Prior art keywords
- service
- router
- client
- business
- application server
- 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.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供一种实现业务的系统和方法,其关键在于,该系统包括应用服务器、业务路由器、业务信息处理中心和业务客户端。当业务客户端需要请求某个业务时,业务客户端将获得的业务地址携带于业务请求消息发送给业务路由器;业务路由器再将业务请求消息转发给应用服务器;应用服务器根据业务地址执行业务过程,并在业务执行过程中向业务路由器发送特殊指令,业务路由器根据特殊指令激活相应的业务触发逻辑,业务路由器在当前业务以后的执行过程中判断是否发生触发事件,如果发生,则根据业务触发逻辑进行相应的处理;否则,不作处理。应用本发明方案,不但可以加强对业务的管理,而且可以根据灵活制定的业务触发逻辑来满足用户灵活实现业务的需求。
The invention provides a system and method for realizing services, the key of which is that the system includes an application server, a service router, a service information processing center and a service client. When the service client needs to request a certain service, the service client carries the obtained service address in the service request message and sends it to the service router; the service router then forwards the service request message to the application server; the application server executes the service process according to the service address, And send special instructions to the service router during the service execution process. The service router activates the corresponding service trigger logic according to the special instruction. The service router judges whether a trigger event occurs during the execution of the current service. Corresponding processing; otherwise, no processing. By applying the scheme of the invention, not only can the management of services be strengthened, but also the needs of users for flexibly implementing services can be met according to the flexibly formulated service trigger logic.
Description
技术领域technical field
本发明涉及网络业务技术,特别是涉及一种实现业务的系统及方法。The invention relates to network service technology, in particular to a system and method for realizing service.
背景技术Background technique
目前,运营商和业务提供者可以通过电信网络或互联网向用户提供业务服务,满足用户的服务需求。Currently, operators and service providers can provide users with business services through telecommunication networks or the Internet to meet users' service needs.
但不管是基于电信网络的业务,还是基于互联网的业务,业务与业务之间一般是相互独立的,实现业务时不灵活。比如,用户每次只能申请和执行一个业务。而在实际应用中,用户希望能够灵活实现业务来满足需求。比如,当用户在实现某一个业务的过程中,希望在发生某一个触发事件时,可以激活或触发另外一个业务,或者进行特殊的处理。又比如,用户希望一次订阅多个业务等。However, regardless of whether it is a service based on a telecommunication network or an Internet-based service, the services are generally independent of each other, and it is not flexible to realize the service. For example, a user can only apply for and execute one service at a time. In practical applications, users hope to be able to implement services flexibly to meet requirements. For example, when a user is implementing a certain service, he wishes to activate or trigger another service or perform special processing when a certain trigger event occurs. Another example is that the user wishes to subscribe to multiple services at one time.
但是,在现有技术中,数量庞大的业务与业务之间不但是独立的,而且是分散的,没有进行统一管理,导致了难以根据用户需求灵活实现业务。However, in the prior art, a large number of services are not only independent, but also scattered, without unified management, which makes it difficult to flexibly implement services according to user requirements.
由此可见,在现有技术中,还没有一种可以灵活实现业务的系统和方法。It can be seen that, in the prior art, there is no system and method that can flexibly implement services.
发明内容Contents of the invention
有鉴于此,本发明的主要目的在于提供一种可以灵活实现业务的系统和方法。本发明提出的技术方案为:In view of this, the main purpose of the present invention is to provide a system and method that can flexibly implement services. The technical scheme that the present invention proposes is:
一种实现业务的系统,该系统至少包括:A system for realizing business, the system at least includes:
业务客户端,用于存储业务地址,通过业务路由器向应用服务器发送携带有业务地址的业务请求消息,并在业务执行过程中与应用服务器进行交互;The service client is used to store the service address, send a service request message carrying the service address to the application server through the service router, and interact with the application server during service execution;
业务路由器,用于根据应用服务器发送的特殊指令激活相应的业务触发逻辑,根据业务触发逻辑和触发事件进行相应的处理,转发应用服务器和业务客户端之间的交互消息;The service router is used to activate the corresponding service trigger logic according to the special instruction sent by the application server, perform corresponding processing according to the service trigger logic and trigger events, and forward the interactive messages between the application server and the service client;
应用服务器,用于接收业务客户端发送的携带有业务地址的业务请求消息,根据业务地址执行业务过程,在业务执行过程中向业务路由器发送特殊指令,以及与业务客户端进行交互。The application server is used to receive the service request message carrying the service address sent by the service client, execute the service process according to the service address, send special instructions to the service router during the service execution process, and interact with the service client.
较佳地,所述业务客户端包括:Preferably, the business client includes:
业务处理模块,用于访问业务信息管理模块,获得业务地址,并通过业务路由器向应用服务器发送携带有业务地址的业务请求消息,并在业务执行过程中与应用服务器进行交互;The service processing module is used to access the service information management module, obtain the service address, and send a service request message carrying the service address to the application server through the service router, and interact with the application server during service execution;
业务信息管理模块,用于存储业务地址。The business information management module is used for storing business addresses.
较佳地,所述业务路由器包括:Preferably, the service router includes:
业务触发逻辑模块,用于根据应用服务器发送的特殊指令激活业务触发逻辑,根据业务触发逻辑和触发事件进行相应的处理;The business trigger logic module is used to activate the business trigger logic according to the special instruction sent by the application server, and perform corresponding processing according to the business trigger logic and trigger events;
业务路由功能模块,用于转发应用服务器和业务客户端之间交互的业务相关消息。The service routing function module is used for forwarding service-related messages exchanged between the application server and the service client.
较佳地,所述应用服务器包括:Preferably, the application server includes:
业务逻辑处理模块,用于接收业务客户端发送的携带有业务地址的业务请求消息,根据业务地址执行业务过程,实现与业务客户端的相互;The business logic processing module is used to receive the business request message carrying the business address sent by the business client, execute the business process according to the business address, and realize the interaction with the business client;
触发逻辑控制模块,用于根据业务逻辑处理模块发送的特殊指令通知消息件向业务路由器发送特殊指令。The trigger logic control module is used to send a special instruction to the service router according to the special instruction notification message sent by the service logic processing module.
较佳地,该系统进一步包括:Preferably, the system further includes:
业务信息处理中心,用于存储业务地址信息、业务鉴权信息和业务触发逻辑,并根据由业务路由器发送的业务逻辑请求消息将业务触发逻辑返回给业务路由器,根据业务客户端通过业务路由器将业务地址信息和业务鉴权信息返回给业务客户端;The service information processing center is used to store service address information, service authentication information and service trigger logic, and return the service trigger logic to the service router according to the service logic request message sent by the service router. The address information and service authentication information are returned to the service client;
所述业务路由器进一步用于:向业务信息处理中心发送业务逻辑请求消息,并接收由业务信息处理中心返回的业务逻辑;The service router is further configured to: send a service logic request message to the service information processing center, and receive the service logic returned by the service information processing center;
所述业务客户端进一步用于:通过业务路由器向业务信息处理中心发送订阅请求消息,并接收由业务路由器返回的业务地址和业务鉴权信息。The service client is further configured to: send a subscription request message to the service information processing center through the service router, and receive the service address and service authentication information returned by the service router.
较佳地,其特征在于,所述业务信息处理中心包括:Preferably, it is characterized in that the business information processing center includes:
业务信息数据库,用于存储业务地址信息、业务鉴权信息和业务触发逻辑;Business information database, used to store business address information, business authentication information and business trigger logic;
触发逻辑管理模块,用于根据由业务路由器发送的业务逻辑请求消息,访问业务信息数据库,并将业务触发逻辑返回给业务路由器;The trigger logic management module is used to access the service information database according to the service logic request message sent by the service router, and return the service trigger logic to the service router;
用户请求处理模块,用于根据业务客户端通过业务路由器发送的消息将业务地址信息和业务鉴权信息发送给业务客户端。The user request processing module is used to send the service address information and service authentication information to the service client according to the message sent by the service client through the service router.
较佳地,所述应用服务器进一步包括:Preferably, the application server further includes:
触发鉴权管理模块,用于接收业务客户端通过业务路由器发送的携带有业务鉴权信息的业务请求消息,根据鉴权信息进行鉴权处理过程,并将处理结果发送给业务逻辑处理模块。The trigger authentication management module is used to receive the service request message carrying the service authentication information sent by the service client through the service router, perform authentication processing according to the authentication information, and send the processing result to the service logic processing module.
本发明的另一发明目的是这样实现的,一种实现业务的方法,利用包括有应用服务器、业务路由器和业务客户端的系统,该方法包括以下步骤:Another inventive object of the present invention is achieved like this, a kind of method for realizing service, utilizes the system that comprises application server, service router and service client, and this method comprises the following steps:
a、业务客户端将获得的业务地址携带于业务请求消息中发送给业务路由器,业务路由器再将业务请求消息转发给应用服务器;a. The service client carries the obtained service address in the service request message and sends it to the service router, and the service router forwards the service request message to the application server;
b、应用服务器根据业务地址执行业务过程,并在业务执行过程中向业务路由器发送特殊指令,业务路由器根据特殊指令激活相应的业务触发逻辑,并在发生触发事件时根据业务触发逻辑进行相应的处理。b. The application server executes the business process according to the service address, and sends special instructions to the service router during the service execution process, and the service router activates the corresponding service trigger logic according to the special command, and performs corresponding processing according to the service trigger logic when a trigger event occurs .
较佳地,步骤a所述业务客户端获得业务地址的方法为:Preferably, the method for the service client in step a to obtain the service address is:
业务客户端向业务信息处理中心发送订阅请求消息,业务信息处理中心将业务地址携带于订阅响应消息返回给业务客户端。The service client sends a subscription request message to the service information processing center, and the service information processing center carries the service address in the subscription response message and returns it to the service client.
较佳地,步骤a所述的业务请求消息中包括业务客户端事先获得的业务鉴权信息;Preferably, the service request message in step a includes service authentication information obtained by the service client in advance;
步骤a和步骤b之间进一步包括:应用服务器进行鉴权处理,并根据鉴权结果判断业务客户端是否有权访问,如果有,则继续执行;否则,退出本流程。Between step a and step b further includes: the application server performs authentication processing, and judges whether the service client has the right to access according to the authentication result, and if so, continues to execute; otherwise, exits the process.
较佳地,所述业务鉴权信息为经过加密的业务鉴权信息;Preferably, the service authentication information is encrypted service authentication information;
所述应用服务器进行鉴权处理的方法为:应用服务器将业务鉴权信息进行解密,再将解码后的业务鉴权信息与事先保存在本地的业务鉴权信息进行比较,根据比较的情况获得鉴权结果。The method for the application server to perform authentication processing is as follows: the application server decrypts the service authentication information, and then compares the decoded service authentication information with the service authentication information stored locally in advance, and obtains the authentication information based on the comparison. right result.
较佳地,所述业务客户端事先获得用户鉴权信息的方法为:Preferably, the method for the service client to obtain user authentication information in advance is:
业务客户端向业务信息处理中心发送订阅请求消息,业务信息处理中心将用户鉴权信息携带于订阅响应消息返回给业务客户端。The service client sends a subscription request message to the service information processing center, and the service information processing center carries the user authentication information in the subscription response message and returns it to the service client.
较佳地,步骤a所述业务客户端将业务请求消息发送给业务路由器,和业务路由器将业务请求消息转发给应用服务器之间进一步包括:Preferably, the service client in step a sends the service request message to the service router, and the service router forwards the service request message to the application server, further comprising:
业务路由器判断本地是否存在业务触发逻辑,如果有,则不作处理;否则,业务路由器向业务信息处理中心发送携带有业务地址的业务逻辑请求消息,业务信息处理中心将与业务地址对应的业务触发逻辑返回给业务路由器。The service router judges whether there is a service trigger logic locally, and if so, it does not process it; otherwise, the service router sends a service logic request message carrying a service address to the service information processing center, and the service information processing center sends the service trigger logic corresponding to the service address Return to the service router.
较佳地,在业务执行的过程中,当应用服务器需要与业务客户端进行交互时,应用服务器或业务客户端先将交互消息发送给业务路由器,业务路由器将交互消息预处理后发送给业务客户端或应用服务器。Preferably, in the process of service execution, when the application server needs to interact with the service client, the application server or the service client first sends the interaction message to the service router, and the service router sends the interaction message to the service client after preprocessing end or application server.
综上所述,本发明提出的一种实现业务的系统和方法,由于每一个业务都有业务地址,并且对业务、业务触发逻辑、业务地址等相关信息进行统一管理,业务客户端不但可以通过订阅消息同时获得多个业务地址,实现同时订阅多个业务,而且还可以很方便地触发多个业务,或者在一个业务的执行过程中能触发另外一个业务,达到灵活实现业务的目的。To sum up, in the system and method for realizing business proposed by the present invention, since each business has a business address, and the business, business trigger logic, business address and other related information are uniformly managed, the business client can not only pass Subscribe to messages to obtain multiple service addresses at the same time, realize simultaneous subscription to multiple services, and can also easily trigger multiple services, or trigger another service during the execution of one service, so as to achieve the purpose of flexible business implementation.
附图说明Description of drawings
图1是本发明方案的系统基本结构示意图;Fig. 1 is the system basic structure schematic diagram of the scheme of the present invention;
图2是应用本发明方案的系统实施例基本结构示意图。Fig. 2 is a schematic diagram of the basic structure of a system embodiment applying the solution of the present invention.
图3是本发明方案实现业务的流程图;Fig. 3 is the flow chart of the scheme of the present invention realizing business;
图4是应用本发明方案的方法实施例的流程图。Fig. 4 is a flowchart of an embodiment of a method applying the scheme of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
图1显示了本发明实现业务的系统结构示意图。如图1所示,该系统至少包括:Fig. 1 shows a schematic structural diagram of the system for implementing services in the present invention. As shown in Figure 1, the system includes at least:
业务客户端101,用于存储业务地址,通过业务路由器102向应用服务器103发送携带有业务地址的业务请求消息,并在业务执行过程中与应用服务器103进行交互;The
业务路由器102,用于根据应用服务器103发送的特殊指令激活相应的业务触发逻辑,还用于转发应用服务器103和业务客户端101之间的交互消息;The
应用服务器103,用于接收业务客户端101发送的携带有业务地址的业务请求消息,根据业务地址执行所请求的业务过程,并在业务执行过程中与业务客户端101进行交互,以及向业务路由器102发送特殊指令;The
为了能对业务的业务地址、用户订阅等进行统一管理和服务,本发明还可以进一步包括业务信息处理中心104。业务信息处理中心104用于存储业务地址信息、业务鉴权信息和业务触发逻辑,并根据由业务路由器102发送的业务逻辑请求消息将业务触发逻辑返回给业务路由器102,根据业务客户端101通过业务路由器102将业务地址信息和业务鉴权信息返回给业务客户端101。In order to perform unified management and service on business addresses, user subscriptions, etc., the present invention may further include a business
当然,在实际应用中,系统中也可以不包括业务信息处理中心,而是将业务地址等与业务相关的信息事先保存在业务客户端中。Of course, in practical applications, the system may not include a service information processing center, but the service address and other service-related information are stored in the service client in advance.
系统实施例System embodiment
图2显示了应用本发明方案的实现业务的系统基本结构图。如图2所示,本实施例中,包括:业务客户端201、业务路由器202、应用服务器203、业务信息处理中心204。Fig. 2 has shown the basic structural diagram of the system implementing the service applying the scheme of the present invention. As shown in FIG. 2 , in this embodiment, it includes: a
其中,业务客户端201包括:业务处理模块2011,用于访问业务信息管理模块2012,获得业务地址,通过业务路由功能模块2022向触发鉴权管理模块2032发送业务请求消息,并接收返回的鉴权响应消息,还用于在业务执行的过程中,通过业务路由功能模块2022实现与业务逻辑处理模块2031之间进行的交互;业务信息管理模块2012,用于存储业务地址和业务鉴权信息。Wherein, the
业务路由器202包括:业务触发逻辑模块2021,用于接收触发逻辑控制模块2033通过路由功能模块2022发送的特殊指令,根据特殊指令激活相应的业务触发逻辑,并在发生触发事件时进行相关处理,用于对应用服务器203和业务客户端201之间的交互消息进行预处理,还通过业务路由功能模块2022用于向触发逻辑管理模块2042发送业务触发逻辑请求消息,并接收返回的业务触发逻辑;业务路由功能模块2022,用于转发应用服务器203和业务客户端201之间的交互消息,并将交互消息发送给业务触发逻辑模块2021进行处理,转发业务信息处理中心204和业务客户端201之间的交互消息。The
应用服务器203包括:业务逻辑处理模块2031,用于接收触发鉴权管理模块2032鉴权处理结果,执行业务过程,并在业务执行过程中通过业务路由功能模块2022实现与业务客户端201之间的交互,以及向触发逻辑控制模块2033发送特殊指令通知消息;触发鉴权管理模块2032,用于接收业务处理模块2011通过业务路由功能模块2022发送的携带有业务鉴权信息的业务请求消息,根据鉴权信息进行鉴权处理过程,并将处理结果发送给业务逻辑处理模块2031;触发逻辑控制模块2033,用于根据业务逻辑处理模块2031发送的特殊指令通知消息向业务触发逻辑模块2021发送特殊指令。The
业务信息处理中心204包括:业务信息数据库2041,用于存储业务地址、业务鉴权信息和业务触发逻辑;触发逻辑管理模块2042,用于接收由业务触发逻辑模块2021通过业务路由功能模块2022发送的业务逻辑请求消息,访问业务信息数据库,并将业务触发逻辑返回给业务触发逻辑模块2021;用户请求处理模块2043,用于接收业务处理模块2011通过业务路由功能模块2022发送的订阅请求消息,并将业务地址信息和业务鉴权信息返回给业务处理模块2011。The service
当业务客户端201要实现业务时,业务处理模块2011访问业务信息管理模块2012,获得业务地址,再将携带有业务地址的业务请求消息发送给业务路由功能模块2022。业务路由功能模块2022将业务请求消息发送给业务触发逻辑模块2021,业务触发逻辑模块2021判断自身是否存在该业务触发逻辑,如果存在,则向业务路由功能模块返回响应消息;否则,业务触发逻辑模块2021向触发逻辑管理模块2042发送业务触发逻辑请求消息;触发逻辑管理模块2042访问业务信息数据库2041,获得业务触发逻辑,并返回给业务触发逻辑模块2021,业务触发逻辑模块2021再向业务路由功能模块2022返回响应消息;然后,业务路由功能模块2022向触发鉴权管理模块2032发送业务请求消息。触发鉴权管理模块2032根据业务请求消息进行鉴权处理,并将处理结果发送给业务逻辑处理模块2031;业务逻辑处理模块2031执行业务,并在业务的执行过程中向触发逻辑控制模块2033发送特殊指令通知消息;触发逻辑控制模块2033通过业务路由功能模块2022向业务触发逻辑模块2021发送特殊指令,业务触发逻辑模块2021激活相应的业务触发逻辑,并在业务的执行过程中实时判断是否有与业务触发逻辑对应的触发事件发生,如果有,则根据业务触发逻辑进行相应的处理;否则,不作处理。When the
其中,业务逻辑处理模块2031、触发逻辑控制模块2033、业务路由功能模块2022、业务触发逻辑模块2021、业务处理模块2011、业务信息管理模块2012都是必须的,而其它的模块可以任意选择。Among them, the business
在实际应用中,如果业务逻辑处理模块2031在业务的执行过程中需要与业务处理模块2011进行交互,则可以通过业务路由功能模块2022进行消息的转发。而业务路由功能模块2022也可以将每一条需要转发的消息发送给业务触发逻辑模块2021进行预处理,再进行转发。In practical application, if the service
另外,本发明中的应用服务器、业务路由器、业务信息处理中心可以是计算机或服务器,业务客户端可以是智能终端或PC,它们之间的交互消息可以采用标准协议来完成,也可以自行定义,只要双方可以识别即可。In addition, the application server, service router, and service information processing center in the present invention can be computers or servers, and the service clients can be smart terminals or PCs. The interactive messages between them can be completed using standard protocols, or can be defined by themselves. As long as both parties can be identified.
针对本发明提出的实现业务的系统,本发明还提出了一种实现业务的方法。图3显示了实现本发明方案的流程图。如图3所示,本发明实现业务的方法包括以下步骤:Aiming at the system for realizing services proposed by the present invention, the present invention also proposes a method for realizing services. Fig. 3 shows a flowchart for realizing the solution of the present invention. As shown in Figure 3, the method for realizing business of the present invention comprises the following steps:
步骤301:业务客户端将获得的业务地址携带于业务请求消息发送给业务路由器;Step 301: The service client carries the obtained service address in the service request message and sends it to the service router;
步骤302:业务路由器再将业务请求消息转发给应用服务器;Step 302: the service router forwards the service request message to the application server;
步骤303:应用服务器根据业务地址执行业务过程,并在业务执行过程中向业务路由器发送特殊指令,业务路由器根据特殊指令激活相应的业务触发逻辑,业务路由器在当前业务以后的执行过程中判断是否发生触发事件,如果发生,则根据业务触发逻辑进行相应的处理;否则,不作处理。Step 303: The application server executes the service process according to the service address, and sends a special instruction to the service router during the service execution process, and the service router activates the corresponding service trigger logic according to the special instruction, and the service router judges whether it occurs in the subsequent execution process of the current service Trigger event, if it occurs, it will be processed according to the business trigger logic; otherwise, it will not be processed.
本发明中,每一个业务都有一个业务地址,业务地址能标识业务自身,是独立于下层网络的逻辑地址。In the present invention, each service has a service address, which can identify the service itself, and is a logical address independent of the underlying network.
本发明中,业务过程就是向用户提供业务服务的过程,或者说是应用服务器开始执行业务程序的过程。在业务过程中,应用服务器一般会与业务客户端进行交互。当然,多个业务客户端之间也有可能进行交互。至于应用服务器与业务客户端之间,多个业务客户端之间如何进行交互是与具体的业务决定的,此处不再赘述。In the present invention, the business process is the process of providing business services to the user, or the process of the application server starting to execute the business program. During the business process, the application server generally interacts with the business client. Of course, it is also possible to interact with multiple business clients. As for the interaction between the application server and the business client, how multiple business clients interact is determined by the specific business, and will not be repeated here.
业务一般有触发事件和业务触发逻辑。其中,触发事件为应用服务器与业务客户端交互的过程中实际发生的事件;业务触发逻辑为业务对触发事件的特殊处理过程,或者称业务触发控制脚本,可以由业务提供者根据业务的特点或用户的需求灵活制定,一般可以采用JavaScript等来实现业务触发逻辑的制定。Businesses generally have trigger events and business trigger logic. Among them, the trigger event is an event that actually occurs during the interaction between the application server and the business client; the business trigger logic is the special processing process of the business on the trigger event, or the business trigger control script, which can be determined by the service provider according to the characteristics of the business or The user's needs can be flexibly formulated, and generally JavaScript can be used to implement the formulation of business trigger logic.
本发明中,应用服务器会在业务执行的过程中向业务路由器发送特殊指令,业务路由器根据特殊指令来激活相应的业务触发逻辑。此后,在业务的执行过程中,即应用服务器与业务客户端的交互过程中,业务路由器将实时判断是否发生与该业务触发逻辑对应的触发事件,如果发生,则根据业务触发逻辑进行相应的处理;否则,不作处理。In the present invention, the application server sends special instructions to the service router during service execution, and the service router activates corresponding service trigger logic according to the special instructions. Thereafter, during the execution of the service, that is, during the interaction between the application server and the service client, the service router will judge in real time whether a trigger event corresponding to the service trigger logic occurs, and if so, perform corresponding processing according to the service trigger logic; Otherwise, do not process.
这里,需要注意的是,当应用服务器发送特殊指令后并不影响自身当前业务的执行过程。所述的特殊指令一般是携带有可以激活业务触发逻辑的参数的消息。业务路由器激活业务触发逻辑以后,并不立即根据业务触发逻辑进行相关处理,而是实时判断是否有触发事件发生,只有触发事件发生时,业务路由器才根据业务触发逻辑进行相关处理。Here, it should be noted that when the application server sends a special instruction, it does not affect the execution process of its own current business. The special instruction is generally a message carrying parameters that can activate service trigger logic. After the service trigger logic is activated, the service router does not immediately perform relevant processing according to the service trigger logic, but judges in real time whether a trigger event occurs. Only when a trigger event occurs, the service router performs relevant processing according to the service trigger logic.
在实际应用中,一个业务可以向业务路由器发送多个特殊指令,业务路由器也有多个与特殊指令对应的业务触发逻辑。至于应用服务器何时向业务路由器发送特殊指令,业务触发逻辑执行什么相关处理则是业务自行确定的。In practical applications, a service can send multiple special instructions to the service router, and the service router also has multiple service trigger logics corresponding to the special instructions. As for when the application server sends a special instruction to the service router, it is up to the service to determine what related processing is performed by the service trigger logic.
方法实施例method embodiment
本实施例中,业务提供者已经将某业务部署到网络中,其部署方法为:将业务存储于应用服务器中,并且在业务信息处理中心对业务进行登记,业务信息处理中心将该业务对应的业务地址、业务鉴权信息和业务触发逻辑保存在本地业务信息数据库中。业务客户端可以通过浏览等方式到业务信息处理中心来查询业务的相关信息。至于如何部署业务,业务客户端如何查询业务的相关信息是比较容易实现的,并且不属于本发明的重点,此处不再进行详细叙述。In this embodiment, the service provider has deployed a certain service to the network. The deployment method is: store the service in the application server, and register the service at the service information processing center, and the service information processing center will Service address, service authentication information and service trigger logic are stored in the local service information database. The business client can go to the business information processing center to inquire about the relevant information of the business by means of browsing or the like. As for how to deploy services, it is relatively easy for a service client to query relevant service information, and it does not belong to the focus of the present invention, and will not be described in detail here.
在实际应用中,业务客户端查询到业务的相关信息以后,可能还需要对业务进行订阅,才可以体验或实现业务。本实施例中,业务客户端订阅业务的方法为:业务客户端通过业务路由器向业务信息处理中心发送订阅请求消息,业务信息处理中心将业务鉴权信息经过加密处理,并将经过加密处理的业务鉴权信息和业务地址携带于订阅响应消息返回给业务客户端。在实际应用中,业务客户端可以在订阅时同时指定多个业务,业务信息处理中心就可以同时返回多个业务地址,即业务客户端可以达到同时订阅多个业务的目的。当实现业务时,业务客户端就可以在多个业务之间进行选择和更换,而不需要改变自身的用户标识。这里,用户标识可以是业务客户端在订阅时由业务信息处理中心分配的信息,也可以就是作为鉴权使用的鉴权信息。In practical applications, after the service client queries the relevant information of the service, it may also need to subscribe to the service before it can experience or realize the service. In this embodiment, the method for the service client to subscribe to the service is as follows: the service client sends a subscription request message to the service information processing center through the service router, and the service information processing center encrypts the service authentication information and converts the encrypted service The authentication information and service address are carried in the subscription response message and returned to the service client. In practical applications, the service client can specify multiple services at the same time when subscribing, and the service information processing center can return multiple service addresses at the same time, that is, the service client can achieve the purpose of simultaneously subscribing to multiple services. When implementing a service, the service client can select and change among multiple services without changing its own user ID. Here, the user identifier may be information assigned by the service information processing center when the service client subscribes, or it may be authentication information used for authentication.
业务客户端成功订阅业务以后,就可以开始实现业务了。图4显示了本实施例实现业务的流程图。如图4所示,业务客户端实现业务的方法包括以下步骤:After the business client successfully subscribes to the business, it can start to realize the business. Fig. 4 shows a flow chart of implementing services in this embodiment. As shown in Figure 4, the method for the business client to realize the business includes the following steps:
步骤401:业务客户端将业务地址和业务鉴权信息携带于业务请求消息发送给业务路由器。Step 401: The service client sends the service address and service authentication information to the service router in a service request message.
在实际应用中,业务地址和业务鉴权信息也可以事先保存在业务客户端中,然后直接利用业务地址和业务鉴权信息开始实现业务。In practical applications, the service address and service authentication information can also be stored in the service client in advance, and then directly use the service address and service authentication information to start implementing services.
另外,在实际应用中,如果业务本身不需要对业务客户端的身份进行识别,如某业务为公共服务业务,可以为任何的业务客户端服务。那么,该业务就无需对业务客户端进行鉴权处理,业务客户端也就无需在业务请求消息中携带业务鉴权信息。In addition, in practical applications, if the business itself does not need to identify the identity of the business client, such as a certain business is a public service business, it can serve any business client. Then, the service does not need to perform authentication processing on the service client, and the service client does not need to carry service authentication information in the service request message.
步骤402:业务路由器根据业务地址判断本地是否存在与业务对应的业务触发逻辑,如果有,则执行步骤404;否则,执行步骤403。Step 402: The service router judges whether there is a service trigger logic corresponding to the service locally according to the service address, and if so, executes step 404; otherwise, executes step 403.
步骤403:业务路由器向业务信息处理中心发送携带有业务地址的业务逻辑请求消息,业务信息处理中心将业务地址所属业务的业务触发逻辑返回给业务路由器。Step 403: The service router sends a service logic request message carrying the service address to the service information processing center, and the service information processing center returns the service trigger logic of the service to which the service address belongs to the service router.
步骤404:业务路由器将携带有业务地址和业务鉴权信息的业务请求消息转发给应用服务器。Step 404: The service router forwards the service request message carrying the service address and service authentication information to the application server.
本步骤中,业务路由器可以不对业务请求消息作任何处理,直接向应用服务器转发该业务请求消息。而在实际应用中,业务路由器可以对业务请求消息进行预处理,然后将处理后的业务请求消息发送给应用服务器。比如:如果规定业务客户端申请执行某业务时,必须同时执行另外一个业务,也就是说,需要在应用服务器中同时执行两个业务。这时,当业务路由器判断出该消息为针对某业务的业务请求消息,就可以将另外一个业务的业务地址等信息填写在本业务请求消息的某个特殊字段中,如业务请求消息的附加信息字段。当应用服务器接收到经过预处理的业务请求消息时,可以根据附加信息字段来启动另外一个业务。In this step, the service router may directly forward the service request message to the application server without performing any processing on the service request message. In practical applications, the service router may preprocess the service request message, and then send the processed service request message to the application server. For example: if it is stipulated that when a service client applies for executing a certain service, another service must be executed at the same time, that is to say, two services need to be executed in the application server at the same time. At this time, when the service router determines that the message is a service request message for a certain service, it can fill in information such as the service address of another service in a special field of the service request message, such as the additional information of the service request message field. When the application server receives the preprocessed service request message, it can start another service according to the additional information field.
在实际应用中,业务路由器不但可以对业务请求消息进行预处理,也可以对所有的应用服务器与业务客户端之间的交互消息进行预处理。所述的预处理一般是业务路由器判断交互消息是否为某一特定消息,如果是,则进行相应的处理。比如:业务客户端发送暂时停止业务的消息,业务路由器则可以暂时停止向应用转发消息,应用服务器由于没有接收到业务客户端的消息,也将暂时不再继续执行业务。In practical applications, the service router can not only preprocess service request messages, but also preprocess all interaction messages between application servers and service clients. The preprocessing is generally that the service router judges whether the interaction message is a specific message, and if so, performs corresponding processing. For example, if the service client sends a message to temporarily stop the service, the service router can temporarily stop forwarding the message to the application, and the application server will not continue to execute the service temporarily because it has not received the message from the service client.
预处理的含义其实与业务触发逻辑的处理比较相似,但预处理是根据交互消息本身来执行相应的操作,而业务触发逻辑的处理则一般是根据业务执行过程中的触发事件来进行相应的处理。The meaning of preprocessing is actually similar to the processing of business trigger logic, but preprocessing is to perform corresponding operations according to the interaction message itself, while the processing of business trigger logic is generally based on the trigger events in the process of business execution. .
步骤405:应用服务器将业务鉴权信息进行解密,再将解密后的业务鉴权信息与事先保存在本地的业务鉴权信息进行比较,根据比较的情况获得鉴权结果。Step 405: The application server decrypts the service authentication information, compares the decrypted service authentication information with the service authentication information stored locally in advance, and obtains the authentication result according to the comparison.
在实际应用中,业务鉴权信息可以为业务信息处理中心分配给用户的特殊信息,如用户标识。当然,业务鉴权信息也可以为其它信息,只要能够作为用户有权访问或实现业务的标识即可。In practical applications, the service authentication information may be special information assigned to the user by the service information processing center, such as a user ID. Of course, the service authentication information may also be other information, as long as it can be used as an identification that the user has the right to access or realize the service.
步骤406:应用服务器根据鉴权结果判断业务客户端是否有权访问,如果有,则继续执行步骤407;否则,退出本流程。Step 406: The application server judges whether the service client has the right to access according to the authentication result, and if so, proceeds to step 407; otherwise, exits the procedure.
在实际应用中,当业务客户端鉴权成功时,应用服务器还可能通过业务路由器向业务客户端发送业务请求成功响应消息;当业务客户端鉴权失败时,则可能通过业务路由器向业务客户端发送业务请求失败响应消息,然后结束流程。In practical applications, when the authentication of the service client is successful, the application server may also send a service request success response message to the service client through the service router; Send a business request failure response message, and then end the process.
步骤407:应用服务器根据业务地址执行业务过程,并在业务执行过程中向业务路由器发送特殊指令,业务路由器根据特殊指令激活相应的业务触发逻辑,业务路由器在以后的业务执行过程中判断是否发生触发事件,如果发生,则根据业务触发逻辑进行相应的处理;否则,不作处理。Step 407: The application server executes the service process according to the service address, and sends a special instruction to the service router during the service execution process, the service router activates the corresponding service trigger logic according to the special instruction, and the service router judges whether a trigger occurs in the subsequent service execution process If an event occurs, it will be processed according to the business trigger logic; otherwise, it will not be processed.
在实际应用中,本步骤是应用服务器开始向业务客户端提供业务服务的主要环节,一般将持续较长的过程。应用服务器、业务路由器和业务客户端将密切配合为客户提供业务服务。在业务执行的过程中,当应用服务器向业务路由器下发特殊指令以后,一方面,应用服务器继续与业务客户端交互,执行业务过程,另一方面,业务路由器则在激活业务触发逻辑之后,实时判断或实时监控是否有触发事件发生。比如:在业务执行的过程中,应用服务器向业务路由器发送一条特殊指令,让业务路由器监控应用服务器和业务客户端之间交互的时间,如果时间为10分钟,则由业务路由器向某一个业务客户端发送短消息报告。这里,对应用服务器和业务客户端的交互进行计时是业务路由器激活业务触发逻辑后开始进行的操作;交互时间10分钟为触发事件;业务路由器向某一个业务客户端发送短消息报告则为业务触发逻辑进行的相关处理。In practical applications, this step is the main link for the application server to start providing business services to the business client, and generally it will last for a long time. The application server, service router and service client will cooperate closely to provide service for customers. In the process of service execution, after the application server sends special instructions to the service router, on the one hand, the application server continues to interact with the service client to execute the service process; Determine or monitor in real time whether a trigger event occurs. For example: in the process of business execution, the application server sends a special instruction to the service router to let the service router monitor the interaction time between the application server and the business client. The terminal sends a short message report. Here, timing the interaction between the application server and the service client is the operation that the service router starts after activating the service trigger logic; the interaction time is 10 minutes as the trigger event; the service router sends a short message report to a certain service client is the service trigger logic related processing.
另外,实际应用中,在某一个业务的执行过程中,还可以由当前业务触发另外一个业务。比如:有某个游戏性质的业务A和业务B,业务A已经处于执行状态,即应用服务器已经开始与业务客户端进行业务交互。如果在执行业务A的过程中,应用服务器向业务路由器下发一条特殊指令,命令业务路由器在业务客户端游戏积分累计到100分时,触发业务B。此后,应用服务器继续执行业务A,并保持与业务客户端的交互,而业务路由器根据特殊指令激活相应的业务触发逻辑,并实时判断业务客户端的积分累计的值。当业务客户端在业务A中的积分累计到100时,业务客户端就自动地向应用服务器发送一条携带有业务B的业务地址的业务请求消息,应用服务器根据业务地址执行业务B,并开始与业务客户端的交互。这时,业务客户端其实同时与两个业务进行交互。当然,业务B在业务A执行的同时需要向同一个业务客户端提供什么服务是由业务自身确定的。比如,业务B可以定时向执行业务A的业务客户端发送某条广告或歌曲等。In addition, in practical applications, during the execution of a certain service, another service may be triggered by the current service. For example: there are certain game-like business A and business B, and business A is already in the execution state, that is, the application server has started to interact with the business client. If in the process of executing service A, the application server sends a special instruction to the service router, instructing the service router to trigger service B when the service client game points accumulate to 100 points. After that, the application server continues to execute service A and maintains the interaction with the service client, while the service router activates the corresponding service trigger logic according to special instructions, and judges the accumulated value of the service client's points in real time. When the accumulated points of the service client in service A reach 100, the service client automatically sends a service request message carrying the service address of service B to the application server, and the application server executes service B according to the service address, and starts communicating with Interaction of business clients. At this time, the business client actually interacts with the two businesses at the same time. Of course, what services business B needs to provide to the same business client while business A is executing is determined by the business itself. For example, service B may periodically send a certain advertisement or song to a service client executing service A.
总之,本发明中,由于业务触发逻辑可以灵活制定,当有触发事件发生时,业务路由器应该进行的相关处理则可以由具体的业务根据自身业务特点和用户需求确定,此处不再穷举。In short, in the present invention, since the service trigger logic can be formulated flexibly, when a trigger event occurs, the relevant processing that the service router should perform can be determined by the specific service according to its own service characteristics and user needs, and will not be exhaustive here.
综上所述,以上仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。To sum up, the above are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2006100567544A CN100382493C (en) | 2006-03-06 | 2006-03-06 | A system and method for realizing business |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2006100567544A CN100382493C (en) | 2006-03-06 | 2006-03-06 | A system and method for realizing business |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1859120A true CN1859120A (en) | 2006-11-08 |
| CN100382493C CN100382493C (en) | 2008-04-16 |
Family
ID=37297987
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2006100567544A Active CN100382493C (en) | 2006-03-06 | 2006-03-06 | A system and method for realizing business |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100382493C (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101800817A (en) * | 2009-02-09 | 2010-08-11 | 中兴通讯股份有限公司 | Method, device, system and service network for realizing service |
| CN101841387A (en) * | 2009-03-19 | 2010-09-22 | 中国移动通信集团江西有限公司 | Wide area network data speed acceleration method, device and system |
| CN102907067A (en) * | 2011-12-26 | 2013-01-30 | 华为技术有限公司 | Cloud platform business delivery method and cloud platform |
| CN108055337A (en) * | 2017-12-22 | 2018-05-18 | 迈普通信技术股份有限公司 | The method and apparatus that multiple service platform docks public platform |
| CN111200648A (en) * | 2019-12-30 | 2020-05-26 | 瑞庭网络技术(上海)有限公司 | Service calling method, device, terminal equipment and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6996072B1 (en) * | 2000-01-19 | 2006-02-07 | The Phonepages Of Sweden Ab | Method and apparatus for exchange of information in a communication network |
| US6711156B1 (en) * | 2000-03-20 | 2004-03-23 | Telefonaktiebolaget L M Ericsson (Publ) | System and method for providing enhanced user-service interaction in an integrated telecommunications network |
| CN1167285C (en) * | 2001-09-19 | 2004-09-15 | 华为技术有限公司 | Method for realizing one-number multi-device service in mobile network based on mobile intelligent service |
| CN1642308A (en) * | 2004-01-01 | 2005-07-20 | 华为技术有限公司 | Method and system for realizing intelligent business triggering of calling part |
-
2006
- 2006-03-06 CN CNB2006100567544A patent/CN100382493C/en active Active
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101800817A (en) * | 2009-02-09 | 2010-08-11 | 中兴通讯股份有限公司 | Method, device, system and service network for realizing service |
| CN101841387A (en) * | 2009-03-19 | 2010-09-22 | 中国移动通信集团江西有限公司 | Wide area network data speed acceleration method, device and system |
| CN102907067A (en) * | 2011-12-26 | 2013-01-30 | 华为技术有限公司 | Cloud platform business delivery method and cloud platform |
| CN102907067B (en) * | 2011-12-26 | 2014-02-19 | 华为技术有限公司 | Cloud platform business delivery method and cloud platform |
| CN108055337A (en) * | 2017-12-22 | 2018-05-18 | 迈普通信技术股份有限公司 | The method and apparatus that multiple service platform docks public platform |
| CN111200648A (en) * | 2019-12-30 | 2020-05-26 | 瑞庭网络技术(上海)有限公司 | Service calling method, device, terminal equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN100382493C (en) | 2008-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1859108A (en) | Data downloading system and method for controlling downloading business effectiveness | |
| CN101068245A (en) | Shared file issuing and downloading method and file sharing control system | |
| CN1492656A (en) | Method, apparatus and system for sharing application session information over multiple channels | |
| CN101034989A (en) | Method, system and router for originating the authentication request via the user terminal | |
| CN1736083A (en) | Session management method and system using client session identification | |
| CN1852309A (en) | Data synchronizing processing method and its client end | |
| CN101047504A (en) | Network log-in authorization method and authorization system | |
| CN1816138A (en) | Content distribution method and relay apparatus | |
| CN1859317A (en) | Method and system for sharing presented information | |
| CN1662004A (en) | Method of implementing multiple service treatment by application server through conversation initiating protocol | |
| CN1893436A (en) | Method and system for up transmitting file on mobile terminal | |
| CN101075886A (en) | Method and device for distributed charging content | |
| CN1798049A (en) | Mobile online game system and method | |
| CN1859120A (en) | System and method for realizing service | |
| CN101060455A (en) | A P2P network application method | |
| CN101079784A (en) | Internet resource searching method and its searching system | |
| CN1889535A (en) | Method and system for processing multi-media value-added business information and utilized gate equipment | |
| CN1968110A (en) | Method for establishing online enterprise and joining online enterprise quickly | |
| CN1946024A (en) | Method and system for identifying service block | |
| CN1805335A (en) | Content supply system based authentication system and method | |
| CN1885861A (en) | Method for searching instantaneous communication user in LAN | |
| CN1863070A (en) | System and method for improving differential safety grade application service | |
| CN1909524A (en) | Automatic configuration method and system for digital household terminal | |
| CN1798135A (en) | Method for improving video monitor of safety authentication, and terminal devices | |
| CN1756241A (en) | Method for realizing message-switching in distributed environment and its device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |