CN109885290A - Application program service description information generates and dissemination method, device and storage medium - Google Patents

Application program service description information generates and dissemination method, device and storage medium Download PDF

Info

Publication number
CN109885290A
CN109885290A CN201910021018.2A CN201910021018A CN109885290A CN 109885290 A CN109885290 A CN 109885290A CN 201910021018 A CN201910021018 A CN 201910021018A CN 109885290 A CN109885290 A CN 109885290A
Authority
CN
China
Prior art keywords
service
application program
information
description information
empty
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
CN201910021018.2A
Other languages
Chinese (zh)
Other versions
CN109885290B (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.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software 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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN201910021018.2A priority Critical patent/CN109885290B/en
Publication of CN109885290A publication Critical patent/CN109885290A/en
Application granted granted Critical
Publication of CN109885290B publication Critical patent/CN109885290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of application program service description informations to generate and dissemination method, device and storage medium, belong to field of computer technology, summarize for solving application program service description information mainly by manual compiling, to the newly-increased of service, modification, delete, response not in time, the problem of description inaccuracy;The present invention is defined the key element of application program service description information in application program service coding stage;In application program service building or service arrangement stage, service key element is verified, after verification, extracts service metadata model;In the application issued stage, visualization display is carried out to service metadata in service issuance platform and is showed.The problem of causing The present invention reduces Hand writing service description information enhances the accuracy of service description information, and can easily grasp the quantity and attribute of service.

Description

Application program service description information generates and dissemination method, device and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of application program service description information generates and publisher Method, device and storage medium.
Background technique
Currently, being had the following problems in common application programming service development process:
A. application program service exploitation content is not associated with deployment document, relies on the relationship of both manual maintenances, with The change of demand be easy to cause the content of deployment document and service development inconsistent, in program upgrading, be easy to cause deployment wrong Accidentally.
B. application program service description information is not associated with application program service development process, relies on both manual maintenances Relationship easily cause the content of service description document and service code inconsistent with the change of demand.It is being based on service mode When programming, because of the mistake of service documents, and the program functionality mistake generated.
C. large program application usually has many application services, because there are A, B problem manage service can not effectively Reason, specific manifestation are as follows: cannot accurately know system issued how many service, can not the purposes of accurate statistics service, Wu Fazhun True knows service description information.
Summary of the invention
In view of above-mentioned analysis, the present invention is intended to provide a kind of application program service description information generate with dissemination method, Device and storage medium solve application program service description information and summarize mainly by manual compiling, to the newly-increased of service, modification, Delete, response not in time, description inaccuracy problem.
The purpose of the present invention is mainly achieved through the following technical solutions:
A kind of application program service description information automatically generate and dissemination method, comprising:
In application program service coding stage, the key element of application program service description information is standardized;
In application program service building or service arrangement stage, school is carried out to service key element in service source code It tests, after verification, constructs service metadata model;
In the application issued stage, in service issuance platform, the service metadata in service metadata model is extracted Visualization is carried out to show.
Further, in application program service coding stage, according to the service framework template defined, in code layer to clothes Business key element is standardized;The content of the specification includes:
Import of services is standardized, including to import of services description and structure be formatted definition;
Service output is standardized, description and structure including exporting to service are formatted definition;
Service dependence configuration information is described and the specification of structure, the service rely on configuration information comprising relying on clothes Business relies on parameter and relies on business;
Service function description information is standardized, the service function description information is included in code annotation or project It describes in file.
Further, it includes jaxb that the description and structure of the import of services and service output, which are formatted definition mode, Mode, schema mode or xml mode.
The service relies on configuration information, and xml is used to carry out as the configuration carrier of service by Green Formula means Definition.
Further, it in application program service building or service arrangement stage, specifically includes:
Application builds are carried out to the source code of application program service;The automatic key element for extracting service, constitutes clothes Business descriptive metadata model;
Integrity check is carried out by metadata schema of the service framework template to the service describing, if had complete Property, then construct generation service installation kit;If not having integrality, application program service coding stage is returned to, according to described Service framework template again standardizes the key element of service definition.
Further, the integrity check includes:
Services Code: non-empty meets the definition of Services Code format, Services Code uniqueness;
Service Chinese name: non-empty;
Service release: non-empty meets version definition rule, and version number is greater than old version;
Business object: non-empty is already present business object in system;
Interactive mode: non-empty, either synchronously or asynchronously;
ISP: non-empty, including specific people, project team or department;
Import of services output: non-empty provides the statement file that calls sample or can format;
Service function description information: non-empty;
Service relies on configuration information: relying on configuration, non-empty if it exists.
Further, it in the application issued stage, specifically includes:
Installation kit installation and operation in service operation platform will be serviced, respective service configuration is completed, extracts service metadata;
Judge whether service metadata meets service publication precondition;If it is satisfied, then service metadata is read Visualization display is carried out in service issuance platform;Failure information is prompted during service construction or deployment if being unsatisfactory for; The publication precondition is that integrity check results and service configuration result are normal.
Further, the service configuration includes: to match to system parameter, configuration file and business required for servicing It sets.
Further, the information of all services of the visualization display includes: import of services, service exports, service is retouched State information, service operation state and service auxiliary information.
A kind of electronic device, comprising:
Memory, for storing program;
Processor;
When described program is executed by the processor, the application program service description information as described in any of the above-described is realized Automatically generate and dissemination method.
A kind of computer readable storage medium is stored thereon with computer program, and the computer program is performed, real Now the application program service description information as described in any of the above-described automatically generate and dissemination method.
The present invention has the beneficial effect that:
1. caused by reducing Hand writing service description information, fill message is imperfect, service updates asking not in time Topic.
2. the accuracy of strengthening service description information, guarantee of the service description information in code level, make developer As long as after writing completion code, service description information will be automatically generated.
3. grasping the details of system issuing service.By the service construction mechanism of service development frame, service is provided The service metadata of installation kit, system can easily grasp the quantity and attribute of service.
Other features and advantages of the present invention will illustrate in the following description, also, partial become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
Attached drawing is only used for showing the purpose of specific embodiment, and is not to be construed as limiting the invention, in entire attached drawing In, identical reference symbol indicates identical component.
Fig. 1 is automatically generating and dissemination method flow chart for the application program service description information in the embodiment of the present invention;
Fig. 2 is the electronic device construction schematic diagram in the embodiment of the present invention.
Specific embodiment
Specifically describing the preferred embodiment of the present invention with reference to the accompanying drawing, wherein attached drawing constitutes the application a part, and Together with embodiments of the present invention for illustrating the principle of the present invention.
Embodiment one,
Present embodiment discloses a kind of application program service description information automatically generate and dissemination method, be applied to large size The service management of program, for example, certain company needs certain class transaction data of its transaction system being transmitted to financial system as base Plinth business datum.Single transaction data includes transaction journal code, transaction account number, negotiator, exchange hour, transaction amount.Transaction The information such as data are transmitted in a manner of XML.Financial system needs tender of documents information to receive service, and therefore, it is necessary to generate and send out Cloth application program service description information.
Specific application program service description information automatically generate and dissemination method, as shown in Figure 1, including following step It is rapid:
Step S1, in application program service coding stage, according to the service framework template defined, in code layer to service Key element is standardized;The service framework template includes being defined to following key element:
Services Code;
Service Chinese name;
Service release;
Business object;
ISP;
The Green Formula information of import of services calls sample;
It services the Green Formula information of output or calls sample
Service function description information;
Service relies on the Green Formula of configuration information.
Developer's service key element good according to template definition, wants the service key for including in code in code layer Element is defined.The source code for the procedure service that is applied;
For example, the code layer is the low level development code of financial system.
The specification of code level is carried out to following service definition element in service framework template:
Services Code definition: meet the name of Services Code rule;
Such as: cw.hs.sycSAPVoucherInfo
Specifically, the Services Code defines information included in code annotation or in item description file.
Chinese name: the Chinese of service is serviced, such as: synchronous SAP credential information;
Specifically, the service Chinese name information is included in code annotation or in item description file.
Service release: service release information, such as: v1.0.0;
Specifically, the service release information is included in code annotation or in item description file.
Business object: service relationship business scope, such as voucher (credential information);
Specifically, the business object information is included in code annotation or in item description file.
ISP: service provider can be refine to: people, department, company, project team etc.;
Specifically, the Service provider information is included in code annotation or in item description file.
Import of services definition: the definition including description and structure;
Specifically, being defined by Green Formula means;
Preferably, definition mode includes jaxb mode, schema mode or xml mode.
Service output definition: the definition including description and structure;
Specifically, being defined by Green Formula means;
Preferably, definition mode includes jaxb mode, schema mode or xml mode.
Service function description information: the meaning in service layer;
Specifically, description information is included in code annotation or in item description file in the service.
Service relies on configuration information: the definition including description and structure;
Specifically, the service relies on configuration information, xml is used to pass through Green Formula as the configuration carrier of service Means are defined;
Service relies on configuration and includes the service that relies on, rely on parameter, rely on service configuration information.
It configures document information and receives service configuration item (such as: the data feedback address of transaction system, NameSpace, dependence clothes Business) etc. dynamic configuration informations.
In there is application, according to service framework template after key element of the code layer to service definition standardizes, It is formed service business logical code (source code), completes the practical business function of service.
Step S2, application builds are carried out to the source code of application program service;The automatic key element for extracting service, Constitute service description metadata model;
Specifically, according to the service framework template defined, it will be defined in the S1 for including in service business logical code Service key element is extracted, and service description metadata model is formed.
Step S3, integrity check is carried out by metadata schema of the service framework template to the service describing, if With integrality, then generation service installation kit is constructed;If not having integrality, according to element of service defined in S1, Code layer is modified, and after the completion, returns to S2;
Specifically, service definition critical elements integrity check content includes:
Services Code: non-empty meets the definition of Services Code format, Services Code uniqueness.
Service Chinese name: non-empty.
Service release: non-empty meets version definition rule, and version number is greater than old version.
Business object: non-empty, it is necessary to for already present business object in system.
Interactive mode: non-empty, either synchronously or asynchronously
ISP: non-empty can be specific people, project team, department etc..
Import of services output: non-empty provides the statement file (such as: scheam, dtd) that calls sample or can format
Service function description information: non-empty.
Service relies on configuration information: relying on configuration, non-empty if it exists.
Step S4, installation kit installation and operation in service operation platform will be serviced, respective service configuration is completed, according to described Service metadata model extraction obtains service metadata;
Specifically, respective service configuration includes:
System parameter required for servicing.
Configuration file required for servicing.
Business configuration required for servicing.
Step S5, judge whether service metadata meets service publication precondition;If it is satisfied, then by service metadata It reads and carries out visualization display in service issuance platform;If conditions are not met, then prompting to lose during service construction or deployment Lose information.
Specifically, service publication precondition is that service configuration and integrity check results are normal, service metadata is judged Whether whether satisfaction service publication precondition by the integrality of the service description metadata model of S3 step that is, it is judged that examined It tests, and whether passes through the service configuration in S4 step.
The information of all services of visualization display includes:
Import of services: including the description and structure defined;
Service output: including the description and structure defined;
Service description information: the meaning in service layer;
Service operation state: including monitoring informations such as call number, number flows;
Service auxiliary information: service set-up time, version information, installation user etc..
The application program service description information of the present embodiment automatically generate and dissemination method, further include, application program clothes The update and deletion of business;
Wherein, the update of the application program service: service updates, then construction installation kit again, in service operation It is installed in platform, service operation platform updates service related information.
The update and deletion of application program service: unloading service in service operation platform, the service of completion is deleted, while it is retouched It the contents such as states also to delete together.
Embodiment two,
The present embodiment also discloses a kind of electronic device, as shown in Figure 2, comprising: memory, processor and is stored in storage On device and the computer program that can run on a processor.
Processor realizes the automatic of the application program service description information provided in above-described embodiment when executing described program Generation and dissemination method.
Memory, for storing the computer program that can be run on a processor, the computer program executes above-mentioned answer With procedure service description information automatically generate and dissemination method.
Further, the electronic device further include: communication interface, for the communication between memory and processor;
Further, the electronic device further include: display is shown for master data fusion visualization.
Specifically, memory may include high speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
If memory, processor, display and communication interface are independently realized, communication interface, display, memory and Processor can be connected with each other by bus and complete mutual communication.The bus can be industry standard architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extension Industry Standard Architecture knot (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control bus etc.. Only to be indicated with a thick line in Fig. 2, it is not intended that an only bus or a type of bus convenient for indicating.
It is optionally, integrated to realize on one chip if memory, processor and communication interface in specific implementation, Then memory, processor and communication interface can complete mutual communication by internal interface.
Processor may be a central processing unit (Central Processing Unit, referred to as CPU), either Specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or be configured At the one or more integrated circuits for implementing the embodiment of the present invention.
Embodiment three,
The present embodiment provides a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed Device execute when realize any of the above-described embodiment application program service description information automatically generate and dissemination method.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art, It should be covered by the protection scope of the present invention.

Claims (10)

1. a kind of application program service description information automatically generate and dissemination method characterized by comprising
In application program service coding stage, the key element of application program service description information is standardized;
In application program service building or service arrangement stage, service key element is verified in service source code, is led to After crossing verification, service metadata model is constructed;
In the application issued stage, in service issuance platform, the service metadata extracted in service metadata model is carried out Visualization shows.
It is automatically generated and dissemination method 2. according to claim 1, which is characterized in that encode rank in application program service Section, according to the service framework template defined, standardizes service key element in code layer;The content packet of the specification It includes:
Import of services is standardized, including to import of services description and structure be formatted definition;
Service output is standardized, description and structure including exporting to service are formatted definition;
Configuration information is relied on to service to be described and the specification of structure, the service rely on configuration information include rely on service, It relies on parameter and relies on business;
Service function description information is standardized, the service function description information is included in code annotation or item description In file.
It is automatically generated and dissemination method 3. according to claim 2, which is characterized in that the import of services and service output Description and structure to be formatted definition mode include jaxb mode, schema mode or xml mode.
The service relies on configuration information, and xml is used to be determined as the configuration carrier of service by Green Formula means Justice.
It is automatically generated and dissemination method 4. according to claim 2, which is characterized in that construct or take in application program service Business deployment phase, specifically includes:
Application builds are carried out to the source code of application program service;The automatic key element for extracting service, the service of composition are retouched State metadata schema;
Integrity check is carried out by metadata schema of the service framework template to the service describing, if having integrality, Then construct generation service installation kit;If not having integrality, application program service coding stage is returned to, according to the service Framework template again standardizes the key element of service definition.
It is automatically generated and dissemination method 5. according to claim 4, which is characterized in that the integrity check includes:
Services Code: non-empty meets the definition of Services Code format, Services Code uniqueness;
Service Chinese name: non-empty;
Service release: non-empty meets version definition rule, and version number is greater than old version;
Business object: non-empty is already present business object in system;
Interactive mode: non-empty, either synchronously or asynchronously;
ISP: non-empty, including specific people, project team or department;
Import of services output: non-empty provides the statement file that calls sample or can format;
Service function description information: non-empty;
Service relies on configuration information: relying on configuration, non-empty if it exists.
It is automatically generated and dissemination method 6. according to claim 1, which is characterized in that in the application issued stage, tool Body includes:
Installation kit installation and operation in service operation platform will be serviced, respective service configuration is completed, extracts service metadata;
Judge whether service metadata meets service publication precondition;If it is satisfied, then service metadata is read service Visualization display is carried out in distribution platform;Failure information is prompted during service construction or deployment if being unsatisfactory for;
The publication precondition is that integrity check results and service configuration result are normal.
It is automatically generated and dissemination method 7. according to claim 6, which is characterized in that the service configuration includes: to clothes System parameter required for being engaged in, configuration file and business are configured.
It is automatically generated and dissemination method 8. according to claim 6, which is characterized in that all clothes of the visualization display The information of business includes: import of services, service output, service description information, service operation state and service auxiliary information.
9. a kind of electronic device characterized by comprising
Memory, for storing program;
Processor;
When described program is executed by the processor, realize as application program service described in any one of claims 1-8 is retouched State information automatically generate and dissemination method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Be performed, realize as application program service description information described in any one of claims 1-8 automatically generate and publisher Method.
CN201910021018.2A 2019-01-09 2019-01-09 Application program service description information generation and release method, device and storage medium Active CN109885290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910021018.2A CN109885290B (en) 2019-01-09 2019-01-09 Application program service description information generation and release method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910021018.2A CN109885290B (en) 2019-01-09 2019-01-09 Application program service description information generation and release method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109885290A true CN109885290A (en) 2019-06-14
CN109885290B CN109885290B (en) 2022-07-12

Family

ID=66925837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910021018.2A Active CN109885290B (en) 2019-01-09 2019-01-09 Application program service description information generation and release method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109885290B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880834A (en) * 2020-07-07 2020-11-03 成都榕慧科技有限公司 Code release method and device, electronic equipment and computer medium
CN112417699A (en) * 2020-11-26 2021-02-26 中国科学院电子学研究所苏州研究院 Service capability-oriented structured description verification system and method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816050A (en) * 2005-02-04 2006-08-09 微软公司 Utilizing abstract descriptions to generate, exchange, and configure service and client runtimes
CN102325153A (en) * 2011-07-12 2012-01-18 北京新媒传信科技有限公司 Service development method and system
CN104298490A (en) * 2013-07-15 2015-01-21 深圳中兴网信科技有限公司 Service publication method and device based on service oriented architecture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816050A (en) * 2005-02-04 2006-08-09 微软公司 Utilizing abstract descriptions to generate, exchange, and configure service and client runtimes
US20060179425A1 (en) * 2005-02-04 2006-08-10 Microsoft Corporation Utilizing abstract descriptions to generate, exchange, and configure service and client runtimes
CN102325153A (en) * 2011-07-12 2012-01-18 北京新媒传信科技有限公司 Service development method and system
CN104298490A (en) * 2013-07-15 2015-01-21 深圳中兴网信科技有限公司 Service publication method and device based on service oriented architecture

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880834A (en) * 2020-07-07 2020-11-03 成都榕慧科技有限公司 Code release method and device, electronic equipment and computer medium
CN111880834B (en) * 2020-07-07 2024-02-09 成都榕慧科技有限公司 Code issuing method, device, electronic equipment and computer medium
CN112417699A (en) * 2020-11-26 2021-02-26 中国科学院电子学研究所苏州研究院 Service capability-oriented structured description verification system and method thereof

Also Published As

Publication number Publication date
CN109885290B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
Popovic Communication protocol engineering
CN107644286B (en) Workflow processing method and device
CN105912473B (en) Mobile APP automatically testing platform and test method based on BDD
WO2021109928A1 (en) Creation method, usage method and apparatus for machine learning scheme template
CN108600148B (en) Transaction message processing method and device
CN107886439A (en) Insurance products development approach, device, equipment and computer-readable recording medium
US8495008B2 (en) Application-aware recording and replay
CN108038294B (en) UVM environment building method and system
CN100442293C (en) Method for combination of original files of hardware design language and checking data files
CN112131829A (en) Verification method, system and related device of chip register
CN106776515A (en) The method and device of data processing
KR101770292B1 (en) Computer-executable model reverse engineering method and apparatus performing the same
CN110727580A (en) Response data generation method, full-flow interface data processing method and related equipment
CN114912391A (en) Automatic generation method, device, equipment and medium of register design and verification model
CN107273250B (en) Testing method and device of electronic insurance policy automatic underwriting system
CN109885290A (en) Application program service description information generates and dissemination method, device and storage medium
CN106843818B (en) Business model generation method and device
US11914574B2 (en) Generation of inconsistent testing data
CN110134596A (en) The generation method and terminal device of test document
CN108256716A (en) The method and apparatus of flow and/or atom flow is configured/performed based on table
CN115587558A (en) Interface-based verification environment generation method and device, equipment and storage medium
CN116681013B (en) Simulation verification method, platform, device, equipment and medium of network chip
CN110263316A (en) A kind of document handling method, device and computer equipment
CN114841119B (en) Register modeling method, device, equipment and medium in multi-user mode
CN115758973A (en) Method, device and equipment for generating chip register design file and storage medium

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