CN105141674A - Capability access method and system - Google Patents

Capability access method and system Download PDF

Info

Publication number
CN105141674A
CN105141674A CN201510485002.9A CN201510485002A CN105141674A CN 105141674 A CN105141674 A CN 105141674A CN 201510485002 A CN201510485002 A CN 201510485002A CN 105141674 A CN105141674 A CN 105141674A
Authority
CN
China
Prior art keywords
esb
ability
response message
message
new
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510485002.9A
Other languages
Chinese (zh)
Other versions
CN105141674B (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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201510485002.9A priority Critical patent/CN105141674B/en
Publication of CN105141674A publication Critical patent/CN105141674A/en
Application granted granted Critical
Publication of CN105141674B publication Critical patent/CN105141674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Landscapes

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

Abstract

The invention discloses a capability access method and system. The method comprises: defining a new capability on a capability opening platform; receiving a request message sent for scheduling the new capability, mapping the request message of the new capability into an ESB service request message according to a pre-configured ESB service request template corresponding to the request message of the new capability, and transmitting the ESB service request message to an ESB platform; returning a corresponding ESB response message to the capability opening platform through the ESB platform; converting the ESB response message into a capability response message according to a pre-configured mapping relationship of the ESB response message and the capability response message, and feeding back the capability response message to an external system. The method provided by the invention is used for defining the new capability, the corresponding relationship of the capability request message and the ESB service request template and the corresponding relationship of the ESB response message and the capability response message to automatically generate a new capability, thereby reducing the manual cost of code editing of developers.

Description

A kind of ability cut-in method and system
Technical field
The present invention relates to ability open technique field, be specifically related to a kind of ability cut-in method and system.
Background technology
See Fig. 1, in ability open platform, the main flow of request response as shown in Figure 1, in ability open platform, will at ESB (EnterpriseServiceBus if needed, ESB) the registered service of platform, when opening into an ability access, traditional way is developed by manually writing code, from controll layer, to service layer, to interface interchange layer, all codes all need hand-coding, have developed rear needs and have just completed after repeatedly manual testing.The ability of such opening is many, causes a large amount of workloads, and manual coding is easy to make mistakes.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of ability cut-in method and system, automatically can generate a new ability, replaces manual compiling code, reduces cost of labor.
The technical scheme that the present invention solves the problems of the technologies described above is as follows:
On the one hand, the invention provides a kind of ability cut-in method, described method comprises:
S1, on ability open platform define a new ability;
The request message calling described new ability that S2, reception external system send, the ESB service request template that ability open platform is corresponding according to the request message of this pre-configured new ability, the request message of described new ability is mapped as ESB service request messages, and described ESB service request messages is transferred to ESB platform;
S3, ESB platform, according to described ESB service request messages, returns corresponding ESB response message to ability open platform;
ESB response message, according to the mapping relations of pre-configured ESB response message and capabilities response message, is converted to capabilities response message, and this capabilities response message is fed back to external system by S4, ability open platform.
On the other hand, the invention provides a kind of ability access suzerain, described device comprises external system, ability open platform and ESB platform;
Described ability open platform comprises:
New ability definition module, for defining a new ability on ability open platform;
Receiver module, for receiving the request message calling described new ability that external system sends;
Mapping block, for the ESB service request template corresponding according to the request message of this pre-configured new ability, is mapped as ESB service request messages by the request message of described new ability;
Transport module, for being transferred to ESB platform by described ESB service request messages;
Modular converter, for the mapping relations according to pre-configured ESB response message and capabilities response message, is converted to capabilities response message by ESB response message;
Feedback module, for feeding back to external system by this capabilities response message;
Described ESB platform comprises:
Return module, for according to described ESB service request messages, return corresponding ESB response message to ability open platform.
A kind of ability cut-in method provided by the invention and system, by configuring the essential information of new ability, new capability requests message and the corresponding relation of ESB service request template and the corresponding relation between ESB response message and capabilities response template, automatically a new ability can be generated, replace manual compiling code, reduce manual compiling code cost; Write code without the need to developer, solve the problems such as the mistake caused because developer is careless.
Accompanying drawing explanation
Fig. 1 is that prior art is asked and responds schematic diagram in ability open platform;
Fig. 2 is a kind of ability cut-in method flow chart of the embodiment of the present invention one;
Fig. 3 is the whole workflow diagram of the embodiment of the present invention one;
Fig. 4 is the ESB service request template schematic diagram of configuration in the embodiment of the present invention one;
Capability requests message is mapped as ESB server request message schematic diagram in the embodiment of the present invention one by Fig. 5;
Fig. 6 is allocative abilities response template schematic diagram in the embodiment of the present invention one;
Fig. 7 is converted to capabilities response message schematic diagram by ESB response message in the embodiment of the present invention one;
Fig. 8 is a kind of ability access device schematic diagram of the embodiment of the present invention two.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
Embodiment one, a kind of ability cut-in method.Below in conjunction with Fig. 1-Fig. 7, the method that the present embodiment provides is described in detail.
See Fig. 2, S1, on ability open platform, define a new ability.
Concrete, in telecom communication field, ability is carried out abstract, externally provides one to develop and execution environment.By providing support to introducing fast new application and service, on average operated as original efficiently, reliably establishment and fused business that managing rich is various with lower.See Fig. 3, first on ability open platform, a new ability is defined, comprise URL (UniformResourceLocator, the URL(uniform resource locator)) access path of ability label (being generally the title of new ability) and this new ability defining new ability.
The request message calling described new ability that S2, reception external system send, the ESB service request template that ability open platform is corresponding according to the request message of this pre-configured new ability, the request message of described new ability is mapped as ESB service request messages, and described ESB service request messages is transferred to ESB platform.
Concrete, when external system needs to call this new ability, to ability open platform transmitting capacity request message, this capability requests message comprises the URL carrying special parameter.Ability open platform receives the capability requests message that external system sends, and resolves, obtains the parameter of carrying in request message, and all parameters be placed in a map this capability requests message.
Subsequently, the request message of this new ability pre-configured according to ability open platform and the corresponding relation of ESB service request template, find the ESB service request template that this capability requests message is corresponding.Wherein, as shown in Figure 4, ESB service request template comprises the variable (also can be described as parameter) of definition to the ESB service request template schematic diagram of configuration.Then by the parameter deposited in map and the parameter matching in corresponding ESB service request template, as shown in Figure 5, new capability requests message is mapped as corresponding ESB service request messages, and the ESB service request messages after mapping is transmitted to ESB platform.
S3, ESB platform, according to described ESB service request messages, returns corresponding ESB response message to ability open platform.
Concrete, when ESB platform receives the ESB service request messages of ability open platform forwarding, return ESB response message to ability open platform.
ESB response message, according to the mapping relations of pre-configured ESB response message and capabilities response message, is converted to capabilities response message, and this capabilities response message is fed back to external system by S4, ability open platform.
Concrete, when ability open platform receives the ESB response message that ESB returns, first configure this new capabilities response template, as shown in Figure 6, new capabilities response template comprises the special parameter variable (parametric variable can have multiple, is determined by concrete condition) of configuration.
Then, for all parameters in the new capabilities response template of configuration, the xpath position of parameter corresponding in ESB response message is configured one by one.In ESB response message, each parameter all has a corresponding position xpath, and such as, ESB response message is:
So, the xpath at 000000 place is ROOT/BODY/r.
Subsequently, shown in Figure 7, for the parameter r in capabilities response template, the xpath position in the ESB response message of correspondence is ROOT/BODY/r, can carry out correspondence as follows: r-->ROOT/BODY/r.
Finally, according to new capabilities response template and parametric variable wherein and the xpath position of these parametric variables in the ESB response message of correspondence, ESB response message is converted to capabilities response message, and this capabilities response message is returned to external system, so far external system is called new ability process and is terminated.
Embodiment two, a kind of ability access device.Below in conjunction with Fig. 8, the device that the present embodiment provides is described in detail.
See Fig. 8, the device that the present embodiment provides comprises ability open platform 20 and ESB platform 30, wherein, ability open platform 20 comprises new ability definition module 201, receiver module 202, parsing module 203, mapping block 204, transport module 205, first configuration module 206, second configuration module 207, modular converter 208 and feedback module 209, ESB platform 30 and comprises and return module 301.
New ability definition module 201 in ability open platform 20 is mainly used in the new ability of definition one, wherein, comprises the URL access path of the new ability label of definition and this new ability.
Receiver module 202 in ability open platform 20 is mainly used in the new capability requests message receiving external system transmission.
Parsing module 203 is mainly used in resolving to described message request the special parameter obtained wherein.
Concrete, when external system needs the new ability calling the definition of new ability definition module 201, send new capability requests message to ability open platform 20, this new capability requests message comprises the URL carrying special parameter.Receiver module 202 in ability open platform 20 receives the new capability requests message that external system sends, and parsing module 203 is resolved this new capability requests message, obtains the parameter of carrying in request message, and all parameters is placed in a map.
Mapping block 204 is mainly used in the ESB service request template corresponding according to this pre-configured new capability requests message, and this new capability requests message is mapped as ESB service request messages.
Transport module 205 is mainly used in ESB service request messages to be transferred to ESB platform 30.
Concrete, this new capability requests message pre-configured according to ability open platform 20 and the corresponding relation of ESB service request template, find the ESB service request template that this capability requests message is corresponding.Then mapping block 204 is by the parameter deposited in map and the parameter matching in corresponding ESB service request template, new capability requests message is mapped as corresponding ESB service request messages, the ESB service request messages after mapping is transferred to ESB platform 30 by transport module 205.
Return the ESB service request messages that module 301 forwards according to the forwarding module 205 in ability open platform 20 in ESB platform 30, return corresponding ESB response message to ability open platform 20.
The first configuration module 206 in ability open platform 20 is mainly used in the response template configuring new ability.
Second configuration module 207 is mainly used in all parametric variables in the new capabilities response template configured according to the first configuration module 206, configures the xpath position of these parametric variables in the ESB response message of correspondence one by one.
Modular converter 208 is mainly used in, according to new capabilities response template and variable wherein and the xpath position of these variablees in the ESB response message of correspondence, ESB response message being converted to capabilities response message.
Feedback module 209 is mainly used in this capabilities response message to feed back to external system.
A kind of ability cut-in method provided by the invention and system, by configuring the essential information of new ability, new capability requests message and the corresponding relation of ESB service request template and the corresponding relation between ESB response message and capabilities response template, automatically a new ability can be generated, replace manual compiling code, reduce manual compiling code cost; Write code without the need to developer, solve the problems such as the mistake caused because developer is careless.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. an ability cut-in method, is characterized in that, described method comprises:
S1, on ability open platform define a new ability;
The request message calling described new ability that S2, reception external system send, the ESB service request template that ability open platform is corresponding according to the request message of this pre-configured new ability, the request message of described new ability is mapped as ESB service request messages, and described ESB service request messages is transferred to ESB platform;
S3, ESB platform, according to described ESB service request messages, returns corresponding ESB response message to ability open platform;
ESB response message, according to the mapping relations of pre-configured ESB response message and capabilities response message, is converted to capabilities response message, and this capabilities response message is fed back to external system by S4, ability open platform.
2. a kind of ability cut-in method as claimed in claim 1, it is characterized in that, described step S1 specifically comprises:
Ability open platform defines new ability label and accesses the URL address of this new ability.
3. a kind of ability cut-in method as claimed in claim 2, it is characterized in that, described step S2 specifically comprises:
Receive the request message carrying the URL of special parameter that external system sends, ability open platform resolves the special parameter obtained wherein to described message request;
Parameter in the ESB service request template that special parameter parsing obtained is corresponding with the request message of this pre-configured new ability is mated, the request message of described new ability is mapped as ESB service request messages, and described ESB service request messages is transferred to ESB platform.
4. a kind of ability cut-in method as claimed in claim 1, it is characterized in that, described step S4 comprises:
Configure the response template of new ability, and according to all parametric variables in the response template of this new ability, configure the xpath position of described parametric variable in the ESB response message of correspondence one by one;
According to the response template of described new ability and parametric variable wherein and the xpath position of this parametric variable in the ESB response message of correspondence, ESB response message is converted to capabilities response message, and this capabilities response message is returned to external system.
5. an ability access device, is characterized in that, described device comprises ability open platform and ESB platform;
Described ability open platform comprises:
New ability definition module, for defining a new ability on ability open platform;
Receiver module, for receiving the request message calling described new ability that external system sends;
Mapping block, for the ESB service request template corresponding according to the request message of this pre-configured new ability, is mapped as ESB service request messages by the request message of described new ability;
Transport module, for being transferred to ESB platform by described ESB service request messages;
Modular converter, for the mapping relations according to pre-configured ESB response message and capabilities response message, is converted to capabilities response message by ESB response message;
Feedback module, for feeding back to external system by this capabilities response message;
Described ESB platform comprises:
Return module, for according to described ESB service request messages, return corresponding ESB response message to ability open platform.
6. a kind of ability access device as claimed in claim 5, is characterized in that, described new ability definition module, specifically comprises for defining a new ability on ability open platform:
Ability open platform defines new ability label and accesses the URL address of this new ability.
7. a kind of ability access device as claimed in claim 6, is characterized in that, described receiver module, and the request message calling described new ability sent for receiving external system specifically comprises:
Receive the request message carrying the URL of special parameter that external system sends;
Described ability open platform also comprises:
Parsing module, for resolving the special parameter obtained wherein to described message request;
Mapping block in described ability open platform, for mapping block, for the ESB service request template corresponding according to the request message of this pre-configured new ability, is mapped as ESB service request messages by the request message of described new ability and specifically comprises:
Parameter in the ESB service request template that special parameter parsing obtained is corresponding with the request message of this pre-configured new ability is mated, and the request message of described new ability is mapped as ESB service request messages.
8. a kind of ability access device as claimed in claim 5, is characterized in that, described ability open platform also comprises:
First configuration module, for configuring the response template of new ability;
Second configuration module, for according to all parametric variables in the response template of this new ability, configures the xpath position of described parametric variable in the ESB response message of correspondence one by one;
Described modular converter, for the mapping relations according to pre-configured ESB response message and capabilities response message, is converted to capabilities response message by ESB response message and specifically comprises:
According to the response template of described new ability and parametric variable wherein and the xpath position of this parametric variable in the ESB response message of correspondence, ESB response message is converted to capabilities response message.
CN201510485002.9A 2015-08-07 2015-08-07 A kind of ability cut-in method and system Active CN105141674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510485002.9A CN105141674B (en) 2015-08-07 2015-08-07 A kind of ability cut-in method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510485002.9A CN105141674B (en) 2015-08-07 2015-08-07 A kind of ability cut-in method and system

Publications (2)

Publication Number Publication Date
CN105141674A true CN105141674A (en) 2015-12-09
CN105141674B CN105141674B (en) 2018-06-22

Family

ID=54726878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510485002.9A Active CN105141674B (en) 2015-08-07 2015-08-07 A kind of ability cut-in method and system

Country Status (1)

Country Link
CN (1) CN105141674B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107528839A (en) * 2017-08-18 2017-12-29 深圳乐信软件技术有限公司 The collocation method and device of a kind of interface packets

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794409A (en) * 2009-11-18 2010-08-04 山东浪潮齐鲁软件产业股份有限公司 Real-time data exchange model of cross-platform application system
US8095670B2 (en) * 2007-09-11 2012-01-10 International Business Machines Protocol for enabling dynamic and scalable federation of enterprise service buses
WO2012022585A1 (en) * 2010-08-16 2012-02-23 International Business Machines Corporation Service deployment from a service registry
CN103944956A (en) * 2014-03-10 2014-07-23 浙江大学 Web service agent method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8095670B2 (en) * 2007-09-11 2012-01-10 International Business Machines Protocol for enabling dynamic and scalable federation of enterprise service buses
CN101794409A (en) * 2009-11-18 2010-08-04 山东浪潮齐鲁软件产业股份有限公司 Real-time data exchange model of cross-platform application system
WO2012022585A1 (en) * 2010-08-16 2012-02-23 International Business Machines Corporation Service deployment from a service registry
CN103944956A (en) * 2014-03-10 2014-07-23 浙江大学 Web service agent method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107528839A (en) * 2017-08-18 2017-12-29 深圳乐信软件技术有限公司 The collocation method and device of a kind of interface packets

Also Published As

Publication number Publication date
CN105141674B (en) 2018-06-22

Similar Documents

Publication Publication Date Title
EP3399715B1 (en) Protocol conversion method, platform, and protocol conversion gateway
CN102710593B (en) Method, device and system for publishing message in graph mashup
CN101925045B (en) Method and system for providing user service data
CN102263830B (en) Apparatus, and associated method, for facilitating background processing of push content
CN105763619B (en) The method and device that client and server-side are communicated
KR101495341B1 (en) Method and System for assigning IDs to software compoents
CN105429858A (en) Real-time message transmission method among multiple robots
CN102780613A (en) Method and device for communication of boards of distributed device
CN103024666B (en) The method for sending information that a kind of position-based navigates, device and system
CN108446105B (en) Lightweight API Server development framework and development method
CN104702675A (en) Response method and device of user events
CN104268025A (en) Interprocess communication method and system, and server
CN105183452A (en) Spring AOP based remote protocol service middleware for monitoring power distribution device
CN106603593A (en) HTTP calling method and device based on adaption
CN107450993A (en) A kind of data interactive method of distributed IEC61850 communication components
CN105893055A (en) Method for triggering process engine platformization
CN104734945A (en) Web online instant communication system and method embedded in enterprise management system
CN104539510A (en) Multi-protocol-based information pushing system and method
CN100574439C (en) Realize the system and method that third party's audio-video frequency content is uploaded in the IPTV system
CN105007215A (en) Method for modifying E-mail remotely
AU2003223040B2 (en) Exchange infrastructure system and method
CN102404356B (en) Long-distance function call transmission adapter and data reading method thereof
CN105516269A (en) Application configuration method and application configuration device
CN112217845B (en) Data transmission method based on Netconf protocol and related equipment
US8280943B1 (en) Managing service provider messaging

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