CN103561113B - The generation method and device of Web Service interface - Google Patents
The generation method and device of Web Service interface Download PDFInfo
- Publication number
- CN103561113B CN103561113B CN201310578710.8A CN201310578710A CN103561113B CN 103561113 B CN103561113 B CN 103561113B CN 201310578710 A CN201310578710 A CN 201310578710A CN 103561113 B CN103561113 B CN 103561113B
- Authority
- CN
- China
- Prior art keywords
- web service
- service interface
- interface
- web
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention discloses a kind of generation method of Web Service interface, comprising the following steps: when receiving the generation request of Web Service interface, obtains Web Service interface and generates the Web Service interface configuration information in requesting;It sends the Web Service interface configuration information on corresponding Web Service website;It calls SOA service framework to parse Web Service interface configuration information, and generates dynamic Web Service interface.The invention also discloses a kind of generating means of Web Service interface.The embodiment of the present invention is by calling SOA service framework to parse defined service interface information, to generate dynamic Web Service interface.Therefore, the embodiment of the present invention makes the publication of Web Service interface more flexible, simply.
Description
Technical field
The present invention relates to computer field more particularly to a kind of generation methods and device of Web Service interface.
Background technique
In existing enterprise operation system, there are some business that Web Service has been provided, accessed for heterogeneous system,
So that enterprise operation system can integrate the ability of third-party application, business is preferably handled.
Although the Web Service interface integrated with heterogeneous system, the Web can be provided in existing operation system
The sphere of action of Service interface has just been cured in exploitation;When Web Service interface no longer meet demand, then
It needs to redesign original interface or increases new interface, to increase development cost.
Summary of the invention
The main purpose of the present invention is to provide the generation methods and device of a kind of Web Service interface, it is intended to so that
The publication of Web Service interface is more flexible, simply.
The present invention provides a kind of generation methods of Web Service interface, comprising the following steps:
When receiving the generation request of Web Service interface, obtains Web Service interface and generate the Web in requesting
Service interface configuration information;
It sends the Web Service interface configuration information on corresponding Web Service website;
It calls SOA service framework to parse Web Service interface configuration information, and generates dynamic Web
Service interface.
Preferably, the Web Service interface configuration information includes the configuration interface of Web Service, Web
The issue object of Service and the service type of Web Service.
Preferably, described send Web Service interface configuration information on corresponding Web Service website is wrapped
It includes:
According to the Web Service interface configuration information, pass through the Web service publication and dynamic Service work of business site
Tool is to construct corresponding Web Service website.
Preferably, the dynamic Web Service interface includes document solid data parameter and custom parameter.
Preferably, after the dynamic Web Service interface of generation further include:
Web Service interface generated is passed through into adapter access service bus.
The present invention also provides a kind of generating means of Web Service interface, comprising:
Interface message input module when generating request for receiving Web Service interface, obtains Web Service
Interface generates the Web Service interface configuration information in request;
Interface message sending module, for sending corresponding Web for the Web Service interface configuration information
On Service website;
Interface generation module, for calling SOA service framework to parse Web Service interface configuration information, and
Generate dynamic Web Service interface.
Preferably, the Web Service interface configuration information includes the configuration interface of Web Service, Web
The issue object of Service and the service type of Web Service.
Preferably, the interface message sending module is used for:
According to the Web Service interface configuration information, pass through the Web service publication and dynamic Service work of business site
Tool is to construct corresponding Web Service website.
Preferably, the dynamic Web Service interface includes document solid data parameter and custom parameter.
Preferably, the generating means further include:
Interface AM access module, for Web Service interface generated to be passed through adapter access service bus.
The embodiment of the present invention is by calling SOA service framework to parse defined service interface information, to generate
Dynamic Web Service interface.Therefore, the embodiment of the present invention makes the publication of Web Service interface more flexible, letter
It is single.
Detailed description of the invention
Fig. 1 is the flow diagram of the generation method first embodiment of Web Service interface of the present invention;
Fig. 2 is the flow diagram of the generation method second embodiment of Web Service interface of the present invention;
Fig. 3 is the Web Service interface that third-party application accesses operation system publication by service bus in the present invention
Schematic diagram;
Fig. 4 is the functional block diagram of the generating means first embodiment of Web Service interface of the present invention;
Fig. 5 is the functional block diagram of the generating means second embodiment of Web Service interface of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Technical solution of the present invention is further illustrated with reference to the accompanying drawings and specific embodiments of the specification.It should be appreciated that this
Locate described specific embodiment to be only used to explain the present invention, be not intended to limit the present invention.
Main idea is that then basis should by defining the service interface information to be issued in operation system
Service interface information, the service that this to be issued are published on the Web Service website for access, then call SOA clothes
Business frame parses Web Service interface configuration information, and generates dynamic Web Service interface.
Before describing the specific embodiment of the invention, the proprietary term that the present invention uses is introduced one by one:
Operation: specific function possessed by toolbar button on document calls corresponding function by clicking button.
Document: in operation system, document is the carrier of the business datum and service logic after abstract, and document
Document metadata is saved as in operation system.
ESB:ESB full name is Enterprise Service Bus, i.e. Enterprise Service Bus.It is traditional middleware technology
Product in conjunction with the technologies such as XML, Web service.ESB provides connection maincenter most basic in network, is to construct enterprise's nerve
The essential elements of system.ESB can provide the solution more more cheap than traditional middleware product, while it can also be eliminated
Technological disparity between different application, allows different application server coordinate operations, realize communication between different services with
Integration.
Dynamic domain model: the computerized information model come out according to the different business cell abstract of operation system is used to
Different business objects is described, such as: document-sales order, basic data-material etc..
SOA service framework: full name Service-Oriented Architecture service framework, service-oriented system
Infrastructure services frame.It is a component model, it takes the different function units (referred to as servicing) of application program by these
Good interface is defined between business and contract connects.The good interface is defined by the way of neutral, it
It should be independently of hardware platform, operating system and the programming language for realizing service.This makes building in various such systems
Service can be interacted with a kind of unification and general mode.
Based on above-mentioned proprietary term, the invention proposes a kind of generation methods of Web Service interface, as shown in Figure 1,
The generation method of the Web Service interface the following steps are included:
Step S110, it when receiving the generation request of Web Service interface, obtains Web Service interface and generates request
In Web Service configuration information;
Web Service interface configuration information includes the publication pair of the configuration interface of Web Service, Web Service
As and Web Service service type.The issue object of the Web Service is mainly business paper.Due to business sheet
According to unified dynamic domain model, different business scope models, field can be taken out according to different business unit
Model has some general character and some othernesses.The relationship of some specific dynamic domain model may be model corresponding element, member
The corresponding attribute of element, and the operation on document is articulated on some attribute of specific document, such as attribute as service: operation
List.All documents can freely configure the same service, such as save, check, delete, modify, submit, audit
Deng.Therefore, the shared function of document can be directed to and configures corresponding Web Service interface information, to generate Web
Service interface is for external call.
Step S120, it sends the Web Service configuration information on corresponding Web Service website;
According to the Web Service configuration information, by the Web service publication and dynamic Service tool of business site come
Construct corresponding Web Service website.Due to operation system application environment have multiple data centers, multiple Web servers,
And service interface website can only be directed to a data center, and may be deployed to the server for having access to Internet
On.Therefore, according to the data center of the service support to be issued, and the service that this to be issued is published to corresponding Web
On Service website, so as to shield the complexity of publication.
Step S130, it calls SOA service framework to parse Web Service interface configuration information, and generates dynamic
Web Service interface.
After being published to information on services on corresponding Web Service website, SOA service framework will will be sent out according to service
The data center of cloth parses Web Service interface configuration information, and generates dynamic Web Service interface.
Further, which can service to be not present in expansion system, it is only necessary to add one in document row
Then a self-defining operation increases the definition of the operation service newly in dynamic service definition function.The Web of last dynamic generation
It will include document solid data parameter and custom parameter in Service interface.
The embodiment of the present invention is by calling SOA service framework to parse defined service interface information, to generate
Dynamic Web Service interface.Therefore, the embodiment of the present invention makes the publication of Web Service interface more flexible, letter
It is single.
Further, referring to Fig. 2, the second embodiment of the generation method of Web Service interface of the present invention is proposed.This reality
It applies in example, after the step S130 of above-described embodiment further include:
Step S140, Web Service interface generated is passed through into adapter access service bus.
Operation system application adapter is realized by the application adapter frame of ESB, is connect by the UI of the adapter
After entering parameter configuration, ESB imports the contract of service of operation system, the data contract of dynamic generation ESB, these contracts can participate in
The data of ESB map and conversion.As shown in figure 3, the Web Service interface that operation system generates will be accessed by adapter and be taken
Be engaged in bus ESB.Meanwhile third-party application is connected on service bus also by the service interface of itself.Thus third-party application
When needing to access some business service, its access request only need to be sent to service bus, and made requests by service bus
Be sent to and the forwarding of data.
The embodiment of the present invention passes through the Web Service interface that will be generated by adapter access service bus, thus
When the access of service interface, it is no longer necessary to directly find the service interface of access, but the service interface of oneself is used to access clothes
Business bus, can be realized the access to the respective service interface of operation system.
Referring to Fig. 4, a kind of generating means first embodiment of Web Service interface of the present invention is proposed.The embodiment
The generating means of Web Service interface include:
Interface message input module 110 when generating request for receiving Web Service interface, obtains Web
Service interface generates the Web Service interface configuration information in request;
Interface message sending module 120, for sending corresponding Web for the Web Service interface configuration information
On Service website;
Interface generation module 130, for calling SOA service framework to parse Web Service interface configuration information,
And generate dynamic Web Service interface.
Above-mentioned Web Service interface configuration information includes the hair of the configuration interface of Web Service, Web Service
The service type of cloth object and Web Service.The issue object of the Web Service is mainly business paper.Due to industry
Document be engaged in unified dynamic domain model, different business scope models can be taken out according to different business unit,
Domain model has some general character and some othernesses.The relationship of some specific dynamic domain model may be model corresponding element
Element, element correspond to attribute, and the operation on document is articulated on some attribute of specific document, such as attribute as service:
Operating list.All documents can freely configure the same service, such as save, check, delete, modify, submit, audit
Etc..Therefore, the shared function of document can be directed to and configures corresponding Web Service interface information, to generate Web
Service interface is for external call.
Interface message sending module 120 passes through the Web service of business site according to the Web Service configuration information
It issues with dynamic Service tool and constructs corresponding Web Service website.Since operation system application environment has multiple numbers
According to center, multiple Web servers, and service interface website can only be directed to a data center, and may be deployed to can
It accesses on the server of Internet.Therefore, according to the data center of the service support to be issued, and the service that this to be issued
It is published on corresponding Web Service website, so as to shield the complexity of publication.
After being published to information on services on corresponding Web Service website, interface generation module 130 will call SOA
Service framework so that the SOA service framework data center to be issued according to service, to Web Service interface configuration information into
Row parsing, and generate dynamic Web Service interface.
The embodiment of the present invention is by calling SOA service framework to parse defined service interface information, to generate
Dynamic Web Service interface.Therefore, the embodiment of the present invention makes the publication of Web Service interface more flexible, letter
It is single.
Further, referring to Fig. 5, the generating means second embodiment of Web Service interface of the present invention is proposed.The implementation
The generating means of the Web Service interface of example further include:
Interface AM access module 140, for Web Service interface generated to be passed through adapter access service bus.
Operation system application adapter is realized by the application adapter frame of ESB, is connect by the UI of the adapter
After entering parameter configuration, ESB imports the contract of service of operation system, the data contract of dynamic generation ESB, these contracts can participate in
The data of ESB map and conversion.As shown in figure 3, the Web Service interface that operation system generates will be accessed by adapter and be taken
Be engaged in bus ESB.Meanwhile third-party application is connected on service bus also by the service interface of itself.Thus third-party application
When needing to access some business service, its access request only need to be sent to service bus, and made requests by service bus
Be sent to and the forwarding of data.
The embodiment of the present invention passes through the Web Service interface that will be generated by adapter access service bus, thus
When the access of service interface, it is no longer necessary to directly find the service interface of access, but the service interface of oneself is used to access clothes
Business bus, can be realized the access to the respective service interface of operation system.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, and the control device of the document behavior will pass through some instructions
It realizes, which is stored in a storage medium (such as ROM/RAM, magnetic disk, CD), (can be hand for terminal device
Machine, computer, server or network equipment etc.) processor execute method described in each embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, is not intended to limit its scope of the patents, all to utilize the present invention
Equivalent structure or equivalent flow shift made by specification and accompanying drawing content is directly or indirectly used in other relevant technology necks
Domain is included within the scope of the present invention.
Claims (6)
1. a kind of generation method of Web Service interface, which comprises the following steps:
When receiving the generation request of Web Service interface, obtains Web Service interface and generate the Web in requesting
Service interface configuration information, wherein the Web Service interface configuration information includes configuration circle of Web Service
The service type in face, the issue object of Web Service and Web Service, the issue object of the Web Service are industry
Business document;
According to the data center that the Web Service interface configuration information is supported, the Web Service interface is matched into confidence
Breath is sent on corresponding Web Service website;
It calls SOA service framework to parse Web Service interface configuration information, and generates dynamic Web Service
Interface, wherein the dynamic Web Service interface includes document solid data parameter and custom parameter.
2. the generation method of Web Service interface according to claim 1, which is characterized in that described according to the Web
The data center that Service interface configuration information is supported, sends the Web Service interface configuration information to accordingly
Include: on Web Service website
According to the Web Service interface configuration information, by the Web service publication and dynamic Service tool of business site come
Construct corresponding Web Service website.
3. the generation method of Web Service interface according to claim 1, which is characterized in that described to generate dynamically
After Web Service interface further include:
Web Service interface generated is passed through into adapter access service bus.
4. a kind of generating means of Web Service interface characterized by comprising
Interface message input module when generating request for receiving Web Service interface, obtains Web Service interface
Generate the Web Service interface configuration information in request, wherein the Web Service interface configuration information includes Web
The service type of the configuration interface of Service, the issue object of Web Service and Web Service, the Web
The issue object of Service is business paper;
Interface message sending module, for sending corresponding Web Service for the Web Service interface configuration information
On website;
Interface generation module for calling SOA service framework to parse Web Service interface configuration information, and generates
Dynamic Web Service interface, the dynamic Web Service interface includes document solid data parameter and customized ginseng
Number.
5. the generating means of Web Service interface according to claim 4, which is characterized in that the interface message hair
Module is sent to be used for:
According to the Web Service interface configuration information, by the Web service publication and dynamic Service tool of business site come
Construct corresponding Web Service website.
6. the generating means of Web Service interface according to claim 5, which is characterized in that the generating means are also
Include:
Interface AM access module, for Web Service interface generated to be passed through adapter access service bus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310578710.8A CN103561113B (en) | 2013-11-18 | 2013-11-18 | The generation method and device of Web Service interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310578710.8A CN103561113B (en) | 2013-11-18 | 2013-11-18 | The generation method and device of Web Service interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103561113A CN103561113A (en) | 2014-02-05 |
CN103561113B true CN103561113B (en) | 2019-01-29 |
Family
ID=50015263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310578710.8A Active CN103561113B (en) | 2013-11-18 | 2013-11-18 | The generation method and device of Web Service interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103561113B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107872484B (en) * | 2016-09-27 | 2020-12-25 | 中国电信股份有限公司 | REST API rapid registration method, device and system |
CN107171959B (en) * | 2017-04-20 | 2020-06-19 | 深圳中兴网信科技有限公司 | Dynamic routing method and dynamic routing system based on SOA (service oriented architecture) |
CN109947410B (en) * | 2019-03-28 | 2022-09-02 | 北京致远互联软件股份有限公司 | Third-party service interface construction method and device |
CN110971664B (en) * | 2019-10-31 | 2023-04-18 | 北京浪潮数据技术有限公司 | Interface service management system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557426A (en) * | 2009-05-07 | 2009-10-14 | 中兴通讯股份有限公司 | Web service-based and uniformly managed interface message processor, web service component and method thereof |
CN101930370A (en) * | 2010-09-09 | 2010-12-29 | 上海普元信息技术股份有限公司 | System structure for realizing data conversion in service integration of SOA (Service Oriented Architecture) application system and method thereof |
-
2013
- 2013-11-18 CN CN201310578710.8A patent/CN103561113B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557426A (en) * | 2009-05-07 | 2009-10-14 | 中兴通讯股份有限公司 | Web service-based and uniformly managed interface message processor, web service component and method thereof |
CN101930370A (en) * | 2010-09-09 | 2010-12-29 | 上海普元信息技术股份有限公司 | System structure for realizing data conversion in service integration of SOA (Service Oriented Architecture) application system and method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103561113A (en) | 2014-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101216838B (en) | XML interface configuration file distribute system and method based on WEB marker | |
CN102591724B (en) | Method and device for information interaction | |
CN101808051B (en) | Application integration gateway and control method thereof | |
CN102694866B (en) | Service request broker system in distributed network environment | |
CN106686023A (en) | Flow designing method, client machine, server side apparatus and system | |
KR101212778B1 (en) | Cloud computing based smart office system and server for managing the same and method for managing the same | |
CN101847100A (en) | Method for expanding software application and device | |
CN103561113B (en) | The generation method and device of Web Service interface | |
Wei et al. | Product platform architecture for cloud manufacturing | |
CN103577568A (en) | Cross-platform mobile safety comprehensive information aggregation system and method adopting same | |
CN104301401A (en) | Mobile application platform based on rapid service encapsulation | |
US20210034338A1 (en) | Communications Enablement Platform, System, and Method | |
CN109840298A (en) | The multi information source acquisition method and system of large scale network data | |
CN108388623A (en) | ER relationships generation method, device, computer equipment and storage medium | |
US10924527B2 (en) | Dynamic workflow-based composite web service system and method | |
CN104166551B (en) | A kind of application interface development approach and development device | |
CN102541563A (en) | Method and system for generating monitoring interfaces | |
CN104221002B (en) | Method and system for implementing a common data interface to web services | |
CN104598250A (en) | System management structure and management implementation method for same | |
CN104063219A (en) | Form development method and system for WEB system | |
CN115774573A (en) | Application integration method and device, electronic equipment and storage medium | |
CN103870280A (en) | Webpage seamless combining processing method based on FLEX and JSP | |
Pachghare | Microservices architecture for cloud computing | |
CN116431200A (en) | Configuration method, device, equipment and storage medium for application data configuration information | |
CN102594587B (en) | Embedded WEB debugging and testing maintenance method and debugging and testing maintenance system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |