CN108206848A - Build the method and device of SOA service releases - Google Patents
Build the method and device of SOA service releases Download PDFInfo
- Publication number
- CN108206848A CN108206848A CN201611179627.3A CN201611179627A CN108206848A CN 108206848 A CN108206848 A CN 108206848A CN 201611179627 A CN201611179627 A CN 201611179627A CN 108206848 A CN108206848 A CN 108206848A
- Authority
- CN
- China
- Prior art keywords
- service
- server
- code
- path
- release
- 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.)
- Pending
Links
Classifications
-
- 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/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- 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/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
Abstract
The invention discloses a kind of methods for building Service-oriented Architecture (SOA) service release.The method includes:It determines the server path of extraction service code, and the service code is extracted from server based on the server path;Essential information according to needed for the service code and the structure service release being pre-configured creates service release catalogue;Service code configuration deployment information is obtained by parsing the server path;According to the service release catalogue and service code configuration deployment information structure SOA service releases.The invention also discloses a kind of devices for building SOA service releases.
Description
Technical field
The present invention relates to Computer Applied Technology, more particularly, to a kind of method and device for building SOA service releases.
Background technology
Service-oriented Architecture (SOA, Service Oriented Architecture) is a kind of construction distributed system
Method as shown in Figure 1, it breaks traditional one chip application, is decomposed into discrete, autonomous business service, utilizes standard
Their interoperability is promoted, so as to preferably shared, reuse and assembling, the compound application of rapid build is so as to meet industry
The variation of business demand.
In SOA framework, interface uses programming language to be defined in a manner of neutral, it is hard independently of realization service
Part platform, operating system and programming language, this to build SOA services can by a kind of unification and it is general in a manner of handed over
Mutually.The information system of current application SOA framework each isomery to enterprise, which integrate, has become a kind of trend, the collection based on SOA
The mainstream vendors such as the development in market, IBM, Oracle, Microsoft, SAP is just being pushed to have shifted towards SOA into method.
At present, it when building SOA service releases, needs manually to build into version required code and configuration file,
It is time-consuming longer, and it is susceptible to mistake.
Invention content
In view of this, the embodiment of the present invention provides a kind of method and device for building SOA service releases, can build automatically
SOA service releases improve development efficiency and code construction accuracy.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
The embodiment of the present invention provides a kind of method for building SOA service releases, and this method includes:
It determines the server path of extraction service code, and the service is extracted from server based on the server path
Code;Essential information according to needed for the service code and the structure service release being pre-configured creates service release catalogue;
Service code configuration deployment information is obtained by parsing the server path;
According to the service release catalogue and service code configuration deployment information structure SOA service releases.
In said program, the server path of the determining extraction service code, and the server path is based on from institute
It states server and extracts the service code, including:First network service description language (sdl) WSDL is included in the server path
During keyword, first service code is extracted from the server;Do not include the first WSDL keywords in the server path
When, extract second service code from the server.
In said program, the service release is Business Process Execution Language BPEL service releases.
It is described that SOA is built according to the service release catalogue and the service code configuration deployment information in said program
Service release, including:
The local service path submitted according to code and the server path, cycle download from a server the clothes
Version be engaged in the corresponding service release catalogue.
In said program, the method further includes:
Record services entire building process information, and concentrates misregistration information.
It is described that the service code is extracted from the server based on the server path in said program, including:
Integrity server path is spliced into according to server path and local path, from the integrity server path extraction
The service code.
In said program, the service release catalogue includes:Service code, service script respectively service corresponding configuration text
Part, the unified port alternate file of generation service and service divide domain deployment script.
The embodiment of the present invention provides a kind of device for building Service-oriented Architecture SOA service releases, and described device includes:
Determining and extraction unit, for determining the server path of extraction service code, and based on the server path
The service code is extracted from the server;
Creating unit creates for the essential information according to needed for the service code and the structure service release being pre-configured
Service release catalogue;
Acquiring unit parses the server path acquisition service code configuration deployment information for passing through;
Construction unit, for according to the service release catalogue and service code configuration deployment information structure SOA clothes
Business version.
In said program, the determining and extraction unit is specifically used for:First network is included in the server path
During service description language (sdl) WSDL keywords, first service code is extracted from the server;It is not wrapped in the server path
During containing the WSDL keywords, second service code is extracted from the server.
In said program, the service release is Business Process Execution Language BPEL service releases.
In said program, the construction unit is specifically used for:
The local service path submitted according to code and the server path, cycle download from a server the clothes
Version be engaged in the corresponding service release catalogue.
In said program, described device further includes recording unit, and entire building process information is serviced, and concentrate for recording
Misregistration information.
In said program, the determining and extraction unit is specifically used for:
Integrity server path is spliced into according to server path and local path, from the integrity server path extraction
The service code.
In said program, the service release catalogue includes:Service code, service script respectively service corresponding configuration text
Part, the unified port alternate file of generation service and service divide domain deployment script.
The method and device of structure SOA service releases that the embodiment of the present invention is provided according to the characteristic that SOA is serviced, is led to
Cross to SOA service in web services definition language (WSDL, Web Services Description Language) file and
The parsing in service code path obtains the utility code for needing to quote, in conjunction with the automatic structure of deployment information of code configuration
Service release is built, improves development efficiency and code construction accuracy.
Description of the drawings
Fig. 1 forms structure diagram for a kind of SOA of the prior art;
Fig. 2 is the realization flow chart for the method that the embodiment of the present invention builds SOA service releases;
Fig. 3 is the composition structure diagram for the device that the embodiment of the present invention builds SOA service releases.
Specific embodiment
Business Process Execution Language (Business Process Execution Language, BPEL) is that one kind is based on
The Business Process Execution Language of the programming language of extensible markup language (Extensible Markup Language, XML), it
It is one of most common Web service development language for automating operation flow.Structure SOA services in the embodiment of the present invention
For the service based on BPEL language definitions, the service release in this method is BPEL service releases for service in the method for version.
In order to more fully hereinafter understand the features of the present invention and technology contents, below in conjunction with the accompanying drawings to the reality of the present invention
It is now described in detail, appended attached drawing purposes of discussion only for reference, is not used for limiting the present invention.
Fig. 2 is the realization flow chart for the method that the embodiment of the present invention builds SOA service releases, as shown in Fig. 2, the present invention is real
The method for applying the structure SOA service releases of example offer includes the following steps:
Step 201, it determines the server path of extraction service code, and is extracted and taken from server based on the server path
Business code.
In SOA framework, service can be there are many realization method, such as corba interface, Web Service, JM message queues
Deng.Web Service are current using a kind of most wide, service implementation the most universal.The SOA that Web Service are realized
Service is with best interactivity and maximum reusability.WSDL is the description language of Web Service.
In step 201, when the first WSDL keywords are included in server path, first service generation is extracted from server
Code;When not including the first WSDL keywords in server path, second service code is extracted from server.
When extracting service code, integrity server path is spliced into according to server path and local path, from described complete
Whole server path extracts the service code.Wherein, in the service inventory local path that local path is provided by developer
It obtains.Step 202, the essential information according to needed for service code and the structure service release being pre-configured creates service release mesh
Record.
Wherein, the essential information needed for the structure service release of pre-configuration includes:The user login information of server, each system
Configuration file used in the server address of system and deployment.In order to simple and practical, all essential informations all pass through configuration file
It is configured, user operates the access of the extracting rule of service and new system by changing configuration file.
In this step, the essential information according to needed for service code and structure service release automatically creates the clothes of each system
Business the release directory, the service release catalogue include service code, service script, respectively service corresponding configuration file, generation service
Unified port alternate file and service divide domain deployment script etc..
Step 203, service code configuration deployment information is obtained by resolution server path.
Step 204, according to service release catalogue and service code configuration deployment information structure SOA service releases.
SOA service releases include configuration file, deployment script and Release Notes.
In this step, it according to the local service path of code submission and server path, recycles above and below server
Service release is carried to corresponding service release catalogue, and the service type and parsing service path that are selected by user are serviced
Type, version number, service name and deployment domain, one by one generate service arrangement needed for configuration file, deployment script and version
Specification.
The technical solution of the embodiment of the present invention can use JAVA language, and use Log4j (Log for java, java
Daily record) record process log;NET language can also be used, and stream is recorded using Log4net (Log for net, net daily record)
Cheng Zhi.
Log4j is an open source code project of Apache, and by using Log4j, we can control log information
The destination of conveying is console, file, GUI component, even socket server, the event recorder of NT, UNIX
Syslog demon etc.;We can also control the output format of each daily record;By defining each log information
Rank, we can more meticulously control the generating process of daily record;The realization of above functions can pass through a configuration file
It is neatly configured, the code without changing application.
The method of structure SOA service releases provided in an embodiment of the present invention records entire service release building process information,
And concentrate misregistration information.The present solution provides the approach for searching service release structure failure cause.
The method of structure SOA service releases provided in an embodiment of the present invention, according to the characteristic that SOA is serviced, by being taken to SOA
WSDL (Web Services Description Language, web services definition language) files and service code in business
The parsing in path obtains the utility code for needing to quote, service version is built automatically in conjunction with the deployment information of code configuration
This, improves development efficiency and code construction accuracy.
As shown in figure 3, the device of structure SOA service releases provided in an embodiment of the present invention includes:
Determine and extraction unit 301, for determine extraction service code server path, and based on server path from
Server extracts service code.
It determines and extraction unit is specifically used for:It is crucial comprising first network service description language (sdl) WSDL in server path
During word, first service code is extracted from server;When not including WSDL keywords in server path, from server extraction the
Two service code.
When determining and extraction unit 301 extracts service code, complete clothes are spliced into according to server path and local path
Business device path, from service code described in the integrity server path extraction.Wherein, the clothes that local path is provided by developer
It is obtained in business inventory local path.Creating unit 302, it is basic according to needed for service code and the structure service release being pre-configured
Information creating service release mesh.
Wherein, the essential information needed for the structure service release of pre-configuration includes:The user login information of server, each system
Configuration file used in the server address of system and deployment.In order to simple and practical, all essential informations all pass through configuration file
It is configured, user operates the access of the extracting rule of service and new system by changing configuration file.
Essential information of the creating unit according to needed for service code and structure service release automatically creates the service of each system
The release directory, the service release catalogue include service code, service script, respectively service corresponding configuration file, generation service system
Single port alternate file and service divide domain deployment script etc..
Acquiring unit 303 obtains service code configuration deployment information for passing through resolution server path.
Construction unit 304, for according to service release catalogue and service code configuration deployment information structure SOA service versions
This.SOA service releases include configuration file, deployment script and Release Notes.
The local service path and server path, cycle that construction unit is submitted according to code download from a server clothes
Version be engaged in corresponding service release catalogue, and the class that the service type and parsing service path selected by user is serviced
Type, version number, service name and deployment domain, generate configuration file, deployment script and the imprint needed for service arrangement one by one
Book.
Service release in the embodiment of the present invention is BPEL service releases.
The device of structure SOA service releases in the embodiment of the present invention records flow day using JAVA language using Log4j
Will;The device can also use NET language, and process log is recorded using Log4net.
The device of structure SOA service releases in the embodiment of the present invention further includes recording unit, entire for recording service
Building process information, and concentrate misregistration information.The present solution provides the ways for searching service release structure failure cause
Diameter.
In practical applications, it determines and extraction unit 301, creating unit 302, acquiring unit 303, construction unit 304 is equal
It can be by the central processing unit (CPU, Central Processing Unit), the microprocessor that are located on dynamic event distributor
(MPU, Micro Processor Unit), digital signal processor (DSP, Digital Signal Processor) are existing
The realizations such as field programmable gate array (FPGA, Field Programmable Gate Array).
The device of structure SOA service releases provided in an embodiment of the present invention, according to the characteristic that SOA is serviced, by being taken to SOA
WSDL (Web Services Description Language, web services definition language) files and service code in business
The parsing in path obtains the utility code for needing to quote, service version is built automatically in conjunction with the deployment information of code configuration
This, improves development efficiency and code construction accuracy.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of hardware embodiment, software implementation or combination software and hardware can be used in the present invention
Formula.Moreover, the present invention can be used can use storage in one or more computers for wherein including computer usable program code
The form of computer program product that medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (14)
- A kind of 1. method for building Service-oriented Architecture SOA service releases, which is characterized in that the method includes:It determines the server path of extraction service code, and the service generation is extracted from server based on the server path Code;Essential information according to needed for the service code and the structure service release being pre-configured creates service release catalogue;Service code configuration deployment information is obtained by parsing the server path;According to the service release catalogue and service code configuration deployment information structure SOA service releases.
- 2. according to the method described in claim 1, it is characterized in that, it is described it is determining extraction service code server path, and The service code is extracted from the server based on the server path, including:Comprising the in the server path During one web services definition language WSDL keywords, first service code is extracted from the server;In the server path In do not include the first WSDL keywords when, from the server extract second service code.
- 3. method according to claim 1 or 2, which is characterized in that the service release is Business Process Execution Language BPEL service releases.
- 4. method according to claim 1 or 2, which is characterized in that described according to the service release catalogue and the clothes Code configuration of being engaged in deployment information structure SOA service releases, including:The local service path submitted according to code and the server path, cycle download from a server the service version This arrives the corresponding service release catalogue.
- 5. according to the method described in claim 3, it is characterized in that, the method further includes:Record services entire building process information, and concentrates misregistration information.
- 6. method according to claim 1 or 2, which is characterized in that described to be based on the server path from the service Device extracts the service code, including:Integrity server path is spliced into according to server path and local path, from described in the integrity server path extraction Service code.
- 7. method according to claim 1 or 2, which is characterized in that the service release catalogue includes:Service code, clothes Business script respectively services corresponding configuration file, the unified port alternate file of generation service and service point domain deployment script.
- 8. a kind of device for building Service-oriented Architecture SOA service releases, which is characterized in that described device includes:Determining and extraction unit for determining the server path of extraction service code, and is based on the server path from institute It states server and extracts the service code;Creating unit creates service for the essential information according to needed for the service code and the structure service release being pre-configured The release directory;Acquiring unit parses the server path acquisition service code configuration deployment information for passing through;Construction unit, for according to the service release catalogue and service code configuration deployment information structure SOA service versions This.
- 9. device according to claim 8, which is characterized in that the determining and extraction unit is specifically used for:In the clothes When being engaged in including first network service description language (sdl) WSDL keywords in device path, first service code is extracted from the server; When not including the WSDL keywords in the server path, second service code is extracted from the server.
- 10. device according to claim 8 or claim 9, which is characterized in that the service release is Business Process Execution Language BPEL service releases.
- 11. device according to claim 8 or claim 9, which is characterized in that the construction unit is specifically used for:The local service path submitted according to code and the server path, cycle download from a server the service version This arrives the corresponding service release catalogue.
- 12. device according to claim 10, which is characterized in that described device further includes recording unit, is taken for recording It is engaged in entire building process information, and concentrates misregistration information.
- 13. device according to claim 8 or claim 9, which is characterized in that the determining and extraction unit is specifically used for:Integrity server path is spliced into according to server path and local path, from described in the integrity server path extraction Service code.
- 14. device according to claim 8 or claim 9, which is characterized in that the service release catalogue includes:Service code, clothes Business script respectively services corresponding configuration file, the unified port alternate file of generation service and service point domain deployment script.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611179627.3A CN108206848A (en) | 2016-12-19 | 2016-12-19 | Build the method and device of SOA service releases |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611179627.3A CN108206848A (en) | 2016-12-19 | 2016-12-19 | Build the method and device of SOA service releases |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108206848A true CN108206848A (en) | 2018-06-26 |
Family
ID=62601856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611179627.3A Pending CN108206848A (en) | 2016-12-19 | 2016-12-19 | Build the method and device of SOA service releases |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108206848A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101026503A (en) * | 2006-02-24 | 2007-08-29 | 国际商业机器公司 | Unit detection method and apparatus in Web service business procedure |
CN101650653A (en) * | 2009-09-04 | 2010-02-17 | 中兴通讯股份有限公司 | Daily constructing method and device |
CN102012814A (en) * | 2010-11-24 | 2011-04-13 | 中兴通讯股份有限公司 | Construction method and system for software version |
CN102148800A (en) * | 2010-02-09 | 2011-08-10 | 中国人民解放军总参谋部第六十一研究所 | Software radio system based on service-oriented architecture |
CN102662655A (en) * | 2012-03-12 | 2012-09-12 | 中兴通讯股份有限公司 | Building system and method for version |
CN102799515A (en) * | 2011-05-24 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Application program testing method and device |
-
2016
- 2016-12-19 CN CN201611179627.3A patent/CN108206848A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101026503A (en) * | 2006-02-24 | 2007-08-29 | 国际商业机器公司 | Unit detection method and apparatus in Web service business procedure |
CN101650653A (en) * | 2009-09-04 | 2010-02-17 | 中兴通讯股份有限公司 | Daily constructing method and device |
CN102148800A (en) * | 2010-02-09 | 2011-08-10 | 中国人民解放军总参谋部第六十一研究所 | Software radio system based on service-oriented architecture |
CN102012814A (en) * | 2010-11-24 | 2011-04-13 | 中兴通讯股份有限公司 | Construction method and system for software version |
CN102799515A (en) * | 2011-05-24 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Application program testing method and device |
CN102662655A (en) * | 2012-03-12 | 2012-09-12 | 中兴通讯股份有限公司 | Building system and method for version |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11860821B2 (en) | Generating target application packages for groups of computing devices | |
Burns et al. | Kubernetes: up and running | |
JP7011737B2 (en) | Systems and methods for connector development and integrated channel deployment | |
US9218269B2 (en) | Testing multiple target platforms | |
CN106559438B (en) | Program uploading method and device based on target network platform | |
US9513938B2 (en) | Virtual appliance integration with cloud management software | |
US8918454B2 (en) | Managing rule sets as web services | |
US8037471B2 (en) | Systems and methods for constructing relationship specifications from component interactions | |
CN108964968B (en) | Service access management method and system in container cloud environment | |
US20050251527A1 (en) | System and method for integrating disparate data and application sources using a web services orchestration platform with business process execution language (BPEL) | |
US20100275210A1 (en) | Execution engine for business processes | |
WO2018036342A1 (en) | Csar-based template design visualization method and device | |
US9146841B2 (en) | Proxy server assisted product testing | |
US20080243848A1 (en) | User specific logs in multi-user applications | |
Saito et al. | DevOps with Kubernetes: accelerating software delivery with container orchestrators | |
US20090063395A1 (en) | Mapping log sets between different log analysis tools in a problem determination environment | |
US10868719B2 (en) | System and method for federated configuration in an application server environment | |
Hanjura | Heroku cloud application development | |
US20170364390A1 (en) | Automating enablement state inputs to workflows in z/osmf | |
CN108206848A (en) | Build the method and device of SOA service releases | |
Turnbull | Pulling strings with puppet: configuration management made easy | |
Iwazaki | Oracle WebLogic Server 12c Advanced Administration Cookbook | |
Arora et al. | Learning Yarn | |
CN109684521A (en) | Linux system configuration information inspection method, device and computer readable storage medium | |
Arundel | Puppet 2.7 Cookbook |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180626 |