[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103944902B - Realize the method, apparatus and equipment of business polymerization Mashup business - Google Patents

Realize the method, apparatus and equipment of business polymerization Mashup business Download PDF

Info

Publication number
CN103944902B
CN103944902B CN201410162733.5A CN201410162733A CN103944902B CN 103944902 B CN103944902 B CN 103944902B CN 201410162733 A CN201410162733 A CN 201410162733A CN 103944902 B CN103944902 B CN 103944902B
Authority
CN
China
Prior art keywords
component
service
business
mashup
interface
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.)
Expired - Fee Related
Application number
CN201410162733.5A
Other languages
Chinese (zh)
Other versions
CN103944902A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410162733.5A priority Critical patent/CN103944902B/en
Priority claimed from CN201010252829.2A external-priority patent/CN102137136B/en
Publication of CN103944902A publication Critical patent/CN103944902A/en
Application granted granted Critical
Publication of CN103944902B publication Critical patent/CN103944902B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明实施例提供了一种实现Mashup业务的方法、装置和设备,涉及通信技术领域,用于支持多种类型的数据源的Mashup业务。本发明实施例提供的实现业务聚合Mashup业务的方法包括:对数据源的组件进行注册并按照统一的第一格式为所述组件生成业务提供接口;根据业务请求者的业务请求消息,在已注册的所述组件中查询所需的组件,并按照统一的第二格式为所述所需的组件生成业务请求接口,将所述业务提供接口和所述业务请求接口进行匹配;利用所述业务请求接口接收所述业务请求消息,利用所述业务提供接口向所述所需的组件调用业务,利用所述业务请求接口将生成的Mashup业务应答消息发送至业务请求者。

Embodiments of the present invention provide a method, device and equipment for realizing a Mashup service, relate to the field of communication technology, and are used to support Mashup services of various types of data sources. The method for realizing the service aggregation Mashup service provided by the embodiment of the present invention includes: registering the components of the data source and generating a service providing interface for the component according to a unified first format; according to the service request message of the service requester, in the registered Query the required components in the components, and generate a service request interface for the required components according to the unified second format, and match the service provision interface with the service request interface; use the service request The interface receives the service request message, uses the service providing interface to invoke services to the required components, and uses the service request interface to send the generated Mashup service response message to the service requester.

Description

实现业务聚合Mashup业务的方法、装置和设备Method, device and equipment for realizing service aggregation mashup service

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种实现Mashup业务的方法、装置和设备。The present invention relates to the technical field of communication, in particular to a method, device and equipment for realizing Mashup service.

背景技术Background technique

业务聚合(Mashup)是将多个不同的支持Web应用程序接口(Web ApplicationInterface,API)的应用进行堆叠、聚合形成的新型的Web应用。Mashup服务器是一个Web集成平台,它允许用户轻松集成来自任意具有Web API的应用程序的数据和资源,其主要功能包括提供聚合应用逻辑编排功能,聚合应用的执行环境以及和外部数据源、子服务进行通信等。Business aggregation (Mashup) is a new type of Web application formed by stacking and aggregating multiple different applications that support Web Application Interface (API). Mashup server is a web integration platform that allows users to easily integrate data and resources from any application with Web API. Its main functions include providing aggregated application logic orchestration function, aggregated application execution environment, and external data sources and sub-services To communicate, etc.

Mashup起源于因特网(Internet),属于WEB2.0的一种新应用。目前业界众多厂商的解决方案聚焦于web类的应用,以及互联网数据源的集成和融合,如web服务(webservice)数据源、聚合业务(Really Simple Syndication,RSS)数据源、订阅网志(ATOM)数据源等。Mashup originated from the Internet and is a new application of WEB2.0. At present, the solutions of many manufacturers in the industry focus on web applications and the integration and fusion of Internet data sources, such as web service (webservice) data sources, aggregation business (Really Simple Syndication, RSS) data sources, subscription blog (ATOM) data source etc.

在实现本发明的过程中,发明人发现现有技术中至少存在如下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

随着电信运营商对业务能力的开放,业务创建者,如第三方开发者、用户、运营商等,已经可以将稳定的、可信度高且服务质量保障度高的电信服务数据源集成为Mashup业务。但现有的方案中Mashup服务器不支持电信服务数据源的Mashup业务,无法满足用户的需要。As telecom operators open up their business capabilities, service creators, such as third-party developers, users, operators, etc., have been able to integrate stable, reliable and high-quality telecom service data sources into Mashup business. However, the mashup server in the existing solution does not support the mashup service of the telecommunication service data source, which cannot meet the needs of users.

发明内容Contents of the invention

为解决现有技术中存在的问题,本发明的实施例提供一种实现Mashup业务的方法、装置和设备。In order to solve the problems existing in the prior art, the embodiments of the present invention provide a method, device and equipment for realizing the Mashup service.

为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:

一种实现业务聚合Mashup业务的方法,所述方法包括:A method for realizing business aggregation Mashup business, said method comprising:

对数据源的组件进行注册并按照统一的第一格式为所述组件生成业务提供接口;Register the components of the data source and provide an interface for the components to generate services according to a unified first format;

根据业务请求者的业务请求消息,在已注册的所述组件中查询所需的组件,并按照统一的第二格式为所述所需的组件生成业务请求接口,将所述业务提供接口和所述业务请求接口进行匹配;According to the service request message of the service requester, query the required components in the registered components, and generate a service request interface for the required components according to the unified second format, and provide the service interface and the required components Match the above service request interface;

利用所述业务请求接口接收所述业务请求消息,利用所述业务提供接口向所述所需的组件调用业务,利用所述业务请求接口将生成的Mashup业务应答消息发送至业务请求者。Using the service request interface to receive the service request message, using the service providing interface to call services to the required components, and using the service request interface to send the generated Mashup service response message to the service requester.

一种实现业务聚合Mashup业务的装置,所述装置包括:A device for realizing business aggregation Mashup service, said device comprising:

业务提供接口生成单元,用于对数据源的组件进行注册并按照统一的第一格式为所述组件生成业务提供接口;A service providing interface generating unit, configured to register the components of the data source and generate a service providing interface for the components according to a unified first format;

业务请求接口生成单元,用于根据业务请求者的业务请求消息,在已注册的所述组件中查询所需的组件,并按照统一的第二格式为所述所需的组件生成业务请求接口,将所述业务提供接口和所述业务请求接口进行匹配;A service request interface generation unit, configured to query the required components among the registered components according to the service request message of the service requester, and generate a service request interface for the required components according to a unified second format, matching the service providing interface with the service request interface;

业务实现单元,用于利用所述业务请求接口接收所述业务请求消息,利用所述业务提供接口向所述所需的组件调用业务,利用所述业务请求接口将生成的Mashup业务应答消息发送至业务请求者。The service implementation unit is configured to use the service request interface to receive the service request message, use the service provision interface to call services to the required components, and use the service request interface to send the generated Mashup service response message to business requester.

一种网络设备,包括:A network device comprising:

请求消息分析单元,用于对接收到的组件注册请求消息进行分析,将所述组件注册请求消息发送至组件注册单元,所述组件注册请求消息携带组件标识ID,以及,对接收到的业务请求消息进行分析,将所述业务请求消息发送至组件请求处理单元,The request message analysis unit is configured to analyze the received component registration request message, send the component registration request message to the component registration unit, the component registration request message carries the component identification ID, and the received service request The message is analyzed, and the service request message is sent to the component request processing unit,

所述组件注册单元,用于根据组件注册请求消息中携带的所述组件ID,向组件存储单元发送组件查询请求,查询组件存储单元中所有已经注册的组件中是否有相同ID的组件已经注册,如果没有相同ID的组件注册,则调用Mashable API创建单元,以使所述Mashable API创建单元按照统一的第一格式为组件生成业务提供接口;所述组件存储单元,用于存储组件和组件的描述信息,所述描述信息包括组件ID;The component registration unit is configured to send a component query request to the component storage unit according to the component ID carried in the component registration request message, and query whether all registered components in the component storage unit have a component with the same ID registered, If there is no component registration with the same ID, call the Mashable API creation unit, so that the Mashable API creation unit provides an interface for component generation services in a unified first format; the component storage unit is used to store components and component descriptions Information, the description information includes the component ID;

所述组件请求处理单元,用于根据业务请求消息,按照统一的第二格式为组件生成业务请求接口,或者,调用所述Mashable API创建单元以使所述Mashable API创建单元按照统一的第二格式为组件生成业务请求接口,以及利用所述业务请求接口接收所述业务请求消息,利用所述业务提供接口向相应的组件请求业务,利用所述业务请求接口将生成的Mashup业务应答消息发送至业务请求者。The component request processing unit is configured to generate a service request interface for the component according to a unified second format according to the service request message, or call the Mashable API creation unit to make the Mashable API creation unit follow the unified second format Generate a service request interface for the component, and use the service request interface to receive the service request message, use the service providing interface to request service from the corresponding component, and use the service request interface to send the generated Mashup service response message to the service requester.

本发明实施例提供的技术方案,通过采用统一的格式为各个数据源的组件生成业务提供接口或业务请求接口,实现了对各种数据源的统一封装机制,从而能够支持包括电信服务数据源在内的多种类型的数据源通过该交互接口进行Mashup业务的创建和请求,增强了Mashup业务的可扩展性,满足了用户的需要。The technical solution provided by the embodiment of the present invention implements a unified encapsulation mechanism for various data sources by adopting a unified format to generate service providing interfaces or service request interfaces for components of each data source, thereby being able to support data sources including telecommunication services in Various types of data sources in the system create and request Mashup services through this interactive interface, which enhances the scalability of Mashup services and meets the needs of users.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明一个实施例提供的实现Mashup业务的方法流程图;Fig. 1 is the flow chart of the method for realizing the Mashup service provided by one embodiment of the present invention;

图2为本发明一个实施例提供的Mashup系统结构示意图;Fig. 2 is the Mashup system structural representation that an embodiment of the present invention provides;

图3为本发明又一个实施例提供的非Mashup Service数据源组件的注册流程示意图;Fig. 3 is a schematic diagram of the registration process of the non-Mashup Service data source component provided by another embodiment of the present invention;

图4(a)为本发明又一个实施例提供的Mashup Service数据源部署流程示意图;Figure 4(a) is a schematic diagram of the deployment process of the Mashup Service data source provided by another embodiment of the present invention;

图4(b)为本发明又一个实施例提供的Mashup Service数据源组件的注册流程示意图;Figure 4(b) is a schematic diagram of the registration process of the Mashup Service data source component provided by another embodiment of the present invention;

图5为本发明又一实施例提供的预定结构的示意图;Fig. 5 is a schematic diagram of a predetermined structure provided by another embodiment of the present invention;

图6为本发明又一实施例提供的一种预定结构的示例;FIG. 6 is an example of a predetermined structure provided by another embodiment of the present invention;

图7为本发明又一实施例提供的一种动态生成业务请求接口的场景示意图;FIG. 7 is a schematic diagram of a scenario of dynamically generating a service request interface provided by another embodiment of the present invention;

图8为本发明又一实施例提供的Mashup系统与AAA系统和计费系统之间交互的流程示意图;FIG. 8 is a schematic flowchart of the interaction between the Mashup system, the AAA system and the billing system provided by another embodiment of the present invention;

图9为本发明又一实施例提供一种实现业务聚合Mashup业务的装置结构示意图。FIG. 9 is a schematic structural diagram of an apparatus for implementing a service aggregation Mashup service according to another embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例的技术构思在于提供一种创新的动态创建Mashup业务的方案,该方案通过对包括互联网数据源和电信服务数据源的各种数据源的组件,使用统一的应用程序接口(Application Interface,API)格式进行封装、注册,以使Mashup服务器支持各种数据源的Mashup业务。The technical idea of the embodiment of the present invention is to provide an innovative scheme for dynamically creating a Mashup service. The scheme uses a unified application interface (Application Interface) for components of various data sources including Internet data sources and telecommunication service data sources. , API) format for encapsulation and registration, so that the Mashup server supports the Mashup business of various data sources.

本发明一个实施例提供的实现Mashup业务的方法,参见图1,包括:The method for realizing the Mashup service provided by one embodiment of the present invention, referring to Fig. 1, includes:

11:对数据源的组件进行注册并按照统一的第一格式为所述组件生成业务提供接口;11: Register the components of the data source and provide an interface for the components to generate services according to the unified first format;

12:根据业务请求者的业务请求消息,在已注册的所述组件中获取所需的组件,并按照统一的第二格式为所述所需的组件生成业务请求接口;12: According to the service request message of the service requester, obtain the required components from the registered components, and generate a service request interface for the required components according to the unified second format;

13:利用所述业务请求接口接收所述业务请求消息,利用所述业务提供接口向所述所需的组件请求业务,利用所述业务请求接口将生成的Mashup业务应答消息发送至业务请求者。13: Utilize the service request interface to receive the service request message, utilize the service provision interface to request services from the required components, and utilize the service request interface to send the generated Mashup service response message to the service requester.

上述的数据源包括电信服务数据源在内的各种数据源。Mashup业务可以作为Mashup数据源,提供第二次开发或重用The aforementioned data sources include various data sources including telecommunication service data sources. Mashup business can be used as a source of Mashup data to provide secondary development or reuse

为了便于清楚描述本发明实施例的技术方案,在本发明的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with basically the same functions and functions. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.

其中,所述第一格式和第二格式为相同的格式,或者,所述第一格式和第二格式为不同的格式。即所有的业务请求接口具有相同的格式,所有的业务提供接口具有相同的格式,而业务请求接口和业务提供接口的格式可以相同,也可以不同。Wherein, the first format and the second format are the same format, or the first format and the second format are different formats. That is, all service request interfaces have the same format, and all service providing interfaces have the same format, and the formats of the service request interface and the service providing interface may be the same or different.

其中,上述的格式可以理解为请求或调用业务时的具体消息构成,例如,该消息可以由函数和参数构成或者该消息由协议调用构成。Wherein, the above-mentioned format can be understood as a specific message composition when requesting or invoking a service, for example, the message can be composed of functions and parameters or the message can be composed of protocol calls.

示例性的,一种可以采用的格式表示如下:Exemplarily, a format that can be adopted is as follows:

函数(参数);如Weather(city)function(parameter); such as Weather(city)

另一种可以采用的格式表示如下:Another possible format is represented as follows:

协议:参数;如Http:/GET/POST…protocol: parameters; such as Http: /GET/POST…

进一步的,在步骤11之前,还可以包括按照预定结构创建Mashup业务,例如,业务开发者按照组件导入部分(Component imports)、命名空间定义部分(Mashup namespacedefinition)、语法定义部分(Schema definition)、操作(Operation)部分四层结构利用动态脚本语言(如JavaScript)创建Mashup业务。传统的Mashup业务开发方法,由于Mashup数据源的格式不统一,业务开发者需要同时掌握Web Service、Rest、C++、Java等具体的编程技术,开发难度大、对业务开发者的要求高。而采用本发明的这种方式使业务开发者无需额外的学习其他的开发语言(包括Mashup Server标签语言和网页语言),只通过使用扩展的动态脚本语言就能够创建Mashup业务,降低了业务开发难度和对业务开发者的要求。Further, before step 11, it may also include creating a Mashup business according to a predetermined structure, for example, business developers follow the component imports (Component imports), namespace definition (Mashup namespace definition), syntax definition (Schema definition), operation (Operation) Part of the four-layer structure uses a dynamic scripting language (such as JavaScript) to create a Mashup business. In the traditional Mashup business development method, because the format of the Mashup data source is not uniform, business developers need to master specific programming technologies such as Web Service, Rest, C++, and Java at the same time, which makes development difficult and requires high requirements for business developers. With this method of the present invention, business developers do not need to learn additional development languages (including Mashup Server label language and web page language), and can create Mashup services only by using the extended dynamic scripting language, which reduces the difficulty of business development and requirements for business developers.

业务请求者通过请求信息和应答信息得到相应的Mashup业务,享受相应的服务。The service requester obtains the corresponding Mashup service through the request information and the response information, and enjoys the corresponding service.

示例性的,一种请求信息可以为:HTTP://www.sina.com.cn/user=123&password=123而相应的应答信息为用户所请求的网页的内容,例如验证通过的网页。将请求信息携带在上述业务请求消息中,将应答信息携带在Mashup业务应答消息中。Exemplarily, a request information may be: HTTP://www.sina.com.cn/user=123&password=123 and the corresponding response information is the content of the webpage requested by the user, for example, the webpage that has passed the verification. The request information is carried in the above service request message, and the response information is carried in the Mashup service response message.

本发明实施例中的组件为业务请求者和实际的业务(如数据源)之间的代理。组件利用业务提供接口从数据源调用相应的业务,利用业务请求接口接收业务请求者发送的业务请求消息,以根据该业务请求消息请求实际的业务提供的操作(Operation)。The components in the embodiment of the present invention are agents between the service requester and the actual service (such as data source). The component uses the service provider interface to call the corresponding service from the data source, uses the service request interface to receive the service request message sent by the service requester, and requests the actual service provided operation (Operation) according to the service request message.

由该业务提供接口、业务请求接口和相关参数构成Mashable API。利用MashableAPI统一对组件进行管理,组件对外部开放具有统一格式的Mashable API以供Mashup业务的创建和请求。The Mashable API is composed of the service providing interface, service request interface and related parameters. Utilize MashableAPI to manage the components in a unified way, and the components open the Mashable API with a unified format to the outside for the creation and request of Mashup services.

业务提供接口在组件注册的时候自动生成,并随同组件存储,而业务请求接口是在发起业务请求或调用组件的时候动态生成,业务请求接口根据业务请求者和业务提供者的实际情况而定,无需预先存储业务请求接口。这种方式满足了组件注册的动态特性和节省内存的需求。The service provider interface is automatically generated when the component is registered and stored with the component, while the service request interface is dynamically generated when the service request is initiated or the component is called. The service request interface is determined according to the actual situation of the service requester and the service provider. There is no need to store service request interfaces in advance. This approach meets the dynamic characteristics of component registration and the need to save memory.

本发明实施例提供的技术方案,通过采用统一的格式为各个数据源的组件生成业务提供接口或业务请求接口,实现了对各种数据源的统一封装机制,从而能够支持包括电信服务数据源在内的多种类型的数据源通过该交互接口进行Mashup业务的创建和请求,增强了Mashup业务的可扩展性,满足了用户的需要。The technical solution provided by the embodiment of the present invention implements a unified encapsulation mechanism for various data sources by adopting a unified format to generate service providing interfaces or service request interfaces for components of each data source, thereby being able to support data sources including telecommunication services in Various types of data sources in the system create and request Mashup services through this interactive interface, which enhances the scalability of Mashup services and meets the needs of users.

为了清楚描述本发明实施例的技术方案,首先,参见图2,对本发明实施例提供的Mashup系统结构进行介绍。在该系统中主要包括如下单元:In order to clearly describe the technical solution of the embodiment of the present invention, first, referring to FIG. 2 , the structure of the Mashup system provided by the embodiment of the present invention is introduced. The system mainly includes the following units:

请求消息分析单元(Request Analysis Unit)201:该单元用于接收来自客户端,即图2中的业务请求者200所用的客户端的各种请求消息,包括mashup部署请求消息,组件注册请求消息,业务请求消息,并对接收到的请求消息进行分析后转发到系统中相应的单元进行处理。Request Analysis Unit (Request Analysis Unit) 201: This unit is used to receive various request messages from the client, that is, the client used by the service requester 200 in Figure 2, including mashup deployment request messages, component registration request messages, business Request message, and analyze the received request message and forward it to the corresponding unit in the system for processing.

Mashup部署单元(Mashup Deployer Unit)202:该单元用于处理mashup部署请求消息,将Mashup service数据源部署到Mashup服务器上。并调用相应的单元为Mashupservice数据源的组件生成业务提供接口。Mashup deployment unit (Mashup Deployer Unit) 202: this unit is used to process the mashup deployment request message, and deploy the Mashup service data source to the Mashup server. And call the corresponding unit to provide an interface for the components of the Mashupservice data source to generate services.

组件生成单元(Component Generator Unit)203:为该单元用于生成Mashup数据源对应的组件。Component Generator Unit (Component Generator Unit) 203: this unit is used to generate components corresponding to the Mashup data source.

脚本解析单元(Script Parser Unit)204:该单元用于解析使用动态语言(例如Java Script)描述的Mashup业务,并且帮助组件生成单元203为该Mashup业务生成组件。Script parsing unit (Script Parser Unit) 204: This unit is used to parse the mashup business described in a dynamic language (such as Java Script), and assist the component generation unit 203 to generate components for the mashup business.

组件注册单元(Component Registration Unit)205:该单元用于处理组件注册请求消息,并生成与业务请求者交互的交互代码(该交互代码基于脚本语言),以及为请求组件提供相应的代码。注册过程完成后,该单元还可以调用组件存储单元207中存储的组件和组件详细描述。Component Registration Unit (Component Registration Unit) 205: This unit is used to process component registration request messages, generate interaction codes for interaction with service requesters (the interaction codes are based on scripting language), and provide corresponding codes for requesting components. After the registration process is completed, the unit can also call the components and component detailed descriptions stored in the component storage unit 207 .

Mashable API创建单元206:为组件创建Mashable API,该Mashable API包括业务提供接口和业务请求接口。Mashable API creation unit 206: create a Mashable API for the component, and the Mashable API includes a service providing interface and a service request interface.

组件存储单元(Components Repository Unit)207:该单元相当于一个存储池(Pool),用于存储注册后的组件和组件详细描述。Components Repository Unit (Components Repository Unit) 207: This unit is equivalent to a storage pool (Pool), and is used to store registered components and component detailed descriptions.

组件请求处理单元(Component Request Unit)208:该单元用于处理组件请求过程。Component Request Unit (Component Request Unit) 208: This unit is used to process the component request process.

组件管理单元(Component Management Unit)209:该单元用于管理与组件使用过程相关的一些操作,如验证,鉴权和计费。图2中所示的Mashup系统能够接收来自业务请求者(Requestor)200的请求,执行部署(Deploy)或组件注册等过程,或与外部服务(ExternalService)功能210进行交互,或与其他的系统如计费(Billing)系统211、认证鉴权系统(如AAA)212进行交互。Component Management Unit (Component Management Unit) 209: This unit is used to manage some operations related to the use of components, such as verification, authentication and billing. The Mashup system shown in Figure 2 can receive a request from a business requester (Requestor) 200, perform processes such as deployment (Deploy) or component registration, or interact with an external service (ExternalService) function 210, or interact with other systems such as The billing (Billing) system 211 and the authentication authentication system (such as AAA) 212 interact.

上述只是对主要功能单元的示例性说明,例如,该系统中的组件请求处理单元208中还可以包括脚本执行引擎(Script)2081,用于测试和执行Mashup的脚本描述。The above is only an exemplary description of the main functional units. For example, the component request processing unit 208 in the system may also include a script execution engine (Script) 2081 for testing and executing the script description of the Mashup.

下面结合图2,对本发明又一个实施例提供的实现Mashup业务的方法进行详细说明。具体包括如下处理:The method for implementing the Mashup service provided by another embodiment of the present invention will be described in detail below with reference to FIG. 2 . Specifically include the following processing:

11:对数据源的组件进行注册并按照统一的第一格式为所述组件生成业务提供接口。11: Register the components of the data source and provide an interface for the components to generate services according to a unified first format.

在本发明实施例中,将数据源分为业务聚合服务(Mashup Service)数据源和非Mashup Service数据源,对这两类数据源采用不同的方式进行注册。其中,电信服务数据源属于非Mashup Service数据源。In the embodiment of the present invention, data sources are divided into business aggregation service (Mashup Service) data sources and non-Mashup Service data sources, and the two types of data sources are registered in different ways. Among them, the telecom service data source is a non-Mashup Service data source.

采用这种方式是由于,非Mashup Service数据源的组件,如Java组件、C++组件、表述性状态转移(Representational State Transfer,REST)组件或Web服务描述语言(WebServices Description Language,WSDL)的Web组件,这些组件通常在实现Mashup业务之前就已经发布或使用且已经进行了部署,可以直接进行组件的注册过程。而对于MashupService数据源,需要在将Mashup Service数据源部署在Mashup服务器上的过程中生成相应的组件。下面分别对这两种情况进行介绍。This method is adopted because non-Mashup Service data source components, such as Java components, C++ components, Representational State Transfer (REST) components or Web Services Description Language (WebServices Description Language, WSDL) Web components, These components are usually released or used and deployed before implementing the Mashup service, and the component registration process can be directly performed. As for the MashupService data source, corresponding components need to be generated during the process of deploying the Mashup Service data source on the Mashup server. These two situations are introduced respectively below.

第一种情况、非Mashup Service数据源组件的注册In the first case, registration of non-Mashup Service data source components

参见图3,非Mashup Service数据源组件的注册过程,具体包括如下步骤:Referring to Figure 3, the registration process of non-Mashup Service data source components includes the following steps:

1:注册请求者向请求消息分析单元发送注册组件请求消息,该注册组件请求消息中携带组件的信息,如组件的数据和组件标识(ID)。组件ID可以为唯一标识组件的一个字符串,如“SMS”、“MMS”,“WeatherInfo”,组件ID由组件提供者或组件生成者提供。但不局限于此,组件的信息还可以包括组件关键字,组件关键字可以指示该组件所支持的业务类型,不同的组件可以有相同的组件关键字,例如,对组件ID分别为SMS1、SMS2和SMS3的组件,组件关键字都可以为SMS。1: The registration requester sends a registration component request message to the request message analysis unit, and the registration component request message carries component information, such as component data and component identification (ID). The component ID can be a string that uniquely identifies the component, such as "SMS", "MMS", and "WeatherInfo". The component ID is provided by the component provider or component generator. But not limited thereto, component information can also include component keywords, which can indicate the type of service supported by the component, and different components can have the same component keyword, for example, the component IDs are SMS1 and SMS2 respectively and SMS3 components, the component keyword can be SMS.

不同组件的注册组件请求消息中携带的组件信息也不同。The component information carried in the registration component request message of different components is also different.

例如,当组件为C++组件时,上述注册组件请求消息中携带C++的动态链接库文件(.dll文件)数据和组件ID;当所述组件为Java组件时,上述注册组件请求消息中携带java数据包、组件ID和数据类型描述,本发明实施例提供的一种数据类型描述为对象名(属性值1,属性值2,…);当所述组件为REST组件时,上述注册组件请求消息中携带REST统一资源定位符(Universal Resource Locator,URL)和组件ID;当所述组件为WSDL的Web组件时,上述注册组件请求消息中携带HTTP URL和组件ID。For example, when the component is a C++ component, the above-mentioned registration component request message carries C++ dynamic link library file (.dll file) data and component ID; when the component is a Java component, the above-mentioned registration component request message carries java data Package, component ID and data type description, a data type provided by the embodiment of the present invention is described as an object name (attribute value 1, attribute value 2, ...); when the component is a REST component, the above registration component request message Carry a REST uniform resource locator (Universal Resource Locator, URL) and a component ID; when the component is a WSDL Web component, the above registration component request message carries an HTTP URL and a component ID.

2:请求消息分析单元对接收到的注册组件请求消息进行分析后,将该注册请求消息转发至组件注册单元。2: The request message analysis unit forwards the registration request message to the component registration unit after analyzing the received component registration request message.

3:组件注册单元向组件存储单元发送组件查询(Query Component)请求,查询组件存储单元中所有已经注册的组件,判断是否有相同的组件已经注册。这里,相同的组件主要指具有相同组件ID的组件。3: The component registration unit sends a component query (Query Component) request to the component storage unit, queries all registered components in the component storage unit, and determines whether the same component has been registered. Here, the same component mainly refers to components with the same component ID.

4:组件存储单元接收到组件查询请求后,在存储的已注册组件的组件ID中,查找是否存在与上述注册组件请求消息中携带的组件ID(如SMS)相同的组件ID,若存在,则说明组件ID为SMS的组件已经注册了,若不存在说明组件ID为SMS的组件还未注册。组件存储单元反馈查询结果给组件注册单元。4: After the component storage unit receives the component query request, it searches the stored component IDs of the registered components to see if there is a component ID that is the same as the component ID (such as SMS) carried in the above-mentioned registered component request message, and if it exists, then It means that the component whose component ID is SMS has been registered. If it does not exist, it means that the component whose component ID is SMS has not been registered yet. The component storage unit feeds back the query result to the component registration unit.

5a:如果有相同ID的组件注册,则组件注册单元反馈发送注册失败信息给注册请求者,以使注册请求者及时获知注册失败进行后续的处理,如注册请求者可以更新组件ID,例如,将组件ID的字符串SMS更改为SMS1、SMS2或SMS3,重新发起注册流程。5a: If there is a component registration with the same ID, the component registration unit will feedback and send registration failure information to the registration requester, so that the registration requester can know the registration failure in time for subsequent processing. For example, the registration requester can update the component ID, for example, set Change the string SMS of the component ID to SMS1, SMS2 or SMS3, and restart the registration process.

5b:如果没有相同ID的组件注册,则组件注册单元发送交互接口生成请求(Generate Script Adaptor)给Mashable API创建单元。Mashable API创建单元为相应的组件生成业务提供接口,对不同的数据源的组件生成业务提供接口时采用的方式和代码也不同。5b: If there is no component registration with the same ID, the component registration unit sends an interactive interface generation request (Generate Script Adaptor) to the Mashable API creation unit. The Mashable API creation unit provides interfaces for corresponding component generation services, and the methods and codes used to provide interfaces for component generation services of different data sources are also different.

例如,Mashable API创建单元根据动态链接库文件(.dll文件)数据和组件ID,使用Java Native Interface(JNI)为C++组件生成业务提供接口;For example, the Mashable API creation unit uses Java Native Interface (JNI) to provide an interface for C++ component generation services based on the dynamic link library file (.dll file) data and component ID;

根据java数据包和组件ID,以Java类和组件ID为Java组件生成业务提供接口,该业务提供接口通过Java提供的类和函数调用实际的业务;According to the java data package and component ID, generate a service provider interface for the Java component with the Java class and component ID, and the service provider interface calls the actual service through the classes and functions provided by Java;

根据REST URL[HTTP URL]和组件ID为REST组件生成业务提供接口。According to the REST URL [HTTP URL] and component ID, it provides an interface for the REST component to generate services.

当所述组件为Web服务描述语言WSDL的Web组件时,根据所述Web组件的HTTP URL和组件ID生成业务提供接口。When the component is a Web component of the Web service description language WSDL, a service providing interface is generated according to the HTTP URL of the Web component and the component ID.

上述生成的业务提供接口具有统一的格式,如第一格式。The service providing interface generated above has a unified format, such as the first format.

6b:Mashable API创建单元向组件注册单元返回创建成功的信息,以及为组件的生成业务提供接口的参数。若创建失败,Mashable API创建单元向组件注册单元发送创建失败消息,图中仅示出了创建成功的场景。6b: The Mashable API creation unit returns the creation success information to the component registration unit, and provides interface parameters for component generation services. If the creation fails, the Mashable API creation unit sends a creation failure message to the component registration unit, and only the scene of successful creation is shown in the figure.

7b:组件注册单元发送存储消息(Store Component)给组件存储单元,组件存储单元存储上述注册成功的组件及其相关信息,如该组件的业务提供接口,组件的数据和组件ID等。7b: The component registration unit sends a store message (Store Component) to the component storage unit, and the component storage unit stores the above-mentioned successfully registered components and related information, such as the service provider interface of the component, component data and component ID, etc.

8b:组件存储成功后,组件存储单元返回组件注册单元存储成功信息。8b: After the component storage is successful, the component storage unit returns the storage success information of the component registration unit.

9b、组件注册单元返回注册组件成功消息给请求消息分析单元。9b. The component registration unit returns a component registration success message to the request message analysis unit.

10b、请求消息分析单元反馈注册组件成功消息给注册请求者。10b. The request message analysis unit feeds back a successful registration component message to the registration requester.

另:若8b中组件存储不成功,后续步骤反馈组件注册失败的信息给注册请求者。In addition: if the component storage in 8b is unsuccessful, the subsequent steps feed back information about component registration failure to the registration requester.

第二种情况、Mashup Service数据源组件的注册In the second case, registration of Mashup Service data source components

首先通过将Mashup Service数据源部署在Mashup服务器上的过程生成组件,参见图4(a),包括如下步骤:First, generate components through the process of deploying the Mashup Service data source on the Mashup server, see Figure 4(a), including the following steps:

401:业务部署者发送Mashup部署请求消息至请求消息分析单元,该消息包括Mashup业务和参数。Mashup业务主要由Mashup脚本描述构成,参数主要包括组件ID,业务描述和访问策略。401: The service deployer sends a Mashup deployment request message to the request message analysis unit, and the message includes the Mashup service and parameters. Mashup services are mainly composed of Mashup script descriptions, and parameters mainly include component IDs, service descriptions, and access policies.

应当注意到,在进行组件注册之前,本发明实施例还包括按照预定结构创建Mashup业务,例如,业务开发者按照组件导入部分、命名空间定义部分、语法定义部分、操作部分四层结构利用动态脚本语言(如JavaScript)创建Mashup业务。传统的Mashup业务开发方法,由于Mashup数据源的格式不统一,业务开发者需要同时掌握Web Service、Rest、C++、Java等具体的编程技术,开发难度大、对业务开发者的要求高。而采用本发明的这种方式使业务开发者无需额外的学习其他的开发语言(包括Mashup Server标签语言和网页语言),只通过使用扩展的动态脚本语言就能够创建Mashup业务,降低了业务开发难度和对业务开发者的要求。It should be noted that before component registration, the embodiment of the present invention also includes creating a mashup service according to a predetermined structure, for example, a service developer uses a dynamic script according to the four-layer structure of component import part, namespace definition part, syntax definition part and operation part Languages such as JavaScript create Mashup businesses. In the traditional Mashup business development method, because the format of the Mashup data source is not uniform, business developers need to master specific programming technologies such as Web Service, Rest, C++, and Java at the same time, which makes development difficult and requires high requirements for business developers. With this method of the present invention, business developers do not need to learn additional development languages (including Mashup Server label language and web page language), and can create Mashup services only by using the extended dynamic scripting language, which reduces the difficulty of business development and requirements for business developers.

402:请求消息分析单元对Mashup部署请求消息进行分析后,转发该消息到Mashup部署单元。402: The request message analysis unit forwards the message to the mashup deployment unit after analyzing the mashup deployment request message.

403:Mashup部署单元向组件生成单元发送组件生成请求,请求组件生成单元为该Mashup Service数据源生成组件。403: The mashup deployment unit sends a component generation request to the component generation unit, requesting the component generation unit to generate components for the Mashup Service data source.

404:组件生成单元发送脚本解析请求,请求脚本解析单元解析Mashup业务的脚本描述并获取其中的关键字及参数,关键字包括导入(imports),命名空间(namespace),模式(schema),操作(operation)。404: The component generation unit sends a script parsing request, requesting the script parsing unit to parse the script description of the Mashup business and obtain the keywords and parameters in it. The keywords include imports, namespace, schema, and operation ( operation).

405:脚本解析单元将解析结果,如关键字和参数等,反馈至组件生成单元。405: The script parsing unit feeds back parsing results, such as keywords and parameters, to the component generating unit.

406:组件生成单元根据脚本解析单元反馈的参数和imports,namespace,schema,operation等关键字来解析得到Mashup业务的相应组件和操作。406: The component generating unit parses and obtains corresponding components and operations of the Mashup service according to the parameters fed back by the script parsing unit and keywords such as imports, namespace, schema, and operation.

组件生成单元按照预定结构解析得到Mashup业务的相应组件,该预定结构与创建Mashup业务时采用的预定结构一致。参见图5,在该预定结构中包括组件导入部分(Component imports)、命名空间定义部分(Mashup namespace definition)、语法定义部分(Schema definition)、操作(Operation)部分。其中,操作部分可以包括一个或多个操作,如包括操作1至操作n,n为序号。参见图6,为本发明实施例提供的一种预定结构的示例。The component generating unit analyzes and obtains corresponding components of the Mashup service according to a predetermined structure, and the predetermined structure is consistent with the predetermined structure adopted when creating the Mashup service. Referring to FIG. 5 , the predetermined structure includes a component imports part (Component imports), a namespace definition part (Mashup namespace definition), a syntax definition part (Schema definition), and an operation part. Wherein, the operation part may include one or more operations, such as including operation 1 to operation n, where n is a serial number. Referring to FIG. 6 , it is an example of a predetermined structure provided by an embodiment of the present invention.

Mashup业务的相应组件是指创建Mashup业务时所导入的组件,利用组件ID、关键字及参数解析得到该所导入的一个或多个组件。例如,当组件ID为identifier时,根据导入操作的命令importComponent(“identifier”)可以解析出Mashup业务中组件ID为identifier的组件。The corresponding components of the Mashup service refer to the imported components when creating the Mashup service, and the imported one or more components are obtained by analyzing the component ID, keywords and parameters. For example, when the component ID is identifier, the component whose component ID is identifier in the Mashup business can be parsed out according to the command importComponent("identifier") of the import operation.

407:在解析获得相应的组件后,组件生成单元将部署成功消息发送至Mashup部署单元。407: After parsing and obtaining the corresponding components, the component generation unit sends a deployment success message to the Mashup deployment unit.

408:Mashup部署单元反馈部署成功消息至请求消息分析单元。408: The Mashup deployment unit feeds back a deployment success message to the request message analysis unit.

409:请求消息分析单元转发该部署成功消息给业务部署者。409: Request the message analysis unit to forward the deployment success message to the service deployer.

注:若在解析或部署过程中出现错误,那么407-409中反馈部署失败消息。Note: If an error occurs during parsing or deployment, the deployment failure message will be fed back in 407-409.

当部署成功后,对Mashup Service数据源的组件进行注册,注册过程与图3所示的过程基本相同,不再赘述。主要的区别点在于,参见图4(b),进行注册可以在该组件生成后,直接由组件生成单元向组件存储单元发送注册查询请求(Query Component),参见图4(b)中步骤411,发起组件注册流程,在步骤412中由组件存储单元向组件生成单元反馈查询结果,这种处理方式简化了处理的流程。其中图4(b)中的步骤413和414参见图3中的步骤5b和6b,步骤415和416参见图3中的7b和8b。在注册过程中,对Mashup Service数据源的组件,根据Mashup Service数据源的脚本描述(如javascript代码)生成业务提供接口。After the deployment is successful, the components of the Mashup Service data source are registered. The registration process is basically the same as that shown in Figure 3 and will not be repeated here. The main difference is that, as shown in Figure 4(b), registration can be performed after the component is generated, and the component generation unit sends a registration query request (Query Component) directly to the component storage unit, see step 411 in Figure 4(b), The component registration process is initiated, and in step 412, the component storage unit feeds back the query result to the component generation unit, which simplifies the processing process. For steps 413 and 414 in FIG. 4(b), refer to steps 5b and 6b in FIG. 3 , and for steps 415 and 416, refer to steps 7b and 8b in FIG. 3 . During the registration process, for the components of the Mashup Service data source, a service provider interface is generated according to the script description (such as javascript code) of the Mashup Service data source.

通过上述的组件注册过程,各个数据源的组件都具有了业务提供接口,利用该业务提供接口可以直接调用实际的业务。如Java组件可以利用业务提供接口创建java类的对象,调用java的函数。Through the above-mentioned component registration process, the components of each data source have a service providing interface, and the actual service can be directly invoked by using the service providing interface. For example, a Java component can use the service provider interface to create an object of the java class and call a java function.

12:根据业务请求,在已注册的所述组件中获取相应的组件,并按照统一的第二格式为获取到的所述组件动态生成业务请求接口。12: Obtain a corresponding component from the registered components according to the service request, and dynamically generate a service request interface for the obtained component according to a unified second format.

对所有组件生成的业务请求接口具有统一的格式,如第二格式。与业务请求接口相对应的第二格式可以与业务提供接口所对应的第一格式相同,也可以不同。The service request interfaces generated by all components have a unified format, such as the second format. The second format corresponding to the service request interface may be the same as or different from the first format corresponding to the service providing interface.

本发明实施例的技术方案提供一种门户功能给业务请求者,业务请求者可以查询注册的组件。对于每个已经注册的组件,Mashup服务器按需生成业务请求接口。所谓按需主要指根据业务请求者的状态和所述组件的数据源的状态来为组件生成业务请求接口。The technical solution of the embodiment of the present invention provides a portal function to the service requester, and the service requester can query the registered components. For each registered component, the Mashup server generates a service request interface on demand. The so-called on-demand mainly refers to generating a service request interface for a component according to the state of the service requester and the state of the data source of the component.

业务请求者的状态主要包括业务请求者的发起端状态(如传统终端或新型终端)、业务呈现方式和响应时间中的一种或多种;组件的数据源的状态包括数据源的负载能力、数据源的组件的服务质量(Quality of Service,QoS)和数据源的可靠性。The status of the business requester mainly includes one or more of the status of the initiator of the business requester (such as a traditional terminal or a new terminal), business presentation mode and response time; the status of the data source of the component includes the load capacity of the data source, The quality of service (Quality of Service, QoS) of the components of the data source and the reliability of the data source.

当上述的状态发生变化时,生成的业务请求接口也发生变化。例如,当用户(业务请求者)通过浏览器访问已注册组件的注册信息变化时,生成的业务请求接口也会发生变化。所以业务请求接口是动态生成的,并不预先进行存储,避免了由于预先存储业务请求接口而需要占用大量内存所带来的问题,动态生成业务请求接口的方式能够满足组件注册的动态特性和节省内存的需求。When the above state changes, the generated service request interface also changes. For example, when the registration information of a user (business requester) accessing a registered component through a browser changes, the generated service request interface will also change. Therefore, the service request interface is dynamically generated and not stored in advance, which avoids the problem of occupying a large amount of memory due to the pre-stored service request interface. The method of dynamically generating the service request interface can meet the dynamic characteristics of component registration and save memory requirements.

下面结合图7所示的场景,具体说明基于业务请求者的查询动态生成业务请求接口的流程。The process of dynamically generating the service request interface based on the query of the service requester will be specifically described below in conjunction with the scenario shown in FIG. 7 .

701:业务请求者发送业务请求消息到请求消息分析单元,该业务请求消息中携带组件关键字,或者组件ID。701: The service requester sends a service request message to the request message analyzing unit, and the service request message carries a component keyword or a component ID.

702:请求消息分析单元分析业务请求消息后,将业务请求消息转发给组件请求处理单元。702: After analyzing the service request message, the request message analyzing unit forwards the service request message to the component request processing unit.

703:组件请求处理单元发送组件查询请求到组件存储单元中查询所请求的组件。703: The component request processing unit sends a component query request to the component storage unit to query the requested component.

704:组件存储单元将查询结果返回给组件请求处理单元;704: The component storage unit returns the query result to the component request processing unit;

如果组件存储单元中有对应的注册组件,即已注册组件的组件ID与所述业务请求消息中携带的组件关键字匹配时,则查询成功,执行步骤705。If there is a corresponding registered component in the component storage unit, that is, when the component ID of the registered component matches the component keyword carried in the service request message, the query is successful, and step 705 is executed.

如果组件存储单元中没有组件ID对应的组件信息,即已注册组件的组件ID与所述业务请求消息中携带的组件关键字不匹配时,则查询失败,则发送查询失败信息给请求消息分析单元。If there is no component information corresponding to the component ID in the component storage unit, that is, when the component ID of the registered component does not match the component keyword carried in the service request message, the query fails, and the query failure information is sent to the request message analysis unit .

705:判断组件请求处理单元自身能否生成业务请求接口,若组件请求处理单元自身能够生成该组件的业务请求接口时,执行步骤708;705: Determine whether the component request processing unit itself can generate a service request interface, and if the component request processing unit itself can generate the service request interface of the component, perform step 708;

当组件请求处理单元无法生成相应的业务请求接口时,则执行步骤706。When the component request processing unit cannot generate a corresponding service request interface, step 706 is performed.

706:组件请求处理单元发送交互接口生成请求到Mashable API创建单元以创建该组件的业务请求接口。706: The component request processing unit sends an interactive interface generation request to the Mashable API creation unit to create a service request interface of the component.

707:Mashable API创建单元创建业务请求接口并返回创建结果,当创建成功时,执行步骤708。707: The Mashable API creation unit creates a service request interface and returns a creation result. When the creation is successful, execute step 708.

其中,当存在多个组件,这些组件的组件ID都与业务请求消息中的组件关键字相匹配时,组件请求处理单元或Mashable API创建单元根据业务请求者的状态和已注册组件的数据源的状态,选择合适的已注册组件,为所选择的组件动态生成业务请求接口。Among them, when there are multiple components, and the component IDs of these components all match the component keywords in the service request message, the component request processing unit or the Mashable API creation unit State, select the appropriate registered components, and dynamically generate business request interfaces for the selected components.

708:当生成业务请求接口时,组件请求处理单元发送应答消息,如接口生成成功消息至请求消息分析单元。708: When generating the service request interface, the component requests the processing unit to send a response message, such as an interface generation success message, to the request message analyzing unit.

709:请求消息分析单元向业务请求者反馈接口生成成功消息。709: The request message analysis unit generates a success message to the service requester feedback interface.

下面以一个具体的Mashup业务“Etour”为例进行说明。The following takes a specific mashup business "Etour" as an example for illustration.

Mashup业务Etour是由weather业务和FlightSearchService业务组成。对weather业务,如果组件存储单元中存储了组件关键字为weather系列的组件,例如,Java组件weather业务,REST组件weather业务等。业务请求者请求Etour业务时,Mashup服务器根据组件的数据源的状态(负载,组件的QoS,数据源可靠性等)和业务请求者的状态(请求者所使用的终端,业务呈现方式,响应时间等)选择最合适的组件,如Java组件,并为该组件动态地生成业务请求接口,该业务请求接口包括组件调用协议,调用函数和参数等信息。对FlightSearchService业务采用相同的方式进行处理。The mashup service Etour is composed of weather service and FlightSearchService service. For the weather service, if the component key is a weather series component is stored in the component storage unit, for example, the Java component weather service, the REST component weather service, etc. When a business requester requests an Etour service, the Mashup server considers the state of the data source of the component (load, QoS of the component, reliability of the data source, etc.) etc.) to select the most suitable component, such as a Java component, and dynamically generate a business request interface for the component, which includes component calling protocol, calling function and parameters and other information. The FlightSearchService business is handled in the same way.

业务请求者根据业务请求接口的协议,调用函数和参数等,请求调用实际的业务。业务请求接口涉及到的调用函数,调用协议和参数的举例如下:According to the protocol of the service request interface, the service requester calls functions and parameters, etc., and requests to call the actual service. Examples of calling functions, calling protocols and parameters involved in the business request interface are as follows:

java组件weather业务的业务请求接口对应于Java调用函数Weather(city),city是参数,指示城市名,调用协议为SOAP协议,还可以包括其它参数,如指示能够提供的QoS的参数,该参数指示响应时间为0.3s,反馈信息格式为SMS;The service request interface of the java component weather service corresponds to the Java call function Weather (city), city is a parameter indicating the city name, the calling protocol is the SOAP protocol, and can also include other parameters, such as parameters indicating the QoS that can be provided. The response time is 0.3s, and the feedback information format is SMS;

WSDL的Web组件weather业务的业务请求接口对应于提供根据WSDL描述提供的调用函数,参数是x,y,其中x和y分别表示经度和纬度,绑定SOAP调用协议。还可以包括其它参数,如指示能够提供的QoS的参数,该参数指示响应时间是0.5s,反馈信息格式为网页。The service request interface of the weather service of the WSDL Web component corresponds to the call function provided according to the WSDL description, the parameters are x, y, where x and y represent longitude and latitude respectively, and are bound to the SOAP call protocol. It may also include other parameters, such as a parameter indicating the QoS that can be provided, the parameter indicates that the response time is 0.5s, and the format of the feedback information is a web page.

13:利用所述业务请求接口接收所述业务请求消息,利用所述业务提供接口向所述所需的组件请求业务,利用所述业务请求接口将生成的Mashup业务应答消息发送至业务请求者。13: Utilize the service request interface to receive the service request message, utilize the service provision interface to request services from the required components, and utilize the service request interface to send the generated Mashup service response message to the service requester.

将业务提供接口和业务请求接口进行匹配,即将业务提供接口和业务请求接口进行匹配,一个业务提供接口可以对应于一个业务请求接口,一个业务提供接口也可以对应于多个业务请求接口。业务提供接口包括对一个或多个业务的调用,业务请求接口包括对单个或组合的mashup业务的调用。一个组件所对应的业务提供接口和业务请求接口构成这个组件的Mashable API,Mashable API是组件对外部暴露的接口。Match the service provider interface with the service request interface, that is, match the service provider interface with the service request interface. One service provider interface can correspond to one service request interface, and one service provider interface can also correspond to multiple service request interfaces. The service providing interface includes calls to one or more services, and the service request interface includes calls to single or combined mashup services. The service provider interface and service request interface corresponding to a component constitute the Mashable API of this component, and the Mashable API is the interface exposed by the component to the outside.

下面以一个具体的Mashup业务“Etour”为例说明组件的使用过程。The following uses a specific Mashup business "Etour" as an example to illustrate the use of components.

组件的使用过程包括根据业务请求消息查询已经注册的组件,注册的组件按照简单的负载均衡的原理(如顺序调用,随机分配等)以及业务创建者的实际需求被聚合(Mashup)。按照操作(operation)定义调用相应的导入组件。组件使用的mashable API可以用标准的HTML标记<script>导入,例如:The process of using components includes querying registered components according to business request messages. Registered components are aggregated (Mashup) according to simple load balancing principles (such as sequential calls, random allocation, etc.) and the actual needs of business creators. Call the corresponding imported component according to the operation definition. The mashable API used by the component can be imported with the standard HTML tag <script>, for example:

<script type='text/javascript'src=‘…/stub/sms'></script><script type='text/javascript'src='.../stub/sms'></script>

其中,“sms”是一个组件ID.where "sms" is a component ID.

表1Table 1

参见表1,显示了业务请求接口和业务提供接口的信息列表。See Table 1, which shows the information list of the service request interface and the service provision interface.

Mashup业务“Etour”由组件weather和组件FlightSearchService组合而成,可表示为组件ID(Identifier1):Weather;组件ID(Identifier2):FlightSearchServiceThe mashup business "Etour" is composed of components weather and flightSearchService, which can be expressed as component ID (Identifier1): Weather; component ID (Identifier2): FlightSearchService

组件ID为Weather的组件的业务提供接口信息表示如下:The component ID provides interface information for the service of the Weather component as follows:

Weather,方法Getweather,参数city,组件类型JAVA,调用方式Java MethodInvocation。Weather, method Getweather, parameter city, component type JAVA, calling method Java MethodInvocation.

组件ID为FlightSearchService的组件的业务提供接口信息表示如下:FlightSearchService,方法GetFlightList,参数FlightSearchRequrest,组件类型webservice,调用协议SOAP/HTTP。The component ID is the service interface information of the component of FlightSearchService, which is expressed as follows: FlightSearchService, method GetFlightList, parameter FlightSearchRequest, component type webservice, calling protocol SOAP/HTTP.

由上所述,业务请求者发送业务请求消息,业务请求者通过浏览器或客户端,该浏览器可以是PC的浏览器或者终端的浏览器或者该浏览器为通过超文本传输协议(HyperText Transfer Protocol,HTTP)与互联网交互的widget,发送了业务请求消息,该业务请求消息表示为import webRMI.js,其中,webRMI.js是Mashup服务器发送给业务请求者的静态javascript文件,该javascript文件支持AJAX技术发送请求、解析响应的能力。业务请求者获得来自服务器端的webRMI.js文件后,客户端就向业务请求者展现Mashup服务端提供的用户界面。业务请求者根据该用户界面发送业务请求消息。As mentioned above, the service requester sends a service request message, and the service requester uses a browser or a client. The browser can be a PC browser or a terminal browser or the browser is a hypertext transfer protocol (HyperText Transfer Protocol, HTTP) is a widget that interacts with the Internet and sends a business request message, which is expressed as import webRMI.js, where webRMI.js is a static javascript file sent by the Mashup server to the business requester, and the javascript file supports AJAX The technology's ability to send requests and parse responses. After the business requester obtains the webRMI.js file from the server, the client shows the user interface provided by the Mashup server to the business requester. The service requester sends a service request message according to the user interface.

业务请求者发送业务请求消息向Mashup服务器请求Mashup业务Etour,Mashup服务器接收该请求后,查询是否存在Etour对应的组件注册并存储,如存在,则根据业务请求者的状态和组件的数据源的状态,动态生成业务请求接口。举例来说,Mashup服务器返回动态生成的js文件(Etour.js)给业务请求者,业务请求者反馈相关参数,例如城市,日期等,客户端的webRMI.js根据Etour.js的指示发送请求到Mashup服务器。The business requester sends a business request message to the Mashup server to request the Mashup business Etour. After receiving the request, the Mashup server inquires whether there is a component corresponding to Etour that is registered and stored. , to dynamically generate a service request interface. For example, the Mashup server returns the dynamically generated js file (Etour.js) to the business requester, and the business requester feeds back relevant parameters, such as city, date, etc., and the webRMI.js of the client sends the request to Mashup according to the instructions of Etour.js server.

Mashup服务器通过业务提供接口从Etour的组件请求Etour业务,Etour的组件通过业务提供接口调用实际的业务,如weather业务和FlightSearch业务,例如,提供的weather业务的Java组件,通过构成业务提供接口的Java函数调用实际的业务完成天气查询,提供FlightSearch业务的WSDL的Web组件,通过HTTP协议调用实际的业务,Etour组件将上述组件的业务组合后将结果反馈给业务请求者。The Mashup server requests the Etour service from the Etour components through the service providing interface, and the Etour component calls the actual service through the service providing interface, such as weather service and FlightSearch service. The function calls the actual business to complete the weather query, provides the WSDL web component of the FlightSearch business, calls the actual business through the HTTP protocol, and the Etour component combines the business of the above components and feeds back the result to the business requester.

本发明实施例的提供的实现Mashup业务的方案,可以支持Mashup系统与其他系统(如AAA系统和/或计费系统)之间的交互,并保证运营的安全性。其中安全性包括对用户身份的验证,对用户使用业务的权限验证,支持单点登陆等。参见图8,具体流程描述如下:The solution for realizing the Mashup service provided by the embodiment of the present invention can support the interaction between the Mashup system and other systems (such as the AAA system and/or billing system), and ensure the security of operation. Among them, security includes verification of user identity, verification of authority of users to use services, support for single sign-on, etc. See Figure 8, the specific process is described as follows:

801:业务请求者发送业务请求消息到请求消息分析单元。801: The service requester sends a service request message to the request message analysis unit.

802:请求消息分析单元分析请求消息后,将业务请求消息转发到组件请求处理单元。802: After analyzing the request message, the request message analysis unit forwards the service request message to the component request processing unit.

803:组件请求处理单元向组件管理单元发送验证、鉴权或计费请求消息。803: The component request processing unit sends a verification, authentication or accounting request message to the component management unit.

804:组件管理单元触发相应操作,如验证和鉴权流程,或者计费操作流程。本发明提供的方案支持验证、鉴权和计费的机制。804: The component management unit triggers a corresponding operation, such as a verification and authentication process, or a charging operation process. The solution provided by the invention supports mechanisms of authentication, authentication and charging.

组件管理单元向验证、鉴权系统请求对用户身份和用户访问权限的验证。当验证通过后,验证、鉴权系统执行后续操作,例如,向计费系统(如OCS或OFCS)请求资源预留等请求。The component management unit requests verification of user identity and user access rights from the verification and authentication system. After the verification is passed, the verification and authentication system performs subsequent operations, for example, requests resource reservation and other requests from the charging system (such as OCS or OFCS).

当验证通过,且资源预留成功时,Mashup系统执行步骤805b;否则,若未通过验证或者资源预留失败,则Mashup系统执行805a:When the verification is passed and the resource reservation is successful, the Mashup system executes step 805b; otherwise, if the verification fails or the resource reservation fails, the Mashup system executes 805a:

805a:组件管理单元向组件请求处理单元发送请求失败消息。805a: The component management unit sends a request failure message to the component request processing unit.

806a:组件请求处理单元向请求消息分析单元发送请求失败消息,其中,若造成失败的原因是未通过验证,则该请求失败消息可以指示验证失败,若造成失败的原因是预留资源不足,则该请求失败消息可以指示资源不足,如余额不足。806a: The component request processing unit sends a request failure message to the request message analysis unit, wherein, if the reason for the failure is failure to pass the verification, the request failure message may indicate that the verification failed, and if the reason for the failure is insufficient reserved resources, then The request failure message may indicate insufficient resources, such as insufficient balance.

807a:请求消息分析单元将请求失败消息转发至业务请求者。807a: The request message analysis unit forwards the request failure message to the service requester.

805b:组件管理单元向组件请求处理单元发送验证、鉴权或计费请求成功。805b: The component management unit sends a verification, authentication or accounting request to the component request processing unit successfully.

806b:组件请求处理单元向组件存储单元发送查询请求,查询调用请求消息中组件ID所对应的已注册的组件。806b: The component request processing unit sends a query request to the component storage unit to query the registered component corresponding to the component ID in the call request message.

807b:组件存储单元反馈组件查询结果给组件请求处理单元。807b: The component storage unit feeds back the component query result to the component request processing unit.

808b:组件请求处理单元通过反馈回来的组件信息生成业务请求接口,并将该业务请求接口反馈给业务请求者。808b: The component request processing unit generates a service request interface through the fed back component information, and feeds back the service request interface to the service requester.

809b:业务请求者根据该业务请求接口向请求消息分析单元发送业务请求消息请求业务。即请求消息分析单元利用业务请求接口接收业务请求消息。809b: The service requester sends a service request message to the request message analysis unit to request a service according to the service request interface. That is, the request message analysis unit uses the service request interface to receive the service request message.

810b:请求消息分析单元将业务请求消息转发至组件请求处理单元。810b: The request message analysis unit forwards the service request message to the component request processing unit.

811b:组件请求处理单元接收到业务请求消息后,利用业务提供接口从业务请求消息所对应的组件请求业务。811b: After receiving the service request message, the component request processing unit uses the service providing interface to request a service from the component corresponding to the service request message.

812b:组件请求处理单元将生成的Mashup业务应答消息发送至请求消息分析单元。812b: The component request processing unit sends the generated Mashup service response message to the request message analysis unit.

813b:请求消息分析单元将Mashup业务应答消息转发至业务请求者。813b: The request message analysis unit forwards the Mashup service response message to the service requester.

814b:组件管理单元向组件请求处理单元发送组件调用信息。814b: The component management unit sends component invocation information to the component request processing unit.

组件请求处理单元通知组件管理单元调用了哪些组件以及这些组件的相关信息。The component request processing unit notifies the component management unit which components are called and the relevant information of these components.

815b:组件管理单元根据组件调用信息生成业务使用详单,例如,记录通话详单(Call Detailed Record,CDR),然后,计费系统会根据CDR对本次Mashup业务的使用进行计费。815b: The component management unit generates a service use detailed list according to the component call information, for example, records a call detailed record (Call Detailed Record, CDR), and then, the billing system charges the use of the Mashup service according to the CDR.

例如,当调用了weather组件和fight组件,组件管理单元就根据weather组件和fight组件的调用信息生成业务使用详单;计费系统就可以根据计费策略进行计费,如weather组件调用1次收取1元费用,flight组件调用1次收取1元费用,本次Mashup业务共计收费2元。For example, when the weather component and the fight component are invoked, the component management unit will generate a service usage bill according to the invocation information of the weather component and the fight component; the billing system can perform billing according to the billing policy, such as calling the weather component once and charging 1 yuan fee, 1 yuan fee is charged for each call of the flight component, and the total charge for this mashup business is 2 yuan.

816b:在计费结束后,组件管理单元向组件请求处理单元发送计费成功消息。816b: After the accounting ends, the component management unit sends an accounting success message to the component request processing unit.

817b:组件请求处理单元将计费成功消息转发至请求消息分析单元。817b: The component request processing unit forwards the charging success message to the request message analyzing unit.

818b:请求消息分析单元将计费成功消息返回给业务请求者。818b: The request message analyzing unit returns the charging success message to the service requester.

步骤808b中生成业务请求接口和步骤806b业务查询的流程可参见上述的相关内容,在此不再重复描述。For the process of generating the service request interface in step 808b and the process of service query in step 806b, please refer to the relevant content above, and the description will not be repeated here.

进一步的,本发明实施例对按照预定结构创建的Mashup业务的组件能够被其他的Mashup业务使用,如对已创建的Mashup业务的组件进行注册并按照统一的格式生成MashupAPI,重新包装成对外部开放具有统一格式的接口,以根据该组件再次创建得到新的Mashup业务。Further, in the embodiment of the present invention, the components of the Mashup service created according to the predetermined structure can be used by other Mashup services, such as registering the components of the created Mashup service and generating a MashupAPI according to a unified format, and repackaging it to be open to the outside It has an interface with a unified format, so as to create a new Mashup service based on this component.

由上所述可以看出,本发明实施例实现了对各种Mashup的数据源的统一封装机制,使用一种统一的格式进行注册、封装,可扩展性强,数据源覆盖范围广,避免业务创建人员使用传统数据源的API开发Mashup应用带来的不便。It can be seen from the above that the embodiment of the present invention implements a unified encapsulation mechanism for various Mashup data sources, uses a unified format for registration and encapsulation, has strong scalability, wide coverage of data sources, and avoids business The inconvenience caused by creators using APIs of traditional data sources to develop mashup applications.

本发明实施例提供一种扩展的动态脚本语言,使得业务创建者无需额外的学习其他的语言,如各个特定的组件语言,例如Java,C++,以及Mashup Server标签语言等,只需使用扩展的动态脚本语言就能够创建Mashup业务。The embodiment of the present invention provides an extended dynamic scripting language, so that business creators do not need to learn additional languages, such as each specific component language, such as Java, C++, and Mashup Server tag language, etc., only need to use the extended dynamic scripting language Scripting language can create Mashup business.

本发明实施例以Mashable API的格式统一对注册的可靠的数据源进行管理,保障数据源的稳定性和可靠性,并且对用户接入和使用数据源做一定的用户管理和运营管理,例如计费和验证授权等。The embodiment of the present invention manages the registered reliable data sources in the format of Mashable API, guarantees the stability and reliability of the data sources, and performs certain user management and operation management on the user access and use of the data sources, such as computing Fees and verification authorization, etc.

本发明实施例能够将创建得到的Mashup业务重新包装成具有统一交互接口的组件,以便于二次开发的调用。The embodiment of the present invention can repackage the created Mashup service into a component with a unified interactive interface, so as to facilitate the invocation of secondary development.

本发明又一实施例还提供了一种实现业务聚合Mashup业务的装置,参见图9,所述装置包括:Another embodiment of the present invention also provides a device for realizing the service aggregation Mashup service. Referring to FIG. 9, the device includes:

业务提供接口生成单元91,用于对数据源的组件进行注册并按照统一的第一格式为所述组件生成业务提供接口。The service providing interface generating unit 91 is configured to register the components of the data source and generate a service providing interface for the components according to a unified first format.

业务请求接口生成单元92,用于根据业务请求者的业务请求消息,在已注册的所述组件中获取所需的组件,并按照统一的第二格式为所述所需的组件生成业务请求接口。所述第一格式和所述第二格式为相同的格式,或者,所述第一格式和所述第二格式为不同的格式。A service request interface generation unit 92, configured to obtain the required components from the registered components according to the service request message of the service requester, and generate a service request interface for the required components according to a unified second format . The first format and the second format are the same format, or the first format and the second format are different formats.

业务实现单元93,用于利用所述业务请求接口接收所述业务请求消息,利用所述业务提供接口向所述所需的组件请求业务,利用所述业务请求接口将生成的Mashup业务应答消息发送至业务请求者。The service realization unit 93 is configured to use the service request interface to receive the service request message, use the service provision interface to request services from the required components, and use the service request interface to send the generated Mashup service response message to the business requester.

进一步的,所述装置还包括:Further, the device also includes:

组件获得单元,用于在将Mashup service数据源部署在Mashup服务器上的部署过程中,对所述Mashup service数据源的Mashup业务按照预定结构进行解析得到所述Mashupservice数据源的组件。所述装置还包括业务创建单元,用于利用动态脚本语言按照如下预定结构创建Mashup业务:The component obtaining unit is configured to, during the deployment process of deploying the Mashup service data source on the Mashup server, analyze the Mashup business of the Mashup service data source according to a predetermined structure to obtain the components of the Mashup service data source. The device also includes a service creation unit for creating a Mashup service using a dynamic scripting language according to the following predetermined structure:

组件导入部分、命名空间定义部分、语法定义部分和操作定义部分。Component import section, namespace definition section, syntax definition section, and operation definition section.

其中,所述业务提供接口生成单元包括:Wherein, the service providing interface generation unit includes:

第一接收模块,用于接收注册组件请求消息,所述注册组件请求消息中携带组件ID;查询处理模块,用于在存储的已注册组件中,查询所述组件ID所对应的组件是否已经注册,若已经注册,更新所述组件ID,重新执行注册流程,若未注册,按照统一的第一格式生成业务提供接口并存储。The first receiving module is used to receive the registration component request message, and the registration component request message carries the component ID; the query processing module is used to query whether the component corresponding to the component ID has been registered in the stored registered components , if registered, update the component ID, re-execute the registration process, if not registered, generate and store the service providing interface according to the unified first format.

其中,所述业务请求接口生成单元包括:Wherein, the service request interface generation unit includes:

第二接收模块,用于接收业务请求消息,所述业务请求消息中携带组件关键字;The second receiving module is configured to receive a service request message, and the service request message carries a component keyword;

获取模块,用于当已注册组件的组件ID与所述业务请求消息中携带的组件关键字匹配时,获取所述已注册的组件;An acquisition module, configured to acquire the registered component when the component ID of the registered component matches the component keyword carried in the service request message;

生成模块,用于根据业务请求者的状态和所述已注册的组件的数据源的状态,选择合适的组件,并为所述选择的组件动态生成业务请求接口。The generating module is used to select an appropriate component according to the status of the service requester and the status of the data source of the registered component, and dynamically generate a service request interface for the selected component.

本发明又一实施例还提供了一种通信系统,所述系统包括Mashup服务器,所述Mashup服务器包括上述的实现Mashup业务的装置。Another embodiment of the present invention also provides a communication system, the system includes a mashup server, and the mashup server includes the above-mentioned device for realizing the mashup service.

本发明装置实施例中各功能模块和单元的具体工作方式参见本发明方法实施例。本发明装置实施例中各功能模块和单元可以单独实现,也可以集成在一个或多个单元中实现。For the specific working mode of each functional module and unit in the device embodiment of the present invention, refer to the method embodiment of the present invention. Each functional module and unit in the device embodiment of the present invention can be implemented independently, or integrated in one or more units.

本发明实施例提供的技术方案,通过采用统一的格式为各个数据源的组件生成业务提供接口或业务请求接口,实现了对各种数据源的统一封装机制,从而能够支持包括电信服务数据源在内的多种类型的数据源通过该交互接口进行Mashup业务,增强了Mashup业务的可扩展性,满足了用户的需要。The technical solution provided by the embodiment of the present invention implements a unified encapsulation mechanism for various data sources by adopting a unified format to generate service providing interfaces or service request interfaces for components of each data source, thereby being able to support data sources including telecommunication services in Various types of data sources within the Mashup service are performed through this interactive interface, which enhances the scalability of the Mashup service and meets the needs of users.

本发明又一实施例还提供了一种网络设备,包括:Another embodiment of the present invention also provides a network device, including:

请求消息分析单元,用于对接收到的组件注册请求消息进行分析,将所述组件注册请求消息发送至组件注册单元,所述组件注册请求消息携带组件标识ID,以及,对接收到的业务请求消息进行分析,将所述业务请求消息发送至组件请求处理单元,The request message analysis unit is configured to analyze the received component registration request message, send the component registration request message to the component registration unit, the component registration request message carries the component identification ID, and the received service request The message is analyzed, and the service request message is sent to the component request processing unit,

所述组件注册单元,用于根据组件注册请求消息中携带的所述组件ID,向组件存储单元发送组件查询请求,查询组件存储单元中所有已经注册的组件中是否有相同ID的组件已经注册,如果没有相同ID的组件注册,则调用MashableAPI创建单元,以使所述Mashable API创建单元按照统一的第一格式为组件生成业务提供接口;所述组件存储单元,用于存储组件和组件的描述信息,所述描述信息包括组件ID;The component registration unit is configured to send a component query request to the component storage unit according to the component ID carried in the component registration request message, and query whether all registered components in the component storage unit have a component with the same ID registered, If there is no component registration with the same ID, call the MashableAPI creation unit, so that the Mashable API creation unit provides an interface for component generation services in a unified first format; the component storage unit is used to store components and component description information , the description information includes a component ID;

所述组件请求处理单元,用于根据业务请求消息,按照统一的第二格式为组件生成业务请求接口,或者,调用所述Mashable API创建单元以使所述Mashable API创建单元按照统一的第二格式为组件生成业务请求接口,以及利用所述业务请求接口接收所述业务请求消息,利用所述业务提供接口向相应的组件请求业务,利用所述业务请求接口将生成的Mashup业务应答消息发送至业务请求者。The component request processing unit is configured to generate a service request interface for the component according to a unified second format according to the service request message, or call the Mashable API creation unit to make the Mashable API creation unit follow the unified second format Generate a service request interface for the component, and use the service request interface to receive the service request message, use the service providing interface to request service from the corresponding component, and use the service request interface to send the generated Mashup service response message to the service requester.

进一步的,所述请求消息还包括mashup部署请求消息,上述网络设备还包括:Further, the request message also includes a mashup deployment request message, and the above-mentioned network device also includes:

Mashup部署单元,用于根据mashup部署请求消息,将Mashup service数据源部署到Mashup服务器上并请求组件生成单元为所述Mashup service数据源的Mashup业务生成组件;The Mashup deployment unit is used to deploy the Mashup service data source on the Mashup server and request the component generation unit to generate components for the Mashup business of the Mashup service data source according to the mashup deployment request message;

组件生成单元,用于根据所述Mashup部署单元的请求,向脚本解析单元发送脚本解析请求,请求脚本解析单元解析Mashup业务的脚本描述并获取解析结果,以按照预定的结构为所述Mashup业务生成组件;The component generation unit is used to send a script analysis request to the script analysis unit according to the request of the Mashup deployment unit, request the script analysis unit to analyze the script description of the Mashup service and obtain the analysis result, so as to generate the Mashup service according to the predetermined structure components;

脚本解析单元,用于解析使用动态语言描述的Mashup Service数据源的Mashup业务,将解析结果发送给组件生成单元,以使组件生成单元为所述MashupService数据源生成组件。The script analysis unit is used to analyze the Mashup business of the Mashup Service data source described in a dynamic language, and send the analysis result to the component generation unit, so that the component generation unit generates components for the MashupService data source.

进一步的,上述网络设备还包括:组件管理单元,用于接收组件请求处理单元的验证、鉴权或计费请求消息,向验证、鉴权系统请求对用户身份和用户访问权限的验证,根据组件调用信息生成业务使用详单,以使计费系统利用所述业务使用详单进行计费。Further, the above-mentioned network device also includes: a component management unit, configured to receive a verification, authentication or accounting request message from the component request processing unit, and request the verification and authentication system to verify the user identity and user access rights, according to the component The information is invoked to generate a detailed service use bill, so that the charging system uses the detailed service use bill for charging.

上述网络设备的具体工作方式也可以参见图2至8所示的实施例。Refer to the embodiments shown in FIGS. 2 to 8 for specific working modes of the foregoing network devices.

本发明装置实施例中各功能模块和单元的具体工作方式参见本发明方法实施例。本发明装置实施例中各功能模块和单元可以单独实现,也可以集成在一个或多个单元中实现。For the specific working mode of each functional module and unit in the device embodiment of the present invention, refer to the method embodiment of the present invention. Each functional module and unit in the device embodiment of the present invention can be implemented independently, or integrated in one or more units.

本发明实施例提供的技术方案,通过采用统一的格式为各个数据源的组件生成业务提供接口或业务请求接口,实现了对各种数据源的统一封装机制,从而能够支持包括电信服务数据源在内的多种类型的数据源通过该交互接口进行Mashup业务的创建和请求,增强了Mashup业务的可扩展性,满足了用户的需要。The technical solution provided by the embodiment of the present invention implements a unified encapsulation mechanism for various data sources by adopting a unified format to generate service providing interfaces or service request interfaces for components of each data source, thereby being able to support data sources including telecommunication services in Various types of data sources in the system create and request Mashup services through this interactive interface, which enhances the scalability of Mashup services and meets the needs of users.

本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the present invention can be realized by means of software plus necessary general hardware platform. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk, A CD, etc., includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of the present invention.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (13)

  1. A kind of 1. method for realizing business polymerization Mashup business, it is characterised in that methods described includes:
    The component of data source is registered and generates business according to the first unified form as the component interface is provided;
    According to service requester business request information, required component is inquired about in the registered component, and according to system One the second form generates service request interface for the required component, and a business provides interface and corresponds to one or more industry Business request interface;
    Using business request information described in the service request interface, interface is provided to described required using the business Component call business, the Mashup business response messages of generation are sent to service requester using the service request interface.
  2. 2. according to the method for claim 1, it is characterised in that the component to data source is registered and according to unified The first form generate business for the component and interface is provided included:
    Component registration request message is received, portable unit identifies ID in the component registration request message;
    In the registered component of storage, inquire about whether the component corresponding to the component ID has been registered, if having registered, more The new component ID, re-executes register flow path, if unregistered, provide interface according to unified the first form generation business and deposits Storage.
  3. 3. method according to claim 1 or 2, it is characterised in that the component to data source registered and according to The first unified form provides interface for component generation business to be included:
    When the component is C++ components, according to the dynamic link library file of C++ components and component ID, locally connect by Java Mouth Java Native Interface generate the business and provide interface;
    When the component is Java component, the business offer is generated according to the java packets of Java component and component ID and connect Mouthful;
    When the component is that declarative state shifts REST components, according to the REST URLs of the REST components URL and component ID generates the business and provides interface;
    When the component is web service description language WSDL Web components, according to the HTTP URL and group of the Web components Part ID generates the business and provides interface.
  4. 4. according to the method for claim 1, it is characterised in that the business request information according to service requester, Inquiring about required component in the registered component includes:
    Business request information is received, portable unit keyword in the business request information;
    When the component keyword match carried in the component ID of registered component and the business request information, described in acquisition The component of registration.
  5. 5. the method according to claim 1 or 4, it is characterised in that second form according to unification is described required Component generation service request interface include:According to the shape of service requester state and the data source of the registered component State, suitable registered component is selected, and be the component dynamic generation service request interface of the selection;
    The state of the service requester comprises at least following one kind or its combination:
    Terminal, business presentation mode and response time used in service requester;
    The state of the data source of the component comprises at least following one kind or its combination:
    The load capacity of the data source, the service quality QoS of component of the data source and the reliability of the data source.
  6. 6. method according to claim 1 or 2, it is characterised in that the component to data source registered and by Before providing interface according to the first unified form for component generation business, methods described also includes:
    The data source includes business polymerization service Mashup service data sources and non-Mashup service data sources;
    During the deployment that Mashup service data sources are deployed on Mashup servers, to the Mashup The Mashup business of service data sources is parsed to obtain the group of the Mashup service data sources according to predetermined structure Part.
  7. 7. according to the method for claim 6, it is characterised in that Mashup service data sources are being deployed in Mashup Before on server, methods described also includes:
    Using dynamic script language Mashup business is created according to following predetermined structure:
    Component lead-in portion, NameSpace definition part, syntactic definition part and Operation Definition part.
  8. 8. a kind of device for realizing business polymerization Mashup business, it is characterised in that described device includes:
    Business provides interface generating unit, for being registered to the component of data source and being described according to the first unified form Component generation business provides interface;
    Service request interface generating unit, for the business request information according to service requester, in the registered component Component needed for middle inquiry, and generate service request interface, an industry according to the second unified form for the required component Business provides interface and corresponds to one or more service request interfaces;
    Business realizing unit, for using business request information described in the service request interface, being carried using the business For interface to the required component call business, using the service request interface by the Mashup business response messages of generation Send to service requester.
  9. 9. device according to claim 8, it is characterised in that the data source includes business polymerization service Mashup Service data sources and non-Mashup service data sources, described device also include:
    Component obtaining unit, in the deployment process being deployed in Mashup service data sources on Mashup servers In, the Mashup business of the Mashup service data sources is parsed according to predetermined structure to obtain the Mashup The component of service data sources.
  10. 10. device according to claim 8, it is characterised in that described device also includes service creation unit, for utilizing Dynamic script language creates Mashup business according to following predetermined structure:
    Component lead-in portion, NameSpace definition part, syntactic definition part and Operation Definition part.
  11. 11. device according to claim 8, it is characterised in that
    The business, which provides interface generating unit, to be included:
    First receiving module, for receiving component registration request message, portable unit ID in the component registration request message;
    Query processing module, for whether in the registered component of storage, inquiring about the component corresponding to the component ID Registration, if having registered, updates the component ID, re-executes register flow path, if unregistered, is given birth to according to the first unified form Interface is provided into business and is stored.
  12. 12. device according to claim 8, it is characterised in that
    The service request interface generating unit includes:
    Second receiving module, for receiving business request information, portable unit keyword in the business request information;
    Acquisition module, for when the component keyword match carried in the component ID of registered component and the business request information When, obtain the registered component.
  13. 13. the device according to claim 8 or 12, it is characterised in that
    The service request interface generating unit further comprises:
    Generation module is suitable for the state according to service requester and the state of the data source of the registered component, selection Registered component, and for the selection component dynamic generation service request interface.
CN201410162733.5A 2010-08-13 2010-08-13 Realize the method, apparatus and equipment of business polymerization Mashup business Expired - Fee Related CN103944902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410162733.5A CN103944902B (en) 2010-08-13 2010-08-13 Realize the method, apparatus and equipment of business polymerization Mashup business

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410162733.5A CN103944902B (en) 2010-08-13 2010-08-13 Realize the method, apparatus and equipment of business polymerization Mashup business
CN201010252829.2A CN102137136B (en) 2010-08-13 2010-08-13 Method, device and equipment for realizing Mashup business in business integration

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201010252829.2A Division CN102137136B (en) 2010-08-13 2010-08-13 Method, device and equipment for realizing Mashup business in business integration

Publications (2)

Publication Number Publication Date
CN103944902A CN103944902A (en) 2014-07-23
CN103944902B true CN103944902B (en) 2017-11-24

Family

ID=51192386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410162733.5A Expired - Fee Related CN103944902B (en) 2010-08-13 2010-08-13 Realize the method, apparatus and equipment of business polymerization Mashup business

Country Status (1)

Country Link
CN (1) CN103944902B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809900B (en) * 2017-05-02 2021-09-07 武汉斗鱼网络科技有限公司 Framework and method for unified resource access
CN108196879A (en) * 2018-01-09 2018-06-22 平安科技(深圳)有限公司 Method for processing business, device, equipment and computer readable storage medium
CN110531967B (en) * 2019-08-16 2021-09-24 北京三快在线科技有限公司 Code generation method and code generation device
CN110851719B (en) * 2019-11-11 2025-06-10 中国石油大学(华东) Mashup Web API personalized recommendation based on collaborative filtering and link prediction
CN112910943B (en) * 2019-12-04 2024-03-05 华为云计算技术有限公司 A service providing method, device and system
CN111242705B (en) * 2019-12-31 2023-12-26 航天信息股份有限公司企业服务分公司 Invoice data acquisition method and device
CN112749222B (en) * 2021-01-18 2024-03-19 北京睿企信息科技有限公司 Relational database query method and device supporting dynamic parameters
CN113778647A (en) * 2021-08-24 2021-12-10 广联达科技股份有限公司 Call request processing method, system and test equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767530A (en) * 2004-10-29 2006-05-03 北京航空航天大学 adapter
CN101472242A (en) * 2007-12-27 2009-07-01 华为技术有限公司 Business polymerization system and method
CN101605147A (en) * 2009-01-08 2009-12-16 北京邮电大学 A multimedia conference system and method
CN101674327A (en) * 2009-09-29 2010-03-17 金蝶软件(中国)有限公司 Heterogeneous system message integration method, framework and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870562A (en) * 2005-05-23 2006-11-29 国际商业机器公司 Dynamic web service calling method, system and web service agent

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767530A (en) * 2004-10-29 2006-05-03 北京航空航天大学 adapter
CN101472242A (en) * 2007-12-27 2009-07-01 华为技术有限公司 Business polymerization system and method
CN101605147A (en) * 2009-01-08 2009-12-16 北京邮电大学 A multimedia conference system and method
CN101674327A (en) * 2009-09-29 2010-03-17 金蝶软件(中国)有限公司 Heterogeneous system message integration method, framework and system

Also Published As

Publication number Publication date
CN103944902A (en) 2014-07-23

Similar Documents

Publication Publication Date Title
CN102137136B (en) Method, device and equipment for realizing Mashup business in business integration
CN103944902B (en) Realize the method, apparatus and equipment of business polymerization Mashup business
US10644929B2 (en) Defining configurable characteristics of a product and associating configuration with enterprise resources
US9043864B2 (en) Constraint definition for conditional policy attachments
KR101898170B1 (en) Automated service profiling and orchestration
CN102185900B (en) Application service platform system and method for developing application services
EP3364631B1 (en) Dynamic orchestration of microservices
US20140033170A1 (en) System and method of generating rest2rest services from wadl
US8332524B2 (en) Information on demand process framework to generate, manage, secure, and deploy browsers and application accessible web services
CN100566311C (en) The system and method for provisioning component applications
Montesi Process-aware web programming with Jolie
CN100505711C (en) System and method for managing communication of component applications
Wizenty et al. Magma: Build management-based generation of microservice infrastructures
Lamparelli et al. Smart contract locator (scl) and smart contract description language (scdl)
WO2023125773A1 (en) Global exception handling method and platform in large-scale micro-service cluster scenario
US20050149342A1 (en) Method and apparatus for creating and customizing plug-in business collaboration protocols
CN113536177A (en) Page jump method, device, server and storage medium
CN114827246A (en) Gateway flow control method and device, electronic equipment and storage medium
CN102075646B (en) Call center equipment control system and method
US20160219105A1 (en) Wsdl/wadl reference definition integration
Benedictis et al. SLAs for cloud applications: agreement protocol and REST-based implementation
CN117786651B (en) Method and device for realizing single sign-on based on java class loader
AlShahwan et al. RESTful-Based Bi-level Distribution Framework for Context-Based Mobile Web Service Provision.
Huang Service composition in converged service environment
Natarajan Model-driven Integration of Federated Event Services in Real-time Component Middleware

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171124

CF01 Termination of patent right due to non-payment of annual fee