CN105141674B - A kind of ability cut-in method and system - Google Patents

A kind of ability cut-in method and system Download PDF

Info

Publication number
CN105141674B
CN105141674B CN201510485002.9A CN201510485002A CN105141674B CN 105141674 B CN105141674 B CN 105141674B CN 201510485002 A CN201510485002 A CN 201510485002A CN 105141674 B CN105141674 B CN 105141674B
Authority
CN
China
Prior art keywords
ability
esb
message
new
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510485002.9A
Other languages
Chinese (zh)
Other versions
CN105141674A (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 kind of ability cut-in method and system, the method includes:A new ability is defined on ability open platform;The request message of the calling new ability sent is received, according to the corresponding ESB service requests template of the request message of the preconfigured new ability, the request message of the new ability is mapped as ESB service request messages, and be transmitted to ESB platforms;ESB platforms return to corresponding ESB response messages to ability open platform;According to the mapping relations of preconfigured ESB response messages and capabilities response message, ESB response messages are converted into capabilities response message, and the capabilities response message is fed back to external system.Method provided by the invention, by defining new ability, capability requests message and the correspondence and ESB response messages and the correspondence of capabilities response template of ESB service request templates, automatically generate a new ability, reduce the cost of labor that developer writes code.

Description

A kind of ability cut-in method and system
Technical field
The present invention relates to ability open technique fields, and in particular to a kind of ability cut-in method and system.
Background technology
Referring to Fig. 1, in ability open platform, the main flow of response is asked as shown in Figure 1, in ability open platform In, it if necessary will be open in ESB (Enterprise Service Bus, Enterprise Service Bus) the registered service of platform When being accessed into an ability, traditional way is developed by manually writing code, from controll layers, to service layers, is arrived Interface calling layer, all codes are required for hand-coding, need just to calculate after multiple manual testing after the completion of exploitation and complete.This The ability that sample opens is more, causes a large amount of workload, and manual coding error-prone.
Invention content
The technical problems to be solved by the invention are to provide a kind of ability cut-in method and system, can automatically generate one New ability instead of manual compiling code, reduces cost of labor.
The technical solution that the present invention solves above-mentioned technical problem is as follows:
On the one hand, the present invention provides a kind of ability cut-in method, the method includes:
S1, a new ability is defined on ability open platform;
S2, the request message of the calling new ability that external system is sent is received, ability open platform according to matching in advance The request message of the new ability is mapped as ESB clothes by the corresponding ESB service requests template of the request message of the new ability put Business request message, and the ESB service request messages are transferred to ESB platforms;
S3, ESB platform return to corresponding ESB responses report according to the ESB service request messages to ability open platform Text;
S4, ability open platform, will according to the mapping relations of preconfigured ESB response messages and capabilities response message ESB response messages are converted to capabilities response message, and the capabilities response message is fed back to external system.
On the other hand, the present invention provides a kind of abilities to access suzerain, and described device includes external system, ability is opened It is laid flat platform and ESB platforms;
The ability open platform includes:
New ability definition module, for defining a new ability on ability open platform;
Receiving module, for receiving the request message of the calling new ability of external system transmission;
Mapping block, will for the corresponding ESB service requests template of request message according to the preconfigured new ability The request message of the new ability is mapped as ESB service request messages;
Transmission module, for the ESB service request messages to be transferred to ESB platforms;
Modular converter, for the mapping relations according to preconfigured ESB response messages and capabilities response message, by ESB Response message is converted to capabilities response message;
Feedback module, for the capabilities response message to be fed back to external system;
The ESB platforms include:
Module is returned to, for according to the ESB service request messages, returning to corresponding ESB to ability open platform and responding Message.
A kind of ability cut-in method provided by the invention and system, by the way that the essential information of new ability is configured, new ability is asked The correspondence between message and the correspondence of ESB service request templates and ESB response messages and capabilities response template is sought, A new ability can be automatically generated, instead of manual compiling code, reduces manual compiling code cost;It is write without developer Code, solve due to it is wrong caused by developer's carelessness the problems such as.
Description of the drawings
Fig. 1 in ability open platform asks and responds schematic diagram for the prior art;
Fig. 2 is a kind of ability cut-in method flow chart of the embodiment of the present invention one;
Fig. 3 is the entire work flow diagram of the embodiment of the present invention one;
Fig. 4 is the ESB service request template schematic diagrames being configured in the embodiment of the present invention one;
Fig. 5 is that ability request message is mapped as ESB server request message schematic diagrames in the embodiment of the present invention one;
Fig. 6 is allocative abilities response template schematic diagram in the embodiment of the present invention one;
Fig. 7 is to be converted to capabilities response message schematic diagram by ESB response messages 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.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
Embodiment one, a kind of ability cut-in method.Method provided in this embodiment is carried out with reference to Fig. 1-Fig. 7 detailed Explanation.
Referring to Fig. 2, a new ability S1, is defined on ability open platform.
Specifically, in telecom communication field, ability is that the realization of bottom complexity is abstracted, and externally providing one opens Hair and performing environment.By providing support to being rapidly introduced into new application and service, with lower being averaged operated as it is original efficiently, Reliably create and the various fused business of managing rich.Referring to Fig. 3, a new ability is defined first on ability open platform, Including defining the ability label (being usually the title of new ability) of new ability and the URL (Uniform of the new ability Resource Locator, uniform resource locator) access path.
S2, the request message of the calling new ability that external system is sent is received, ability open platform according to matching in advance The request message of the new ability is mapped as ESB clothes by the corresponding ESB service requests template of the request message of the new ability put Business request message, and the ESB service request messages are transferred to ESB platforms.
Specifically, when external system needs to call the new ability, it, should to ability open platform transmitting capacity request message Capability requests message includes the URL for carrying special parameter.The ability that ability open platform receives external system transmission please Message is sought, which is parsed, obtains the parameter carried in request message, and all parameters are placed into In one map.
Then, according to the request message of the preconfigured new ability of ability open platform and ESB service request templates Correspondence finds the corresponding ESB service requests template of the capability requests message.Wherein, the ESB service request templates of configuration Schematic diagram is as shown in figure 4, ESB service requests template includes the variable (alternatively referred to as parameter) of definition.Then it will deposit in map Parameter and parameter in corresponding ESB service requests template match, as shown in figure 5, new capability requests message is mapped as pair The ESB service request messages answered, and the ESB service request messages after mapping are transmitted to ESB platforms.
S3, ESB platform return to corresponding ESB responses report according to the ESB service request messages to ability open platform Text.
Specifically, when ESB platforms receive the ESB service request messages of ability open platform forwarding, opened to ability flat Platform returns to ESB response messages.
S4, ability open platform, will according to the mapping relations of preconfigured ESB response messages and capabilities response message ESB response messages are converted to capabilities response message, and the capabilities response message is fed back to external system.
Specifically, when ability open platform receives the ESB response messages of ESB returns, the new ability is configured first and rings Answer template, as shown in fig. 6, new capabilities response template include the special parameter variable being configured (parametric variable can have it is multiple, by Depending on concrete condition).
Then, it for all parameters in the new capabilities response template of configuration, is configured one by one corresponding in ESB response messages The xpath positions of parameter.In ESB response messages, each parameter is there are one corresponding position xpath, for example, ESB is rung The message is answered to be:
So, the xpath where 000000 is ROOT/BODY/r.
Then, it is shown in Figure 7, for the parameter r in capabilities response template, in corresponding ESB response messages Xpath positions are ROOT/BODY/r, can be corresponded to as follows:r-->ROOT/BODY/r.
Finally, it is rung according to new capabilities response template and parametric variable therein and these parametric variables in corresponding ESB The xpath positions in message are answered, ESB response messages are converted into capabilities response message, and the capabilities response message is returned to External system, so far external system new ability process is called to terminate.
Embodiment two, a kind of ability access device.Device provided in this embodiment is carried out specifically with reference to Fig. 8 It is bright.
Referring to Fig. 8, device provided in this embodiment includes ability open platform 20 and ESB platforms 30, wherein, ability opens Platform 20 include new ability definition module 201, receiving module 202, parsing module 203, mapping block 204, transmission module 205, First configuration module 206, the second configuration module 207, modular converter 208 and feedback module 209, ESB platforms 30 include returning to mould Block 301.
New ability definition module 201 in ability open platform 20 is used mainly to define a new ability, wherein, including definition The URL access path of new ability label and the new ability.
Receiving module 202 in ability open platform 20 is mainly used for receiving the new capability requests report that external system is sent Text.
Parsing module 203 is mainly used for that the message request is parsed to obtain special parameter therein.
Specifically, when external system needs the new ability that new ability definition module 201 is called to define, opened to ability flat Platform 20 sends new capability requests message, which includes the URL for carrying special parameter.Ability open platform Receiving module 202 in 20 receives the new capability requests message of external system transmission, and parsing module 203 is to the new capability requests Message is parsed, and obtains the parameter carried in request message, and all parameters are placed into a map.
Mapping block 204 is mainly used for according to the corresponding ESB service requests mould of the preconfigured new capability requests message The new capability requests message is mapped as ESB service request messages by plate.
Transmission module 205 is mainly used for ESB service request messages being transferred to ESB platforms 30.
Specifically, according to the preconfigured new capability requests message of ability open platform 20 and ESB service request templates Correspondence, find the corresponding ESB service requests template of the capability requests message.Then mapping block 204 will be deposited in Parameter in map is matched with the parameter in corresponding ESB service requests template, new capability requests message is mapped as corresponding ESB service request messages after mapping are transferred to ESB platforms 30 by ESB service request messages, transmission module 205.
The ESB clothes that forwarding module 205 of the return module 301 in ability open platform 20 in ESB platforms 30 forwards Business request message, corresponding ESB response messages are returned to ability open platform 20.
The first configuration module 206 in ability open platform 20 is mainly used for being configured the response template of new ability.
Second configuration module 207 is mainly used for the institute in the new capabilities response template being configured according to the first configuration module 206 There is parametric variable, xpath position of these parametric variables in corresponding ESB response messages is configured one by one.
Modular converter 208 is mainly used for according to new capabilities response template and variable therein and these variables corresponding ESB response messages are converted to capabilities response message by the xpath positions in ESB response messages.
Feedback module 209 is mainly used for the capabilities response message feeding back to external system.
A kind of ability cut-in method provided by the invention and system, by the way that the essential information of new ability is configured, new ability is asked The correspondence between message and the correspondence of ESB service request templates and ESB response messages and capabilities response template is sought, A new ability can be automatically generated, instead of manual compiling code, reduces manual compiling code cost;It is write without developer Code, solve due to it is wrong caused by developer's carelessness the problems such as.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of ability cut-in method, which is characterized in that the method includes:
S1, a new ability is defined on ability open platform;
S2, the request message of the calling new ability that external system is sent is received, ability open platform is according to preconfigured The corresponding ESB service requests template of request message of the new ability, the request message of the new ability is mapped as ESB services please Message is sought, and the ESB service request messages are transferred to ESB platforms;
S3, ESB platform return to corresponding ESB response messages according to the ESB service request messages to ability open platform;
S4, ability open platform ring ESB according to the mapping relations of preconfigured ESB response messages and capabilities response message Message is answered to be converted to capabilities response message, and the capabilities response message is fed back into external system.
2. a kind of ability cut-in method as described in claim 1, which is characterized in that the step S1 is specifically included:
New ability label is defined on ability open platform and accesses the URL addresses of the new ability.
3. a kind of ability cut-in method as claimed in claim 2, which is characterized in that the step S2 is specifically included:
The request message for the URL for carrying special parameter that external system is sent is received, ability open platform reports the request Text is parsed to obtain special parameter therein;
In the special parameter ESB service requests template corresponding with the request message of the preconfigured new ability that parsing is obtained Parameter matched, the request message of the new ability is mapped as ESB service request messages, and please by ESB services Message transmissions is asked to give ESB platforms.
4. a kind of ability cut-in method as described in claim 1, which is characterized in that the step S4 includes:
It is configured the response template of new ability, and according to all parametric variables in the response template of the new ability, institute is configured one by one State xpath position of the parametric variable in corresponding ESB response messages;
According to the response template of the new ability and parametric variable therein and the parametric variable in corresponding ESB response messages In xpath positions, ESB response messages are converted into capabilities response message, and the capabilities response message is returned to external system System.
5. a kind of ability access device, which is characterized in that described device includes ability open platform and ESB platforms;
The ability open platform includes:
New ability definition module, for defining a new ability on ability open platform;
Receiving module, for receiving the request message of the calling new ability of external system transmission;
Mapping block, for the corresponding ESB service requests template of request message according to the preconfigured new ability, by described in The request message of new ability is mapped as ESB service request messages;
Transmission module, for the ESB service request messages to be transferred to ESB platforms;
For the mapping relations according to preconfigured ESB response messages and capabilities response message, ESB is responded for modular converter Message is converted to capabilities response message;
Feedback module, for the capabilities response message to be fed back to external system;
The ESB platforms include:
Module is returned to, for according to the ESB service request messages, corresponding ESB response messages to be returned to ability open platform;
6. a kind of ability access device as claimed in claim 5, which is characterized in that the new ability definition module, for A new ability is defined on ability open platform to specifically include:
New ability label is defined on ability open platform and accesses the URL addresses of the new ability.
7. a kind of ability access device as claimed in claim 6, which is characterized in that the receiving module, for receiving outside The request message of the calling new ability that system is sent specifically includes:
Receive the request message for the URL for carrying special parameter that external system is sent;
The ability open platform further includes:
Parsing module, for being parsed to obtain special parameter therein to the request message;
Mapping block in the ability open platform, it is corresponding for the request message according to the preconfigured new ability The request message of the new ability is mapped as ESB service request messages and specifically included by ESB service request templates:
In the special parameter ESB service requests template corresponding with the request message of the preconfigured new ability that parsing is obtained Parameter matched, the request message of the new ability is mapped as ESB service request messages.
8. a kind of ability access device as claimed in claim 5, which is characterized in that the ability open platform further includes:
First configuration module, for the response template of new ability to be configured;
For all parametric variables in the response template according to the new ability, the parameter is configured in second configuration module one by one Xpath position of the variable in corresponding ESB response messages;
The modular converter, for the mapping relations according to preconfigured ESB response messages and capabilities response message, by ESB Response message is converted to capabilities response message and specifically includes:
According to the response template of the new ability and parametric variable therein and the parametric variable in corresponding ESB response messages In xpath positions, ESB response messages are converted into 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 CN105141674A (en) 2015-12-09
CN105141674B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN105141674A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
US8918477B2 (en) Inter-domain replication of service information
US10007491B2 (en) Systems and/or methods for cloud-based event-driven integration
US20160094506A1 (en) Interactive social media access to data systems
US20170279688A1 (en) Method, device and system for providing device application software management service in internet of things
US20100179967A1 (en) MAP-Queue-Based Data Transfer Method
CN102752204A (en) Service platform and service realization method of ubiquitous network
CN112422709B (en) Identification management method, terminal equipment, identification analysis secondary node and medium
CN105893055A (en) Method for triggering process engine platformization
CN102196569A (en) NGSN (next generation service network) system and method thereof for realizing service application
CN105183452A (en) Spring AOP based remote protocol service middleware for monitoring power distribution device
CN101640814A (en) Trigger mediation system
CN103036775A (en) Information exchange device, system and method
CN104811922A (en) Adjacent node registration method and the device and cross-node registration method and system
CN113691635A (en) Method and device for calling micro service, electronic equipment and readable storage medium
CN105141674B (en) A kind of ability cut-in method and system
CN101938510A (en) SIP servlet applications co-hosting
WO2015184879A1 (en) Terminal topology management service method, device, and system for internet of things
CN107659491A (en) A kind of Group file sharing method and system based on instant messaging
CN105516269A (en) Application configuration method and application configuration device
CN110351107A (en) Configuring management method and device
CN112217845B (en) Data transmission method based on Netconf protocol and related equipment
CN1610298A (en) System for realizing open telecommunication business based on XML file and thereof
CN104461553A (en) Storage management method in conformity with SMI-S (storage management initiative specification) standard
CN107147651B (en) Gray level publishing system and publishing method thereof
US20170286560A1 (en) Method, device and system for device troubleshooting service of the internet of things

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