CN107171959A - Dynamic routing method and dynamic routing system based on SOA - Google Patents

Dynamic routing method and dynamic routing system based on SOA Download PDF

Info

Publication number
CN107171959A
CN107171959A CN201710260759.7A CN201710260759A CN107171959A CN 107171959 A CN107171959 A CN 107171959A CN 201710260759 A CN201710260759 A CN 201710260759A CN 107171959 A CN107171959 A CN 107171959A
Authority
CN
China
Prior art keywords
interface
soa
address
web service
target
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
CN201710260759.7A
Other languages
Chinese (zh)
Other versions
CN107171959B (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.)
ZTE ICT Technologies Co Ltd
Original Assignee
ZTE ICT 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 ZTE ICT Technologies Co Ltd filed Critical ZTE ICT Technologies Co Ltd
Priority to CN201710260759.7A priority Critical patent/CN107171959B/en
Publication of CN107171959A publication Critical patent/CN107171959A/en
Application granted granted Critical
Publication of CN107171959B publication Critical patent/CN107171959B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a kind of dynamic routing method and dynamic routing system based on SOA, wherein, the dynamic routing method based on SOA includes:Web Service interface is disposed in SOA bus platforms, wherein, the preset interface IP address of the web Service interface can be accessed normally;When getting order application, target routing configuration information is read from the order application;Based on target routing configuration information generation target interface address;The preset interface IP address is replaced with into the target interface address, to build route service.By technical scheme, web Service interface is disposed in SOA bus platforms, different web Service interfaces can be dynamically routed to, it is to avoid overlapping development interface, improve development efficiency, reduce development cost and maintenance cost.

Description

Dynamic routing method and dynamic routing system based on SOA
Technical field
The present invention relates to field of computer technology, in particular to a kind of dynamic routing method based on SOA and one kind Dynamic routing system based on SOA.
Background technology
SOA (Service-Oriented Architecture, Services Oriented Achitecture) is in some mega projects In, there is following service conditions:
By taking medicine distribution as an example:In order to realize the monitoring to medicine in somewhere and management, five are set up in somewhere It is distributed on the basis of the pharmaceutical warehouse of different zones (wherein a, central warehouse, remaining is regional warehouse), all medicine systems One is purchased by central warehouse, according to the actual use demand of the medicines of medical institutions and itself medicine storage situation, reasonably Each medicine is assigned to regional warehouse.
In correlation technique, interacting between central warehouse and regional warehouse:
The web Service interface that one purchase order is imported, the application server deployment in different location, in are provided Interface URL (Uniform Resource Locator, the URL) address in heart warehouse encapsulation different zones warehouse, Business is conducted interviews when calling by different interface IP addresses, and this method of calling increases hub-interface Workload, hub-interface need provide interface quantity=individual interface × N number of hub-interface, for each regional warehouse One corresponding interface of exploitation is needed to be corresponded with hub-interface, it is this to service name to realize that difference connects by hub-interface Mouthful call shortcoming it is obvious that adding development cost and maintenance cost, in this regard, there is presently no effective solution.
The content of the invention
The present invention is based at least one above-mentioned technical problem, it is proposed that a kind of new dynamic routing side based on SOA Case, by disposing web Service interface in SOA bus platforms, can dynamically be routed to different web Service interfaces, it is to avoid Overlapping development interface, improves development efficiency, reduces development cost and maintenance cost.
In view of this, the present invention proposes a kind of dynamic routing method based on SOA, including:On SOA bus platforms top Web Service interface is affixed one's name to, wherein, the preset interface IP address of the web Service interface can be accessed normally;Ordered when getting During single application, target routing configuration information is read from the order application;Mesh is generated based on the target routing configuration information Tag splice port address;The preset interface IP address is replaced with into the target interface address, to build route service.
In the technical scheme, by disposing web Service interface in SOA bus platforms, web Service interface is matched somebody with somebody The interface IP address that can normally access is equipped with, when getting order application, based on the target route read from order application Configuration information generation target interface address, and preset interface IP address is replaced with into target interface address, without overlapping development interface, Different web Service interfaces can be dynamically routed to, development efficiency is improved, reduces development cost and maintenance cost.
In the above-mentioned technical solutions, it is preferable that it is described in SOA bus platforms dispose web Service interface the step of, Specifically include:Obtain interface input paramete information and interface output parameter information;Based on the interface input paramete information and institute Interface output parameter information is stated, the web Service interface is created;The web Service interface is deployed in the SOA total On line platform.
In the technical scheme, created by the interface input paramete information and interface output parameter information that get Web Service interface, and be deployed in SOA bus platforms, carried out respectively without the application server in different location Deployment, subsequently to realize that the dynamic binding of interface IP address provides premise.
In any of the above-described technical scheme, it is preferable that described that target routing configuration letter is read from the order application The step of breath, specifically includes:The target routing configuration information is read based on database adapter.
In any of the above-described technical scheme, it is preferable that the preset interface IP address information includes URL address informations.
In any of the above-described technical scheme, it is preferable that the target routing configuration information includes:Service name, access Area code, access region user name, access region password, remark information.
According to the second aspect of the invention, it is proposed that a kind of dynamic routing system based on SOA includes:Deployment unit, is used In disposing web Service interface in SOA bus platforms, wherein, the preset interface IP address of the web Service interface can quilt It is normal to access;Reading unit, for when getting order application, target routing configuration letter to be read from the order application Breath;Generation unit, for based on target routing configuration information generation target interface address;Processing unit, for by described in Preset interface IP address replaces with the target interface address, to build route service.
In the technical scheme, by disposing web Service interface in SOA bus platforms, web Service interface is matched somebody with somebody The interface IP address that can normally access is equipped with, when getting order application, based on the target route read from order application Configuration information generation target interface address, and preset interface IP address is replaced with into target interface address, without overlapping development interface, Different web Service interfaces can be dynamically routed to, development efficiency is improved, reduces development cost and maintenance cost.
In the above-mentioned technical solutions, it is preferable that the deployment unit specifically for:Obtain interface input paramete information and connect Mouth output parameter information;Based on the interface input paramete information and the interface output parameter information, create described Web Service interface;The web Service interface is deployed in the SOA bus platforms.
In the technical scheme, created by the interface input paramete information and interface output parameter information that get Web Service interface, and be deployed in SOA bus platforms, carried out respectively without the application server in different location Deployment, subsequently to realize that the dynamic binding of interface IP address provides premise.
In any of the above-described technical scheme, it is preferable that the reading unit specifically for:Read based on database adapter Take the target routing configuration information.
In any of the above-described technical scheme, it is preferable that the preset interface IP address information includes URL address informations.
In any of the above-described technical scheme, it is preferable that the target routing configuration information includes:Service name, access Area code, access region user name, access region password, remark information.
By above technical scheme, by disposing web Service interface in SOA bus platforms, can dynamically it be routed to not Same web Service interface, it is to avoid overlapping development interface, improves development efficiency, reduces development cost and maintenance cost.
Brief description of the drawings
Fig. 1 shows the schematic flow diagram of the dynamic routing method based on SOA according to an embodiment of the invention;
Fig. 2 shows the schematic block diagram of the dynamic routing system according to an embodiment of the invention based on SOA;
Fig. 3 shows the schematic block diagram of the dynamic routing system based on SOA according to another embodiment of the invention.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the schematic flow diagram of the dynamic routing method based on SOA according to an embodiment of the invention.
As shown in figure 1, the dynamic routing method based on SOA according to an embodiment of the invention, including:
Step 102, dispose web Service interface in SOA bus platforms, wherein, the web Service interface it is pre- Interface IP address is put can normally to be accessed.
Step 104, when getting order application, target routing configuration information is read from the order application.
Step 106, based on target routing configuration information generation target interface address.
Step 108, the preset interface IP address is replaced with into the target interface address, to build route service.
In the technical scheme, by disposing web Service interface in SOA bus platforms, web Service interface is matched somebody with somebody The interface IP address that can normally access is equipped with, when getting order application, based on the target route read from order application Configuration information generation target interface address, and preset interface IP address is replaced with into target interface address, without overlapping development interface, Different web Service interfaces can be dynamically routed to, development cost and maintenance cost is reduced.
In the above-mentioned technical solutions, it is preferable that it is described in SOA bus platforms dispose web Service interface the step of, Specifically include:Obtain interface input paramete information and interface output parameter information;Based on the interface input paramete information and institute Interface output parameter information is stated, the web Service interface is created;The web Service interface is deployed in the SOA total On line platform.
In the technical scheme, created by the interface input paramete information and interface output parameter information that get Web Service interface, and be deployed in SOA bus platforms, carried out respectively without the application server in different location Deployment, subsequently to realize that the dynamic binding of interface IP address provides premise.
In any of the above-described technical scheme, it is preferable that described that target routing configuration letter is read from the order application The step of breath, specifically includes:The target routing configuration information is read based on database adapter.
In any of the above-described technical scheme, it is preferable that the preset interface IP address information includes URL address informations.
In any of the above-described technical scheme, it is preferable that the target routing configuration information includes:Service name, access Area code, access region user name, access region password, remark information.
Fig. 2 shows the schematic block diagram of the dynamic routing system according to an embodiment of the invention based on SOA.
As shown in Fig. 2 the dynamic routing system 200 according to an embodiment of the invention based on SOA, including:Deployment Unit 202, reading unit 204, generation unit 206 and processing unit 208.
Wherein, deployment unit 202 is used to dispose web Service interface in SOA bus platforms, wherein, it is described The preset interface IP address of web Service interface can be accessed normally;Reading unit 204 is used for when getting order application, from Target routing configuration information is read in the order application;Generation unit 206 is used for based on target routing configuration information life Into target interface address;Processing unit 208 is used to the preset interface IP address replacing with the target interface address, to build Route service.
In the technical scheme, by disposing web Service interface in SOA bus platforms, web Service interface is matched somebody with somebody The interface IP address that can normally access is equipped with, when getting order application, based on the target route read from order application Configuration information generation target interface address, and preset interface IP address is replaced with into target interface address, without overlapping development interface, Different web Service interfaces can be dynamically routed to, development cost and maintenance cost is reduced.
In the above-mentioned technical solutions, it is preferable that the deployment unit 202 specifically for:Obtain interface input paramete information With interface output parameter information;Based on the interface input paramete information and the interface output parameter information, create described Web Service interface;The web Service interface is deployed in the SOA bus platforms.
In the technical scheme, created by the interface input paramete information and interface output parameter information that get Web Service interface, and be deployed in SOA bus platforms, carried out respectively without the application server in different location Deployment, subsequently to realize that the dynamic binding of interface IP address provides premise.
In any of the above-described technical scheme, it is preferable that the reading unit 204 specifically for:Based on database adaptation Device reads the target routing configuration information.
In any of the above-described technical scheme, it is preferable that the preset interface IP address information includes URL address informations.
In any of the above-described technical scheme, it is preferable that the target routing configuration information includes:Service name, access Area code, access region user name, access region password, remark information.
Technical scheme is described further below in conjunction with Fig. 3.
As shown in figure 3, the dynamic routing system based on SOA according to another embodiment of the invention, including:Center is single Member 302, territory element 304 and SOA bus platforms 306.
Wherein, center cell 302 is responsible for the configuration of route list, and the deployment of dynamic routing interface service, and order are led Incoming interface service is detected when starting and used;Territory element 304 is used to dispose the service that each order interface is imported, and processing is actually ordered Single interface imports affairs;Include DB (DataBase, database) and App in territory element 304 and center cell 302 (Application, using).
Specifically, the processing procedure of dynamic routing system includes:
1), center cell 302 receives the request of external system front end, initiates purchase order application and (wherein, is wrapped in order application Include routing configuration information).
2), center cell 302 obtains route list, and extracts routing configuration information.Wherein, mainly from order application correspondence Header in read routing configuration information, specifically, according to the routing configuration of database use DBAdapter (DataBase Adapter, database adapter) read its configuration information.Wherein, configuration information includes SRV_NAME (clothes Be engaged in title), AREA_CODE (access region code), URL, USERNAME (access region user name), PASSWORD (access regions Domain password), the field configuration such as REMARK (remarks).
3), center cell 302 replaces the static routing address (i.e. the URL addresses of the corresponding wsdl document of interface) of exploitation, And dynamically bind on new regional address.Specifically, center cell 302 is according to purchase order introducting interface specification (main bag Include the definition of interface input/output argument) exploitation web Service interface, and web Service interface service is disposed to SOA buses On platform 306, and confirm its WSDL (Web Servives Description Language, web services definition language) texts The URL addresses of part can normally be accessed.
4), the complete call of territory element 304, purchase order data loading.
5), territory element 304, which is returned, imports result, and central warehouse notifies operation system according to feedback result.
In the BPEL of interface interchange, (Business Process Execution Language, operation flow performs language Speech) using dynamic call deployment success and addressable address of service is selected in interface service, wherein, can be using dynamic State PartnerLink (partner's connection) mode dynamic access interface service, and whether interface service can normally enter Mobile state road Whether can normally be accessed by the interface IP address depending on the interface disposed in SOA bus platforms.
Technical scheme is described in detail above in association with accompanying drawing, and technical scheme proposes a kind of new Dynamic routing scheme based on SOA, by disposing e interfaces in SOA bus platforms, can dynamically be routed to different WebService Interface, it is to avoid overlapping development interface, reduces development cost and maintenance cost.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

1. a kind of dynamic routing method based on SOA, it is characterised in that including:
Web Service interface is disposed in SOA bus platforms, wherein, the preset interface IP address of the web Service interface can Normally accessed;
When getting order application, target routing configuration information is read from the order application;
Based on target routing configuration information generation target interface address;
The preset interface IP address is replaced with into the target interface address, to build route service.
2. the dynamic routing method according to claim 1 based on SOA, it is characterised in that described in SOA bus platforms The step of disposing web Service interface, specifically includes:
Obtain interface input paramete information and interface output parameter information;
Based on the interface input paramete information and the interface output parameter information, the web Service interface is created;
The web Service interface is deployed in the SOA bus platforms.
3. the dynamic routing method according to claim 1 based on SOA, it is characterised in that described from the order application The step of middle reading target routing configuration information, specifically includes:
The target routing configuration information is read based on database adapter.
4. the dynamic routing method according to any one of claim 1 to 3 based on SOA, it is characterised in that described preset Interface IP address information includes URL address informations.
5. the dynamic routing method according to any one of claim 1 to 3 based on SOA, it is characterised in that the target Routing configuration information includes:
Service name, access region code, access region user name, access region password, remark information.
6. a kind of dynamic routing system based on SOA, it is characterised in that including:
Deployment unit, for disposing web Service interface in SOA bus platforms, wherein, the web Service interface Preset interface IP address can be accessed normally;
Reading unit, for when getting order application, target routing configuration information to be read from the order application;
Generation unit, for based on target routing configuration information generation target interface address;
Processing unit, for the preset interface IP address to be replaced with into the target interface address, to build route service.
7. the dynamic routing system according to claim 6 based on SOA, it is characterised in that the deployment unit is specifically used In:
Obtain interface input paramete information and interface output parameter information;
Based on the interface input paramete information and the interface output parameter information, the web Service interface is created;
The web Service interface is deployed in the SOA bus platforms.
8. the dynamic routing system according to claim 6 based on SOA, it is characterised in that the reading unit is specifically used In:
The target routing configuration information is read based on database adapter.
9. the dynamic routing system based on SOA according to any one of claim 6 to 8, it is characterised in that described preset Interface IP address information includes URL address informations.
10. the dynamic routing system based on SOA according to any one of claim 6 to 8, it is characterised in that the mesh Mark routing configuration information includes:
Service name, access region code, access region user name, access region password, remark information.
CN201710260759.7A 2017-04-20 2017-04-20 Dynamic routing method and dynamic routing system based on SOA (service oriented architecture) Expired - Fee Related CN107171959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710260759.7A CN107171959B (en) 2017-04-20 2017-04-20 Dynamic routing method and dynamic routing system based on SOA (service oriented architecture)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710260759.7A CN107171959B (en) 2017-04-20 2017-04-20 Dynamic routing method and dynamic routing system based on SOA (service oriented architecture)

Publications (2)

Publication Number Publication Date
CN107171959A true CN107171959A (en) 2017-09-15
CN107171959B CN107171959B (en) 2020-06-19

Family

ID=59813369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710260759.7A Expired - Fee Related CN107171959B (en) 2017-04-20 2017-04-20 Dynamic routing method and dynamic routing system based on SOA (service oriented architecture)

Country Status (1)

Country Link
CN (1) CN107171959B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422415A (en) * 2020-10-09 2022-04-29 瞻博网络公司 Egress node processing flows in segmented routing
CN114996181A (en) * 2021-03-02 2022-09-02 北京同邦卓益科技有限公司 Interface routing method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854348A (en) * 2010-04-02 2010-10-06 南京联创科技集团股份有限公司 Realization method of SOA (Service Oriented Architecture) accessing core supporting system in peripheral system
CN101964797A (en) * 2010-09-29 2011-02-02 山东中创软件工程股份有限公司 Service interaction method and system
CN103561113A (en) * 2013-11-18 2014-02-05 金蝶软件(中国)有限公司 Web Service interface generating method and device
CN103581310A (en) * 2013-10-24 2014-02-12 深圳市远行科技有限公司 Automatic generating method for web service agent
CN103577380A (en) * 2013-10-24 2014-02-12 深圳市远行科技有限公司 Automatic generation method for dynamic routing service
CN104580501A (en) * 2015-01-23 2015-04-29 广东能龙教育股份有限公司 Http interface dynamic publishing method and system based on reflex mechanism
CN104735111A (en) * 2013-12-23 2015-06-24 北京锐安科技有限公司 Method for achieving ESB by adopting WEBSERVICE as uniform interface
CN105740411A (en) * 2016-01-30 2016-07-06 武汉大学 SOA (Service-Oriented Architecture) and WebService based data migration method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854348A (en) * 2010-04-02 2010-10-06 南京联创科技集团股份有限公司 Realization method of SOA (Service Oriented Architecture) accessing core supporting system in peripheral system
CN101964797A (en) * 2010-09-29 2011-02-02 山东中创软件工程股份有限公司 Service interaction method and system
CN103581310A (en) * 2013-10-24 2014-02-12 深圳市远行科技有限公司 Automatic generating method for web service agent
CN103577380A (en) * 2013-10-24 2014-02-12 深圳市远行科技有限公司 Automatic generation method for dynamic routing service
CN103561113A (en) * 2013-11-18 2014-02-05 金蝶软件(中国)有限公司 Web Service interface generating method and device
CN104735111A (en) * 2013-12-23 2015-06-24 北京锐安科技有限公司 Method for achieving ESB by adopting WEBSERVICE as uniform interface
CN104580501A (en) * 2015-01-23 2015-04-29 广东能龙教育股份有限公司 Http interface dynamic publishing method and system based on reflex mechanism
CN105740411A (en) * 2016-01-30 2016-07-06 武汉大学 SOA (Service-Oriented Architecture) and WebService based data migration method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422415A (en) * 2020-10-09 2022-04-29 瞻博网络公司 Egress node processing flows in segmented routing
US11611506B2 (en) 2020-10-09 2023-03-21 Juniper Networks, Inc. Processing a flow at the egress node in segment routing
CN114996181A (en) * 2021-03-02 2022-09-02 北京同邦卓益科技有限公司 Interface routing method and device, electronic equipment and storage medium
CN114996181B (en) * 2021-03-02 2023-09-26 北京同邦卓益科技有限公司 Interface routing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107171959B (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN107766205B (en) A kind of monitoring system and method towards the tracking of micro services calling process
CN101299754B (en) End user control configuration system with dynamic user interface
US20050228853A1 (en) Method and system for supporting service provision
CN109862051A (en) The realization method and system of multi-tenant under a kind of micro services framework
CN101002170A (en) System and method for implementing a general application program interface
WO1999026153A2 (en) Method for establishing a communication connection between two or more users via a network of interconnected computers
KR100880536B1 (en) Open framework system for heterogeneous computing and service integration
CN101477596A (en) Medical data center system
CN101686173A (en) Method, system and apparatus of service negotiation
CN110097007A (en) A kind of method and device for integrating a variety of face recognition engines
CN110851248A (en) Asynchronous task data processing method and device and computer readable storage medium
CN102523308A (en) Application development method and development and application platform system for operating method
CN102209020B (en) Service routing method, apparatus and system thereof
CN101404049B (en) Attachment retrieval method and system for medical document
CN107171959A (en) Dynamic routing method and dynamic routing system based on SOA
US8726235B2 (en) Telecom business-oriented taxonomy for reusable services
CN101448000B (en) Medical file retrieval method and system thereof
CN109754875A (en) A kind of medical self-aided terminal, equipment, Cloud Server and system
Jankowska et al. An architecture for agent-based mobile Supply Chain Event Management
CN107391936A (en) A kind of ophthalmology image based on distributed website integrates and dissemination method
CN106993060A (en) A kind of master data integrated approach based on service architecture
CN101211366A (en) Method and system for providing information from a plurality of disparate data sources
CN101127774B (en) Priority processing method for initial filtering rule
Garcia et al. Towards a base ontology for privacy protection in service-oriented architecture
CN101442503B (en) Method and computer program for mediation processing node to update message

Legal Events

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

Granted publication date: 20200619