CN107171959B - Dynamic routing method and dynamic routing system based on SOA (service oriented architecture) - Google Patents
Dynamic routing method and dynamic routing system based on SOA (service oriented architecture) Download PDFInfo
- Publication number
- CN107171959B CN107171959B CN201710260759.7A CN201710260759A CN107171959B CN 107171959 B CN107171959 B CN 107171959B CN 201710260759 A CN201710260759 A CN 201710260759A CN 107171959 B CN107171959 B CN 107171959B
- Authority
- CN
- China
- Prior art keywords
- interface
- soa
- target
- webservice
- address
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000012545 processing Methods 0.000 claims description 5
- 238000011161 development Methods 0.000 abstract description 17
- 238000012423 maintenance Methods 0.000 abstract description 8
- 239000003814 drug Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 229940079593 drug Drugs 0.000 description 5
- 230000008676 import Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a dynamic routing method and a dynamic routing system based on an SOA (service oriented architecture), wherein the dynamic routing method based on the SOA comprises the following steps: deploying a WebService interface on an SOA bus platform, wherein a preset interface address of the WebService interface can be normally accessed; when an order application is obtained, reading target route configuration information from the order application; generating a target interface address based on the target routing configuration information; and replacing the preset interface address with the target interface address to construct routing service. Through the technical scheme of the invention, the WebService interface is deployed on the SOA bus platform and can be dynamically routed to different WebService interfaces, so that the repeated development of the interfaces is avoided, the development efficiency is improved, and the development cost and the maintenance cost are reduced.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a dynamic routing method based on an SOA and a dynamic routing system based on the SOA.
Background
SOA (Service-Oriented Architecture) in some large projects, there are business cases as follows:
taking drug dispensing as an example: in order to realize the monitoring and management of the medicines in a certain area, on the basis of establishing five medicine warehouses (one central warehouse and the rest regional warehouses) distributed in different areas in the certain area, all the medicines are uniformly purchased through the central warehouse, and the medicines are reasonably distributed to the regional warehouses according to the actual use demand of the medicines of medical institutions and the medicine stock condition of the medical institutions.
In the related art, interaction between the central warehouse and the regional warehouse:
the method includes the steps that a WebService interface for importing purchase orders is provided, application servers in different places are deployed, a central warehouse encapsulates interface URL (Uniform Resource Locator) addresses of warehouses in different areas, and services are accessed through different interface addresses when being called.
Disclosure of Invention
The invention is based on at least one of the technical problems, and provides a novel dynamic routing scheme based on the SOA, and the dynamic routing scheme can dynamically route to different WebService interfaces by deploying the WebService interfaces on an SOA bus platform, thereby avoiding the repeated development of the interfaces, improving the development efficiency and reducing the development cost and the maintenance cost.
In view of this, the present invention provides a dynamic routing method based on SOA, including: deploying a WebService interface on an SOA bus platform, wherein a preset interface address of the WebService interface can be normally accessed; when an order application is obtained, reading target route configuration information from the order application; generating a target interface address based on the target routing configuration information; and replacing the preset interface address with the target interface address to construct routing service.
In the technical scheme, the WebService interface is deployed on the SOA bus platform and is configured with the interface address which can be normally accessed, when the order application is obtained, the target interface address is generated based on the target routing configuration information read from the order application, the preset interface address is replaced by the target interface address, the interface is not required to be repeatedly developed, the preset interface address can be dynamically routed to different WebService interfaces, the development efficiency is improved, and the development cost and the maintenance cost are reduced.
In the foregoing technical solution, preferably, the step of deploying the WebService interface on the SOA bus platform specifically includes: acquiring interface input parameter information and interface output parameter information; establishing the WebService interface based on the interface input parameter information and the interface output parameter information; and deploying the WebService interface on the SOA bus platform.
In the technical scheme, the WebService interface is created through the acquired interface input parameter information and interface output parameter information and is deployed on the SOA bus platform, and application servers in different places do not need to be deployed respectively, so that a precondition guarantee is provided for the subsequent dynamic binding of the interface address.
In any one of the above technical solutions, preferably, the step of reading the target route configuration information from the order application specifically includes: and reading the target routing configuration information based on the database adapter.
In any one of the foregoing technical solutions, preferably, the preset interface address information includes URL address information.
In any one of the above technical solutions, preferably, the target routing configuration information includes: service name, access area code, access area user name, access area password and remark information.
According to a second aspect of the present invention, a dynamic routing system based on SOA is provided, which includes: the device comprises a deployment unit and a service-oriented architecture (SOA) bus platform, wherein the deployment unit is used for deploying a WebService interface on the SOA bus platform, and a preset interface address of the WebService interface can be normally accessed; the reading unit is used for reading target routing configuration information from the order application when the order application is obtained; a generating unit, configured to generate a target interface address based on the target routing configuration information; and the processing unit is used for replacing the preset interface address with the target interface address so as to construct routing service.
In the technical scheme, the WebService interface is deployed on the SOA bus platform and is configured with the interface address which can be normally accessed, when the order application is obtained, the target interface address is generated based on the target routing configuration information read from the order application, the preset interface address is replaced by the target interface address, the interface is not required to be repeatedly developed, the preset interface address can be dynamically routed to different WebService interfaces, the development efficiency is improved, and the development cost and the maintenance cost are reduced.
In the foregoing technical solution, preferably, the deployment unit is specifically configured to: acquiring interface input parameter information and interface output parameter information; establishing the WebService interface based on the interface input parameter information and the interface output parameter information; and deploying the WebService interface on the SOA bus platform.
In the technical scheme, the WebService interface is created through the acquired interface input parameter information and interface output parameter information and is deployed on the SOA bus platform, and application servers in different places do not need to be deployed respectively, so that a precondition guarantee is provided for the subsequent dynamic binding of the interface address.
In any one of the above technical solutions, preferably, the reading unit is specifically configured to: and reading the target routing configuration information based on the database adapter.
In any one of the foregoing technical solutions, preferably, the preset interface address information includes URL address information.
In any one of the above technical solutions, preferably, the target routing configuration information includes: service name, access area code, access area user name, access area password and remark information.
Through the technical scheme, the WebService interfaces are deployed on the SOA bus platform, dynamic routing can be performed to different WebService interfaces, repeated interface development is avoided, development efficiency is improved, and development cost and maintenance cost are reduced.
Drawings
FIG. 1 shows a schematic flow diagram of a SOA-based dynamic routing method according to an embodiment of the invention;
FIG. 2 illustrates a schematic block diagram of an SOA-based dynamic routing system in accordance with one embodiment of the present invention;
fig. 3 shows a schematic block diagram of an SOA based dynamic routing system according to another embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
Fig. 1 shows a schematic flow diagram of a SOA based dynamic routing method according to an embodiment of the present invention.
As shown in fig. 1, the SOA-based dynamic routing method according to an embodiment of the present invention includes:
And 104, when an order application is acquired, reading target route configuration information from the order application.
And 106, generating a target interface address based on the target routing configuration information.
And step 108, replacing the preset interface address with the target interface address to construct a routing service.
In the technical scheme, the WebService interface is deployed on the SOA bus platform and is configured with the interface address which can be normally accessed, when the order application is obtained, the target interface address is generated based on the target routing configuration information read from the order application, the preset interface address is replaced by the target interface address, the interface is not required to be repeatedly developed, the dynamic routing can be carried out on different WebService interfaces, and the development cost and the maintenance cost are reduced.
In the foregoing technical solution, preferably, the step of deploying the WebService interface on the SOA bus platform specifically includes: acquiring interface input parameter information and interface output parameter information; establishing the WebService interface based on the interface input parameter information and the interface output parameter information; and deploying the WebService interface on the SOA bus platform.
In the technical scheme, the WebService interface is created through the acquired interface input parameter information and interface output parameter information and is deployed on the SOA bus platform, and application servers in different places do not need to be deployed respectively, so that a precondition guarantee is provided for the subsequent dynamic binding of the interface address.
In any one of the above technical solutions, preferably, the step of reading the target route configuration information from the order application specifically includes: and reading the target routing configuration information based on the database adapter.
In any one of the foregoing technical solutions, preferably, the preset interface address information includes URL address information.
In any one of the above technical solutions, preferably, the target routing configuration information includes: service name, access area code, access area user name, access area password and remark information.
Fig. 2 shows a schematic block diagram of an SOA based dynamic routing system according to an embodiment of the present invention.
As shown in fig. 2, an SOA-based dynamic routing system 200 according to an embodiment of the present invention includes: deployment unit 202, reading unit 204, generation unit 206 and processing unit 208.
The deploying unit 202 is configured to deploy a WebService interface on an SOA bus platform, where a preset interface address of the WebService interface can be normally accessed; the reading unit 204 is configured to read target route configuration information from an order application when the order application is acquired; the generating unit 206 is configured to generate a destination interface address based on the destination routing configuration information; the processing unit 208 is configured to replace the preset interface address with the target interface address to construct a routing service.
In the technical scheme, the WebService interface is deployed on the SOA bus platform and is configured with the interface address which can be normally accessed, when the order application is obtained, the target interface address is generated based on the target routing configuration information read from the order application, the preset interface address is replaced by the target interface address, the interface is not required to be repeatedly developed, the dynamic routing can be carried out on different WebService interfaces, and the development cost and the maintenance cost are reduced.
In the foregoing technical solution, preferably, the deployment unit 202 is specifically configured to: acquiring interface input parameter information and interface output parameter information; establishing the WebService interface based on the interface input parameter information and the interface output parameter information; and deploying the WebService interface on the SOA bus platform.
In the technical scheme, the WebService interface is created through the acquired interface input parameter information and interface output parameter information and is deployed on the SOA bus platform, and application servers in different places do not need to be deployed respectively, so that a precondition guarantee is provided for the subsequent dynamic binding of the interface address.
In any one of the above technical solutions, preferably, the reading unit 204 is specifically configured to: and reading the target routing configuration information based on the database adapter.
In any one of the foregoing technical solutions, preferably, the preset interface address information includes URL address information.
In any one of the above technical solutions, preferably, the target routing configuration information includes: service name, access area code, access area user name, access area password and remark information.
The technical solution of the present invention is further explained with reference to fig. 3.
As shown in fig. 3, an SOA-based dynamic routing system according to another embodiment of the present invention includes: a central unit 302, an area unit 304, and an SOA bus platform 306.
The central unit 302 is responsible for configuration of a routing list, deployment of a dynamic routing interface service, and probing and use when an order import interface service is started; the area unit 304 is configured to deploy a service imported by each order interface, and process an actual order interface import transaction; the area unit 304 and the center unit 302 include a DB (DataBase) and an App (Application).
Specifically, the processing procedure of the dynamic routing system includes:
1) the central unit 302 receives the front end request of the external system and initiates a purchase order application (wherein the order application includes routing configuration information).
2) The central unit 302 obtains the route list and extracts the route configuration information. The routing configuration information is mainly read from header information corresponding to the order application, and specifically, the routing table configuration information is read by using a DBAdapter (database adapter) according to the routing configuration of the database. The routing table configuration information includes field configurations such as SRV _ NAME, AREA _ CODE, URL, USERNAME, PASSWORD, and record.
3) The central unit 302 replaces the developed static routing address (i.e. the URL address of the WSDL file corresponding to the interface) and dynamically binds to the new area address. Specifically, the central unit 302 develops a WebService interface according to the purchase order import interface specification (mainly including interface input and output parameter definition), deploys a WebService interface service to the SOA bus platform 306, and confirms that the URL address of the WSDL (Web service Description Language) file can be normally accessed.
4) And the area unit 304 completes the calling and stores the purchase order data.
5) And the area unit 304 returns the import result, and the central warehouse informs the service system according to the feedback result.
The method comprises the steps of selecting a service address which is successfully deployed and can be accessed by using dynamic calling in BPEL (Business Process Execution Language) interface service called by an interface, wherein the interface service can be dynamically accessed in a dynamic PartnerLink mode, and whether the interface service can be normally dynamically routed depends on whether the interface address of the interface deployed on an SOA bus platform can be normally accessed.
The technical scheme of the invention is described in detail in combination with the attached drawings, and provides a novel dynamic routing scheme based on the SOA, the e interface is deployed on the SOA bus platform, the dynamic routing can be carried out to different WebService interfaces, the repeated development of the interfaces is avoided, and the development cost and the maintenance cost are reduced.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A dynamic routing method based on SOA is characterized by comprising the following steps:
deploying a WebService interface on an SOA bus platform, wherein a preset interface address of the WebService interface can be normally accessed;
when an order application is obtained, reading target route configuration information from the order application;
generating a target interface address based on the target routing configuration information;
replacing the preset interface address with the target interface address to construct routing service;
the step of deploying the WebService interface on the SOA bus platform specifically comprises the following steps:
acquiring interface input parameter information and interface output parameter information;
establishing the WebService interface based on the interface input parameter information and the interface output parameter information;
and deploying the WebService interface on the SOA bus platform.
2. The dynamic routing method based on an SOA of claim 1, wherein the step of reading the target routing configuration information from the order application specifically comprises:
and reading the target routing configuration information based on the database adapter.
3. A SOA-based dynamic routing method according to claim 1 or 2, wherein the preset interface address information comprises URL address information.
4. The SOA-based dynamic routing method according to claim 1 or 2, wherein the target routing configuration information includes:
service name, access area code, access area user name, access area password and remark information.
5. A dynamic routing system based on an SOA, comprising:
the device comprises a deployment unit and a service-oriented architecture (SOA) bus platform, wherein the deployment unit is used for deploying a WebService interface on the SOA bus platform, and a preset interface address of the WebService interface can be normally accessed;
the reading unit is used for reading target routing configuration information from the order application when the order application is obtained;
a generating unit, configured to generate a target interface address based on the target routing configuration information;
the processing unit is used for replacing the preset interface address with the target interface address so as to construct routing service;
the deployment unit is specifically configured to:
acquiring interface input parameter information and interface output parameter information;
establishing the WebService interface based on the interface input parameter information and the interface output parameter information;
and deploying the WebService interface on the SOA bus platform.
6. The dynamic routing system based on an SOA of claim 5, wherein the reading unit is specifically configured to:
and reading the target routing configuration information based on the database adapter.
7. A SOA-based dynamic routing system according to claim 5 or 6, characterized in that said preset interface address information comprises URL address information.
8. A SOA-based dynamic routing system according to claim 5 or 6, characterized in that said target routing configuration information comprises:
service name, access area code, access area user name, access area password and remark information.
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 CN107171959A (en) | 2017-09-15 |
CN107171959B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11611506B2 (en) * | 2020-10-09 | 2023-03-21 | Juniper Networks, Inc. | Processing a flow at the egress node in segment routing |
CN114996181B (en) * | 2021-03-02 | 2023-09-26 | 北京同邦卓益科技有限公司 | Interface routing method and device, electronic equipment and storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101854348B (en) * | 2010-04-02 | 2013-01-02 | 南京联创科技集团股份有限公司 | 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 |
CN103581310B (en) * | 2013-10-24 | 2017-04-05 | 深圳市远行科技股份有限公司 | A kind of automatic generation method of web service agent |
CN103577380B (en) * | 2013-10-24 | 2017-06-13 | 深圳市远行科技股份有限公司 | A kind of automatic generation method of dynamic routing service |
CN103561113B (en) * | 2013-11-18 | 2019-01-29 | 金蝶软件(中国)有限公司 | The generation method and device of Web Service interface |
CN104735111B (en) * | 2013-12-23 | 2018-06-12 | 北京锐安科技有限公司 | Make the method for unified interface realization ESB using WEBSERVICE |
CN104580501A (en) * | 2015-01-23 | 2015-04-29 | 广东能龙教育股份有限公司 | Http interface dynamic publishing method and system based on reflex mechanism |
CN105740411B (en) * | 2016-01-30 | 2018-11-13 | 武汉大学 | A kind of data migration method based on SOA and WebService |
-
2017
- 2017-04-20 CN CN201710260759.7A patent/CN107171959B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN107171959A (en) | 2017-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8806185B2 (en) | System and method for automatic configuration of portal composite applications | |
US8332813B2 (en) | Service re-factoring method and system | |
CN109062563B (en) | Method and device for generating page | |
US9043756B2 (en) | Compound versioning and identification scheme for composite application development | |
US20050050006A1 (en) | Method to use the internet for the assembly of parts | |
US9843475B2 (en) | Systems and methods for configuring a managed device using an image | |
CN110688598A (en) | Service parameter acquisition method and device, computer equipment and storage medium | |
US20080263035A1 (en) | Grouping business partners in e-business transaction | |
CN112579622B (en) | Method, device and equipment for processing service data | |
CN113535691B (en) | User service registration method and device | |
CN111639279A (en) | Graphic code generation method, target page loading method and device | |
CN110046287A (en) | A kind of the data query method, apparatus and storage medium unrelated with type of database | |
CN103631636A (en) | Enabling multi-tenancy for a commerce server | |
CN110348225A (en) | Method and apparatus are determined for the security breaches of application programming interfaces | |
CN107171959B (en) | Dynamic routing method and dynamic routing system based on SOA (service oriented architecture) | |
CN111262897A (en) | Service call routing processing method, device and system | |
US20140351408A1 (en) | Utilizing augmented reality for locating computer hardware associated to a reported incident | |
CN106161075B (en) | Service processing method, device and system | |
CN106469091B (en) | For distributing the method and apparatus of available area | |
CN110266596B (en) | Message processing method, device, equipment and computer readable storage medium | |
US20080071916A1 (en) | System and method for requesting a web service from a network server | |
CN111709769A (en) | Data processing method and device | |
US10904295B2 (en) | Dynamically updating feature set recommendation databases | |
CN114327770A (en) | Container cluster management system and method | |
CN113949637A (en) | Intelligent distribution and deployment method and device for switch resources |
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 |
|
CF01 | Termination of patent right due to non-payment of annual fee |