CN103561113A - Web Service interface generating method and device - Google Patents

Web Service interface generating method and device Download PDF

Info

Publication number
CN103561113A
CN103561113A CN201310578710.8A CN201310578710A CN103561113A CN 103561113 A CN103561113 A CN 103561113A CN 201310578710 A CN201310578710 A CN 201310578710A CN 103561113 A CN103561113 A CN 103561113A
Authority
CN
China
Prior art keywords
web service
service interface
interface
configuration information
dynamic
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
CN201310578710.8A
Other languages
Chinese (zh)
Other versions
CN103561113B (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201310578710.8A priority Critical patent/CN103561113B/en
Publication of CN103561113A publication Critical patent/CN103561113A/en
Application granted granted Critical
Publication of CN103561113B publication Critical patent/CN103561113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a Web Service interface generating method which comprises the following steps of obtaining Web Service interface collocation information in a Web Service interface generating request when the Web Service interface generating request is received, sending the Web Service interface collocation information to a corresponding Web Service station, calling an SOA service framework to analyze the Web Service interface collocation information and generate a dynamic Web Service interface. The invention further discloses a Web Service interface generating device. The Web Service interface generating method of the embodiment can analyze the defined service interface information by calling the SOA service framework to generate the dynamic Web Service interface. Thus, the Web Service interface can be distributed more flexibly and simply.

Description

Generation method and the device of Web Service interface
Technical field
The present invention relates to computer realm, relate in particular to a kind of generation method and device of Web Service interface.
Background technology
In existing enterprise operation system, there are some business that Web Service is provided, for heterogeneous system access, thereby make enterprise operation system can integrate the ability of third party's application, business is processed better.
Although the Web Service interface integrated with heterogeneous system can be provided in existing operation system, the sphere of action of this Web Service interface is just cured when exploitation; When Web Service interface no longer satisfies the demands, need to redesign original interface or increase new interface, thereby having increased development cost.
Summary of the invention
Main purpose of the present invention is to provide a kind of generation method and device of Web Service interface, is intended to make the issue of Web Service interface more flexible, simple.
A kind of generation method that the invention provides Web Service interface, comprises the following steps:
Receive Web Service interface and generate while asking, obtain Web Service interface and generate the Web Service interface configuration information in request;
Described Web Service interface configuration information is sent on corresponding Web Service website;
Call SOA service framework Web Service interface configuration information is resolved, and generate dynamic Web Service interface.
Preferably, described Web Service interface configuration information comprises the COS of the configuration interface of Web Service, the issue object of Web Service and Web Service.
Preferably, described Web Service interface configuration information sent on corresponding Web Service website and comprised:
According to described Web Service interface configuration information, Web service issue and dynamic Service instrument by business site build corresponding Web Service website.
Preferably, described dynamic Web Service interface comprises document solid data parameter and custom parameter.
Preferably, after the dynamic Web Service of described generation interface, also comprise:
Generated Web Service interface is passed through to adapter access service bus.
The present invention also provides a kind of generating apparatus of Web Service interface, comprising:
Interface message input module, while generating request for receiving Web Service interface, obtains Web Service interface and generates the Web Service interface configuration information in request;
Interface message sending module, for sending to corresponding Web Service website by described Web Service interface configuration information;
Interface generation module, resolves Web Service interface configuration information for calling SOA service framework, and generates dynamic Web Service interface.
Preferably, described Web Service interface configuration information comprises the COS of the configuration interface of Web Service, the issue object of Web Service and Web Service.
Preferably, described interface message sending module is used for:
According to described Web Service interface configuration information, Web service issue and dynamic Service instrument by business site build corresponding Web Service website.
Preferably, described dynamic Web Service interface comprises document solid data parameter and custom parameter.
Preferably, described generating apparatus also comprises:
Interface access module, for passing through adapter access service bus by generated Web Service interface.
The embodiment of the present invention is resolved defined service interface information by calling SOA service framework, to generate dynamic Web Service interface.Therefore, the embodiment of the present invention makes the issue of Web Service interface more flexible, simple.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of generation method first embodiment of Web Service interface of the present invention;
Fig. 2 is the schematic flow sheet of generation method second embodiment of Web Service interface of the present invention;
Fig. 3 is the schematic diagram of the Web Service interface that in the present invention, third party's application is issued by service bus access service system;
Fig. 4 is the high-level schematic functional block diagram of generating apparatus first embodiment of Web Service interface of the present invention;
Fig. 5 is the high-level schematic functional block diagram of generating apparatus second embodiment of Web Service interface of the present invention.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Below in conjunction with Figure of description and specific embodiment, further illustrate technical scheme of the present invention.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Main thought of the present invention is by the service interface information that definition will be issued in operation system, then according to this service interface information, the service that this will be issued is published to can be on the Web Service website of accessing, then call SOA service framework Web Service interface configuration information is resolved, and generate dynamic Web Service interface.
Before describing the specific embodiment of the invention, the proprietary term that the present invention is used is introduced one by one:
Operation: the specific function that on document, toolbar button has, by button click, call corresponding function.
Document: in operation system, document is business datum after abstract and the carrier of service logic, and document saves as document metadata in operation system.
ESB:ESB full name is Enterprise Service Bus, i.e. ESB.It is the product that traditional middleware technology is combined with technology such as XML, Web services.ESB provides connection maincenter the most basic in network, is the essential elements of constructing nervous system of enterprise.ESB can provide the solution more more cheap than traditional middleware product, and simultaneously it can also eliminate the technological disparity between different application, allows different application server coordinate operation, has realized communication and integration between different services.
Dynamic domain model: according to the different business cell abstract of operation system computerized information model out, be used for describing different business objects, for example: document-sales order, basic data-material etc.
SOA service framework: full name Service-Oriented Architecture service framework, service-oriented architectural framework service framework.It is a component model, and it between the different function units of application program (being called service) is served by these, defines good interface and contract connects.This good interface is to adopt neutral mode to define, and it should be independent of hardware platform, operating system and the programming language of the service of realization.This service that makes to be structured in various such systems can be carried out with a kind of unification and general mode alternately.
Based on above-mentioned proprietary term, the present invention proposes a kind of generation method of Web Service interface, as shown in Figure 1, the generation method of this Web Service interface comprises the following steps:
Step S110, when receiving Web Service interface and generating request, obtain Web Service interface and generate the Web Service configuration information in request;
Web Service interface configuration information comprises the COS of the configuration interface of Web Service, the issue object of Web Service and Web Service.The issue object of this Web Service is mainly business paper.Because business paper has unified dynamic domain model, can take out different business scope models according to different business unit, domain model has some general character and some othernesses.The relation of concrete certain dynamic domain model may be model corresponding element, the corresponding attribute of element, and operation on document is as service, is articulated on certain attribute of concrete document, for example attribute: operating list.All documents can freely configure the same service, for example, preserve, check, delete, revise, submit to, examine etc.Therefore, can configure corresponding Web Service interface message for the total function of document, to generate Web Service interface for external call.
Step S120, described Web Service configuration information is sent on corresponding Web Service website;
According to described Web Service configuration information, Web service issue and dynamic Service instrument by business site build corresponding Web Service website.Because operation system applied environment has a plurality of data centers, a plurality of Web servers, and service interface website can only be for Yi Ge data center, and may be deployed on the server that can access Internet.Therefore, according to the data center of the service support that will issue, and the service that this will be issued is published on corresponding Web Service website, thereby can shield the complexity of issue.
Step S130, call SOA service framework Web Service interface configuration information is resolved, and generate dynamic Web Service interface.
After information on services being published on corresponding Web Service website, SOA service framework, by the data center that will issue according to service, is resolved Web Service interface configuration information, and generates dynamic Web Service interface.
Further, non-existent service in all right expanding system of this operation system, only need to be in self-defining operation of the capable interpolation of document, the then definition of newly-increased this operate services in dynamic service definition function.In the last Web Service interface dynamically generating, will comprise document solid data parameter and custom parameter.
The embodiment of the present invention is resolved defined service interface information by calling SOA service framework, to generate dynamic Web Service interface.Therefore, the embodiment of the present invention makes the issue of Web Service interface more flexible, simple.
Further, with reference to Fig. 2, the second embodiment of the generation method of Web Service interface of the present invention is proposed.In the present embodiment, after the step S130 of above-described embodiment, also comprise:
Step S140, by generated Web Service interface by adapter access service bus.
Application adapter framework by ESB is realized operation system application adapter, UI by this adapter carries out after access parameter configuration, ESB imports the contract of service of operation system, dynamically generates the data contract of ESB, and these contracts can participate in data-mapping and the conversion of ESB.As shown in Figure 3, the Web Service interface that operation system generates will be by adapter access service bus ESB.Meanwhile, third party's application is also connected on service bus by the service interface of self.When third party application need to be accessed certain business service thus, only its access request need be sent to service bus, and the forwarding of sending to of asking by service bus and data.
The embodiment of the present invention is by passing through adapter access service bus by the Web Service interface generating, thereby when the access of service interface, no longer need directly to find the service interface of access, but the service interface access services bus of use oneself can realize the access to the respective service interface of operation system.
With reference to Fig. 4, generating apparatus first embodiment of a kind of Web Service of the present invention interface is proposed.The generating apparatus of the Web Service interface of this embodiment comprises:
Interface message input module 110, while generating request for receiving Web Service interface, obtains Web Service interface and generates the Web Service interface configuration information in request;
Interface message sending module 120, for sending to corresponding Web Service website by described Web Service interface configuration information;
Interface generation module 130, resolves Web Service interface configuration information for calling SOA service framework, and generates dynamic Web Service interface.
Above-mentioned Web Service interface configuration information comprises the COS of the configuration interface of Web Service, the issue object of Web Service and Web Service.The issue object of this Web Service is mainly business paper.Because business paper has unified dynamic domain model, can take out different business scope models according to different business unit, domain model has some general character and some othernesses.The relation of concrete certain dynamic domain model may be model corresponding element, the corresponding attribute of element, and operation on document is as service, is articulated on certain attribute of concrete document, for example attribute: operating list.All documents can freely configure the same service, for example, preserve, check, delete, revise, submit to, examine etc.Therefore, can configure corresponding Web Service interface message for the total function of document, to generate Web Service interface for external call.
Interface message sending module 120 is according to described Web Service configuration information, and Web service issue and dynamic Service instrument by business site build corresponding Web Service website.Because operation system applied environment has a plurality of data centers, a plurality of Web servers, and service interface website can only be for Yi Ge data center, and may be deployed on the server that can access Internet.Therefore, according to the data center of the service support that will issue, and the service that this will be issued is published on corresponding Web Service website, thereby can shield the complexity of issue.
After information on services being published on corresponding Web Service website, interface generation module 130 will call SOA service framework, so that the data center that SOA service framework will be issued according to service, Web Service interface configuration information is resolved, and generate dynamic Web Service interface.
The embodiment of the present invention is resolved defined service interface information by calling SOA service framework, to generate dynamic Web Service interface.Therefore, the embodiment of the present invention makes the issue of Web Service interface more flexible, simple.
Further, with reference to Fig. 5, generating apparatus second embodiment of Web Service interface of the present invention is proposed.The generating apparatus of the Web Service interface of this embodiment also comprises:
Interface access module 140, for passing through adapter access service bus by generated Web Service interface.
Application adapter framework by ESB is realized operation system application adapter, UI by this adapter carries out after access parameter configuration, ESB imports the contract of service of operation system, dynamically generates the data contract of ESB, and these contracts can participate in data-mapping and the conversion of ESB.As shown in Figure 3, the Web Service interface that operation system generates will be by adapter access service bus ESB.Meanwhile, third party's application is also connected on service bus by the service interface of self.When third party application need to be accessed certain business service thus, only its access request need be sent to service bus, and the forwarding of sending to of asking by service bus and data.
The embodiment of the present invention is by passing through adapter access service bus by the Web Service interface generating, thereby when the access of service interface, no longer need directly to find the service interface of access, but the service interface access services bus of use oneself can realize the access to the respective service interface of operation system.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the device that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or device.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the device that comprises this key element and also have other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add essential general hardware platform by software and realize, can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, the control device of this document behavior all will be realized by some instructions, these some instructions are stored in a storage medium (as ROM/RAM, magnetic disc, CD), for terminal equipment, (can be mobile phone, computer, server, or the network equipment etc.) processor carry out the method described in each embodiment of the present invention.
The foregoing is only the preferred embodiments of the present invention; not thereby limit its scope of the claims; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; directly or indirectly be used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a generation method for Web Service interface, is characterized in that, comprises the following steps:
Receive Web Service interface and generate while asking, obtain Web Service interface and generate the Web Service interface configuration information in request;
Described Web Service interface configuration information is sent on corresponding Web Service website;
Call SOA service framework Web Service interface configuration information is resolved, and generate dynamic Web Service interface.
2. the generation method of Web Service interface according to claim 1, it is characterized in that, described Web Service interface configuration information comprises the COS of the configuration interface of Web Service, the issue object of Web Service and Web Service.
3. the generation method of Web Service interface according to claim 2, is characterized in that, described Web Service interface configuration information is sent on corresponding Web Service website and comprised:
According to described Web Service interface configuration information, Web service issue and dynamic Service instrument by business site build corresponding Web Service website.
4. the generation method of Web Service interface according to claim 1, is characterized in that, described dynamic Web Service interface comprises document solid data parameter and custom parameter.
5. the generation method of Web Service interface according to claim 1, is characterized in that, after the dynamic Web Service of described generation interface, also comprises:
Generated Web Service interface is passed through to adapter access service bus.
6. a generating apparatus for Web Service interface, is characterized in that, comprising:
Interface message input module, while generating request for receiving Web Service interface, obtains Web Service interface and generates the Web Service interface configuration information in request;
Interface message sending module, for sending to corresponding Web Service website by described Web Service interface configuration information;
Interface generation module, resolves Web Service interface configuration information for calling SOA service framework, and generates dynamic Web Service interface.
7. the generating apparatus of Web Service interface according to claim 6, it is characterized in that, described Web Service interface configuration information comprises the COS of the configuration interface of Web Service, the issue object of Web Service and Web Service.
8. the generating apparatus of Web Service interface according to claim 7, is characterized in that, described interface message sending module is used for:
According to described Web Service interface configuration information, Web service issue and dynamic Service instrument by business site build corresponding Web Service website.
9. the generating apparatus of Web Service interface according to claim 6, is characterized in that, described dynamic Web Service interface comprises document solid data parameter and custom parameter.
10. the generating apparatus of Web Service interface according to claim 6, is characterized in that, described generating apparatus also comprises:
Interface access module, for passing through adapter access service bus by generated Web Service interface.
CN201310578710.8A 2013-11-18 2013-11-18 The generation method and device of Web Service interface Active CN103561113B (en)

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 true CN103561113A (en) 2014-02-05
CN103561113B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107171959A (en) * 2017-04-20 2017-09-15 深圳中兴网信科技有限公司 Dynamic routing method and dynamic routing system based on SOA
CN107872484A (en) * 2016-09-27 2018-04-03 中国电信股份有限公司 REST API fast registration methods, devices and systems
CN109947410A (en) * 2019-03-28 2019-06-28 北京致远互联软件股份有限公司 Third party's service interface construction method and device
CN110971664A (en) * 2019-10-31 2020-04-07 北京浪潮数据技术有限公司 Interface service management system

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107872484A (en) * 2016-09-27 2018-04-03 中国电信股份有限公司 REST API fast registration methods, devices and systems
CN107872484B (en) * 2016-09-27 2020-12-25 中国电信股份有限公司 REST API rapid registration method, device and system
CN107171959A (en) * 2017-04-20 2017-09-15 深圳中兴网信科技有限公司 Dynamic routing method and dynamic routing system based on SOA
CN109947410A (en) * 2019-03-28 2019-06-28 北京致远互联软件股份有限公司 Third party's service interface construction method and device
CN109947410B (en) * 2019-03-28 2022-09-02 北京致远互联软件股份有限公司 Third-party service interface construction method and device
CN110971664A (en) * 2019-10-31 2020-04-07 北京浪潮数据技术有限公司 Interface service management system
CN110971664B (en) * 2019-10-31 2023-04-18 北京浪潮数据技术有限公司 Interface service management system

Also Published As

Publication number Publication date
CN103561113B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN102591724B (en) Method and device for information interaction
CN101697139A (en) Method, device and registry for remote procedure call
CN101553812A (en) Dynamic device profile interfaces
CN104133765B (en) The test case sending method of network activity and test case server
CN102819766A (en) Method, device and enterprise system for checking forms
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
CN110278256B (en) Block link point access uplink method, related equipment and system
CN103150154B (en) The implementation method and device of a kind of application plug
CN104516918A (en) User identity information maintenance method and device, server and system
CN103164333A (en) WEB testing method and WEB testing system of embedded device system and WEB server
CN107728999A (en) A kind of App, the method and system of small routine interface simulation
CN108667660B (en) Method and device for route management and service routing and routing system
CN103561113A (en) Web Service interface generating method and device
CN115016784B (en) Low code application multiplexing method, application analysis system, equipment and storage medium
CN105022619A (en) Code processing method and device
CN113467972A (en) Communication interface construction method, communication interface construction device, computer equipment and storage medium
CN102761443A (en) Collocation method and device of command lines
CN110738038A (en) Contract text generation method, device, equipment and computer readable storage medium
CN103399735A (en) Method for developing intermediate layer of remote function call interface
CN109561167A (en) A kind of domain name analytic method and device
US10924527B2 (en) Dynamic workflow-based composite web service system and method
Yu et al. Modeling and analysis of mobile cloud computing based on bigraph theory
CN104221002B (en) For realizing the method and system for the public data interface for arriving web services
CN112711625A (en) Bidirectional self-adaptive multi-source heterogeneous big data dynamic processing method
CN106709060B (en) Data sharing method and 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