CN101388910B - System and method implementing combined service - Google Patents

System and method implementing combined service Download PDF

Info

Publication number
CN101388910B
CN101388910B CN2008102253019A CN200810225301A CN101388910B CN 101388910 B CN101388910 B CN 101388910B CN 2008102253019 A CN2008102253019 A CN 2008102253019A CN 200810225301 A CN200810225301 A CN 200810225301A CN 101388910 B CN101388910 B CN 101388910B
Authority
CN
China
Prior art keywords
service
services
request
registry information
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.)
Expired - Fee Related
Application number
CN2008102253019A
Other languages
Chinese (zh)
Other versions
CN101388910A (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.)
BEIJING CE OPEN SOURCE SOFTWARE Co Ltd
Original Assignee
BEIJING CE OPEN SOURCE 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 BEIJING CE OPEN SOURCE SOFTWARE Co Ltd filed Critical BEIJING CE OPEN SOURCE SOFTWARE Co Ltd
Priority to CN2008102253019A priority Critical patent/CN101388910B/en
Publication of CN101388910A publication Critical patent/CN101388910A/en
Application granted granted Critical
Publication of CN101388910B publication Critical patent/CN101388910B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a system and method for realizing combined service. In the scheme of the invention comprises: registering the service register information of at least one service into register management unit and packaging to at least one service realization; arranging the packaged service onto the appointed server end; and processing the service request from the adapter according to the service register information stored in the register management unit. The scheme of the invention allows multiple servers with same system function to provide service logic processing at the same time, can advisablely distributes and fully utilizes the limited computer resource; and can satisfy the different demands of the system to sequential execution and concurrent execution. System maintenance only needs to register the new service without stopping the machine, consequently, avoids the unnecessary loss caused by stopping machine.

Description

A kind of system and method for realizing composite services
Technical field
The present invention relates to computer technology, be meant a kind of system and method for realizing composite services especially.
Background technology
The development of Along with computer technology, in order to satisfy user's different service demand in different stages of development, enterprise application system is also in development and perfect constantly.In this process, produced the system of a large amount of employing different software products, different designs thought structure, thereby formed distribution, the isomery of system, and then caused the problem that interconnects between each system.Therefore, improve the multiplexing capacity of computer software application, the collaboration capabilities of strengthening between the computer software technology becomes key.
At present, in order to address this problem, (Service-Oriented Architecture SOA) becomes enterprise and the common recognition of tissue in information technology (IT) field to adopt Service-Oriented Architecture Based.Wherein, be around two kinds of more famous component technologys of SOA: the serviced component framework (Service Component Architecture, SCA) with Windows communication basis (Windows Communication Foundation, WCF).Specifically, SCA is that a cover that proposed in 2005 can make up the application system model based on SOA, and its core is the definition and the related realization thereof of service.WCF be the use Managed Code that proposed in 2006 set up with running face to the Unified frame of attendant application, integrated all technology relevant under the .Net platform with Distributed Application, be the comprehensive expression of person that Distributed Application is developed.These two kinds of component technologys all can connect the difference in functionality of different system through definition excellent interface and contract between the assembly; And interface is to adopt neutral mode to define, and can be independent of hardware platform, operating system and the programming language of the service of realization.Like this, the service that is structured in various such systems just can be carried out with unified and universal mode alternately.
In practical application, the real-time changeable and client in rapid economy development, market demand has flexibly directly determined the service application of different scales to require interactive mode in various degree.But at present, on the service interaction mechanism of component technology, particularly, how to let a plurality of services that business logic processing is provided simultaneously with identical services logic interfacing in the service combined aspects, with reasonable distribution with make full use of limited computer resource; How in running, to adjust the existing systems function, realize the dynamic expansion of systemic-function, system is safeguarded and need not to shut down; (Event Driven Architecture EDA) takes into account problems such as execution, all is not well solved how to let SOA and event driven architecture.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of system and method for realizing composite services, and composite services are provided quickly and easily.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of system that realizes composite services, this system comprises: Web service unit and registration management unit, wherein, said Web service unit is used to receive services request; Said registration management unit is used for searching in the service registry information of storage according to said services request, according to the service registry information list control Web service unit that searches services request is handled;
This system further comprises: the service encapsulates unit is used for according to WSDL WSDL service being encapsulated, and the service registry information of packaged service is registered in the registration management unit; Said registration management unit is further used for said service registry information is stored; Said service the encapsulation according to WSDL is specially: to each service interface it is encapsulated as one or more services according to applicable cases, each service interface adopts identical platform technology encapsulation or adopts the encapsulation of different platforms technology.
Said registration management unit is further used for the said service registry information of storage is added, revised or deletes.
Said registration management unit comprises: information storage module and service publishes interface, or information storage module and registration management module, and wherein, said information storage module is used to store said service registry information; Said service publishes interface is used for searching in the said service registry information of storage according to said services request, according to the service registry information list control Web service unit that searches services request is handled; Said registration management module is used for said service registry information is added, revised or deletes.
Said service registry information includes but not limited to: WSDL information, execution sequence, filtercondition, executive mode and need the specified services of respond services request.
Said WSDL information includes but not limited to: the NameSpace of Web service, service name, method name, method parameter and address of service.
A kind of method that realizes composite services, this method comprises:
The services request that A, basis are received is searched in the service registry information of storage, obtains the service registry information list;
The service registry information list that B, basis search is handled services request;
Further comprise before the said steps A: the service encapsulates unit encapsulates service according to WSDL, through the registration management unit service registry information of packaged service is registered and is stored then; Said service the encapsulation according to WSDL is specially: to each service interface it is encapsulated as one or more services according to applicable cases, each service interface adopts identical platform technology encapsulation or adopts the encapsulation of different platforms technology.
Said services request is service Simple Object Access Protocol SOAP request; Said steps A comprises: the corresponding with service interface of confirming to describe this service SOAP request according to the content of the Action action node under the Header head node of service SOAP request; And search for the service registry information of the corresponding one or more services that realize of this service interface, obtain the service registry information list.
Said step B comprises:
B1, judge in the service registry information list search whether contain pending service registry information,, then continue execution in step B2,, then continue execution in step B5 if do not contain if contain according to execution sequence;
B2, judge whether this service registry information has been set up filtercondition, if be provided with, then continues execution in step B3,, then continue execution in step B4 if be provided with;
B3, judge whether filtercondition satisfies services request,, then continue execution in step B4,, then return execution in step B1 if do not satisfy if satisfy;
B4, registration service information resolved after, according to the address of service in executive mode of having set and the WSDL information services request is transmitted, judge whether the services request that need make an immediate response then; If desired; Then continue execution in step B5,, then return execution in step B1 if do not need;
B5, services request is responded.
Said services request is service SOAP request; Judge described in the step B3 whether filtercondition satisfies services request; Comprise: extract concrete business information from the Body body part of service SOAP request; Carry out logical calculated with predefined filtercondition, logical calculated result that and if only if satisfies service SOAP request for true time shows filtercondition; Otherwise do not satisfy.
Among the present invention, the one or more services that have in the service of same services interface are appointed according to services request and service log-on message in running dynamically, handle so that correspondent service logic to be provided.
Specifically, the present invention has following advantage and characteristics:
1) system comprises a plurality of systemic-functions, and a system function design is a service interface, can encapsulate a service or a plurality of service through a service interface, and promptly a service logic is by a service or a plurality of service implementing.Like this, a plurality of services that allow to have the identical systems function provide business logic processing simultaneously, just can reasonable distribution with make full use of limited computer resource.
2) according to the demand of service logic, be business demand, through registration, management, the configuration of service registry information, take into account SOA the linear synchronous executive mode and EDA's and the line asynchronous executive mode.Registration management unit in the system provides synchronously and asynchronous two kinds of executive modes, transmits each services request according to service registry information with a kind of executive mode of appointment, to satisfy professional different demands for order execution or concurrent execution.
3) come expanded function through registration, register a service and promptly expand a function.Like this, just can in system's running, adjust the existing systems function, promptly realize the dynamic expansion of systemic-function.During system maintenance, only need the new service of registration, and need not to shut down, avoided the unnecessary loss that causes because of shutdown with this.
In the scheme provided by the invention; Through WSDL (Web Service DescriptionLanguage; WSDL) with Simple Object Access Protocol (Simple Object Access Protocol; SOAP) combine to work, WSDL is used as the criterion of dynamically appointing, and in registration process, provides; SOAP is used as the container of request of bearer service logic and response, in running, is obtained and is replied by the Web service unit.
Description of drawings
Fig. 1 is for realizing the system configuration sketch map of composite services among the present invention;
Fig. 2 is the structural representation of registration management unit among the present invention;
Fig. 3 is for realizing the flow chart of composite services among the present invention;
Fig. 4 is service request processing flow chart among the present invention;
Fig. 5 A integrates the pre-structure sketch map for M in the instance of the present invention;
Fig. 5 B integrates back sales service structural representation for M in the instance of the present invention;
Fig. 5 C integrates back depositary management service structure sketch map for M in the instance of the present invention.
Embodiment
Among the present invention, the service registry information of at least one service is registered in the registration management unit, is encapsulated as the realization of at least one service; Then with packaged service configuration at the specified server end; During services request that processing is sent by adapter, the Web service unit is handled services request according to the service registry information of storing in the registration management unit.
Fig. 1 is for realizing the system configuration sketch map of composite services among the present invention; As shown in Figure 1; This system comprises: a Web service unit, a service encapsulates unit and a registration management unit, and further comprise at least one adapter and at least one Service Processing Unit.The processing of this system mainly comprises two processes: initial registration process and follow-up Request Processing process, and wherein, initial registration process is participated in handling by service encapsulates unit and registration management unit; Follow-up Request Processing process is participated in handling by adapter, Web service unit, registration management unit and Service Processing Unit.
Wherein, In the registration process; The service encapsulates unit encapsulates service according to WSDL, specifically can be: to each service interface it is encapsulated as one or more services according to applicable cases, the service registry information with packaged service is registered in the registration management unit then; The registration management unit is used for the service registry information that comes from the service encapsulates unit is stored.Each service interface can adopt identical platform technology encapsulation, also can adopt the encapsulation of different platforms technology, specifically decides according to applicable cases.Service registry information includes but not limited to WSDL information, execution sequence, filtercondition, executive mode and needs the information such as specified services of respond services request.WSDL information, execution sequence, filtercondition, executive mode and need the information such as specified services of respond services request all to set according to business demand.Wherein, WSDL information includes but not limited to the information such as NameSpace, service name, method name, method parameter and address of service of Web service; Executive mode is synchronous executive mode or asynchronous executive mode.
In the Request Processing process, adapter is used for sending services request to the Web service unit, and adapter can be changed the services request of user's various forms, converts the form that the Web service unit can be discerned into; The Web service unit is used to receive the services request of being sent by adapter, this services request is sent to the registration management unit, and according to the control of registration management unit services request is handled, and services request is sent to Service Processing Unit; The registration management unit is used for searching in the service registry information of storage according to the services request that comes from the Web service unit, according to the service registry information list control Web service unit that searches services request is handled; Service Processing Unit is in according to service logic services request being handled.Services request can be service SOAP request.
The registration management unit comprises again: registration management module, information storage module and service publishes interface; As shown in Figure 2; Wherein, Registration management module and information storage module play a role in initial registration process, and service publishes interface and information storage module play a role in follow-up Request Processing process.
In the registration process, the registration management module is used for adding, revises or deletion service registry information, and with this service registry information stores in information storage module; Information storage module is used to store the service registry information that comes from the registration management module.
In the Request Processing process; The service publishes interface is used for searching in the service registry information that information storage module is stored according to the services request that comes from the Web service unit, according to the service registry information list control Web service unit that searches services request is handled; Information storage module is used to store the service registry information that comes from the registration management module.
In addition, in the running of system, the registration management unit further is carried out dynamic management at any time to service registry information, as on-the-fly modify, dynamically increase and dynamically delete etc., to realize the dynamic expansion of systemic-function.Like this, service registry information can regard as after the service encapsulates unit encapsulates service according to WSDL, added, revises or deleted producing by the registration management unit.
Fig. 3 is for realizing the flow chart of composite services among the present invention, and is as shown in Figure 3, realizes that the processing procedure of composite services may further comprise the steps:
Step 301~step 302: the service encapsulates unit encapsulates service according to WSDL; Specifically can be: to each service interface it is encapsulated as one or more services according to applicable cases, then the service registry information of packaged service is registered and stored.Service registry information includes but not limited to WSDL information, execution sequence, filtercondition, executive mode and needs the information such as specified services of respond services request.WSDL information, execution sequence, filtercondition, executive mode and need the information such as specified services of respond services request all to set according to business demand.Wherein, WSDL information includes but not limited to the information such as NameSpace, service name, method name, method parameter and address of service through Web service; Executive mode is synchronous executive mode or asynchronous executive mode.
Step 301~step 302 is the concrete processing of initial registration process.
Step 303: the services request according to the service registry information butt joint of registration is received is handled, and promptly carries out the service request processing flow process.
Fig. 4 is service request processing flow chart among the present invention, and as shown in Figure 4, the concrete implementation procedure of services request being handled according to the service registry information list that searches may further comprise the steps:
Step 401~step 402: receive services request, in the service registry information of storage, search for, obtain the information on services tabulation according to services request.Specifically be treated to according to what services request was searched in the service registry information of storage: the particular content that combines this services request; Action action node section under the Header head node of services request extracts the NameSpace of Web service method, searches for according to this information.A service registry information can be comprised at least in the service registry information list that searches, also any service registry information can be do not comprised.The services request that receives can be obtained through the mode of instant monitoring by the Web service unit.Services request can be asked for SOAP.
Step 403: judge in the service registry information list that searches whether contain pending service registry information according to execution sequence,, then continue execution in step 404 if contain; If do not contain, then continue execution in step 408.
Step 404: judge that whether this service registry information has been set up filtercondition, if be provided with, then continues execution in step 405; If be not provided with, then continue execution in step 406.
Step 405: judge whether filtercondition satisfies services request; The filtercondition that is about to concrete business information and predefined one or more services carries out logical calculated, and whether the logical calculated result who obtains is true, if satisfy; Be that the logical calculated result is true, then continue execution in step 406; If do not satisfy, promptly the logical calculated result is false, then returns execution in step 403.
Step 406: registration service information is resolved, according to the address of service in executive mode of having set and the WSDL information services request is forwarded to the response server end then, continue execution in step 407 then.
The processing that services request is forwarded to the Web service end specifically comprises: the registration management unit is forwarded to the corresponding service processing unit through the Web service unit with services request.
Step 407: judge whether the services request that to make an immediate response, if desired, then continue execution in step 408; If do not need, then return execution in step 403.
Step 408: services request is responded, specifically can so far, accomplish the processing of whole service logic through the snoop responses current service request of Web service unit.
In addition, in the running of system, can also carry out dynamic management at any time to service registry information, as on-the-fly modify, dynamically increase and dynamically delete etc., to realize the dynamic expansion of systemic-function.
More than handle and accomplished by the registration management unit in the system shown in Figure 1, its services request that receives comes from the Web service unit.
Come more detailed explanation is carried out in concrete realization of the present invention through the instantiation that makes up Bookshop Management System below.
In this instance, mainly be that the sales management and the stock control of bookstore are integrated.Certain M of bookstore is the main supplier of a local family towards retail, school of senior middle school and ecommerce, main management literature and history class textbook and reference book.Along with constantly developing of enterprise, M has purchased the N of bookstore of family's main management science and engineering class textbook and reference book again recently, has further enlarged the share of M in market.
But several main businesses have hindered the maximization that M generates profit in managerial intersection of IT and repetition, shown in Fig. 5 A, are mainly reflected in:
One, independently lack communication between the application system, the sales force has to toss about in bed between each Regional Manager, make office efficiency reduce greatly that supplied upstream and cross-selling are faced with significant challenge;
Two, original data center has formed data silo, and the phenomenon of data redundancy increases greatly, and the speed that makes data gather is slower, and marketing strategy is rendered to the cycle stretch-out in market.
Through the help of professional technique team, M recognized and hindered the key issue place that they realize its target, and hopes to come through the flexibility of implementing SOA and providing integration between the completion system to cut operating costs and to improve overall value.At this moment, can adopt the scheme of realization composite services provided by the invention, wherein mainly comprise system design and deployment and system two stages of operation.
System design and deployment phase mainly comprise three steps such as system's Preliminary design, detailed design and implementation process.Through detailed investigation, professional technique team proposes following solution:
Keep existing IT infrastructure, avoid distributing, heterogeneous system moves on a large scale and rebuild, only necessary function is encapsulated as Web service and reuses realizing;
Form with Web service is each Sales Channel, like StoreFront, wholesale and shopping online, unified sale interface is provided, and uses the existing function of this interface encapsulation;
Form with Web service is that the stock control that is dispersed in diverse location provides unified query interface, and uses the existing function of this interface encapsulation.
System's Preliminary design, the business demand that the user is proposed is converted into the service interface that a series of WSDL describe, for the service logic of the irrelevant demand of managing business of technology platform provides possibility.For the integration of Sales Channel part, need make the sale interface, comprise contents such as sales order, sales order detail; For the integration of stock control part, need make the sale interface, comprise contents such as sales order, sales order detail.
Detailed design defines service interface in conjunction with actual conditions according to systemic-function, then service interface is encapsulated as the realization of one or more services, wherein, can select different platforms technology during encapsulation for use, so that make each item resource can be by rational distribution.For the integration of Sales Channel part, shown in Fig. 5 B, use this service interface to encapsulate the sales service 1 of the former M of expression, the sales management of N shops respectively.According to business demand; When consumption sum or sales volume surpass some, more than 50,000 yuan or 500 of stocks of shops when above, order need pass through examining just of Regional Manager and can come into force like the amount of money; Therefore, we also need encapsulate the sales service 2 that is used for general headquarters' approval process.For notifying the Regional Manager with important order to be examined, also encapsulated the sales service 3 of mobile communication, so that after examining the order generation, notify corresponding Regional Manager with the form of note simultaneously in the very first time.For the integration of stock control part, shown in Fig. 5 C, use this service interface to encapsulate the depositary management service 1 of the former M of expression, N stock control, new depositary management service 2 and depositary management service 3 respectively.
Implementation process is deployed to the given server end with the realization of packaged one or more services, in component model, safeguards these service registry information through the registration management unit then.Service registry information includes but not limited to WSDL information, execution sequence, filtercondition, executive mode, needs the information such as specified services of respond services request.WSDL information, execution sequence, filtercondition, executive mode and need the information such as specified services of respond services request all to set according to business demand.Wherein, WSDL information includes but not limited to the information such as NameSpace, service name, method name, method parameter and address of service of Web service; Executive mode is synchronous executive mode or asynchronous executive mode.The specified services processing unit can be confirmed by the address of service that comprises in the WSDL information.
Integration for the Sales Channel part; Shown in Fig. 5 B; Need to dispose good sales service 1 and sales service 2 is registered in the registration management unit, and the filtercondition that the filtercondition of sales service 1 is set to " amount of money smaller or equal to 50,000 yuan or stock smaller or equal to 500 ", sales service 2 is set to " amount of money greater than 50,000 yuan or stock greater than 500 ".
Integration for the stock control part; Shown in Fig. 5 C; Need to dispose good depositary management service 1, depositary management service 2 and depositary management service 3 and in the registration management unit, register, and the filtercondition that the filtercondition of depositary management service 1 filtercondition that is set to " book classification equals the literature and history class ", depositary management service 2 is set to " book classification equals the science and engineering class ", depositary management service 3 is set to " book classification equals other classes ".
In addition, in the running of system, can also carry out dynamic management at any time to service registry information, as on-the-fly modify, dynamically increase and dynamically delete etc.
For department with different sales managements or inventory management business demand, only need utilize corresponding service interface encapsulation to realize, and then be registered in the registration management unit and can carry out integratedly with existing system, and do not need to change once more.The adapter of all application systems also all can use original systemic-function with the mode of unanimity.
System's operation phase mainly comprises three phases such as request process, repeating process and response process.The registration management unit will be according to the matching result of service SOAP request with filtercondition, and automatic guide is accomplished the books retrieval to needed sales service completion order processing or needed depositary management service.
Request process receives service SOAP request through the mode of monitoring by the Web service unit, should serve SOAP then and ask to transfer to the registration management unit and handle.For example, the Web service unit listens to service SOAP request, comprises the information of " 200 of 40,000 yuan of the amount of money and stocks " in this service SOAP request.Service SOAP request is according to predefine information, by the adapter generation that is used to send service request; Promptly according to certain business rule; Information such as address of service to being forwarded to are carried out mark through WSDL; Form the information flag item, and with the title of commodity, the amount of money, stock etc. as the business object that changes, formation service marker item.
Repeating process; In the registration management unit, confirm to describe the corresponding with service interface of this service SOAP request according to the content of the Action action node under the Header head node of service SOAP request; And search for the service registry information of the corresponding one or more services of realization of this service interface, promptly handle the service registry information list of one or more services that this service SOAP that will send asks to be realized through the registration management unit searches.For the sales order request, comprise the service registry information of sales service 1, sales service 2 and sales service 3 in the service registry information list that returns through retrieval.For stock's retrieval request, comprise the service registry information of depositary management service 1, depositary management service 2 and depositary management service 3 in the service registry information list that returns through retrieval.For example, search the service registry information of sales service 1, sales service 2 and sales service 3 according to sales order request " 200 of 40,000 yuan of the amount of money and stocks ".
From the service registry information list, read service registry information wherein according to execution sequence, if the service registry information list is empty, expression can't provide the service to this systemic-function, then carries out abnormality processing, and directly request responds to service SOAP.The registration management unit combines the particular content of service SOAP request; Extract concrete business information from the Body body part of service SOAP request; Carry out logical calculated with the filtercondition of predefined one or more services; Logical calculated result that and if only if just allows to be used as this service SOAP processing of request for the realization of genuine one or more services, otherwise all will carry out abnormality processing according to flow process shown in Figure 3.
For the sales order request, shown in Fig. 5 B, when the corresponding search condition that comprises in the service SOAP request during for " amount of money smaller or equal to 50,000 yuan or stock smaller or equal to 500 ", this service SOAP request will only be handled by sales service 1; When the corresponding search condition that comprises in the service SOAP request during for " amount of money greater than 50,000 yuan or stock greater than 500 ", this service SOAP request will be handled by sales service 2 and sales service 3 jointly.
For stock's retrieval request, shown in Fig. 5 C, when the search condition that comprises in the service SOAP request was " book classification equals the literature and history class ", this service SOAP request will be only by depositary management service 1 processing; When the search condition that comprises in the SOAP request was " book classification equals the science and engineering class ", this service SOAP request will be only by depositary management service 2 processing; When the search condition that comprises in the SOAP request is " book classification equals other types ", this service SOAP request will only be served 3 by depositary management and handled.
The registration management unit provides synchronously and asynchronous two kinds of executive modes.Transmit each service SOAP request according to service registry information with a kind of executive mode of appointment, to satisfy the different demands of order or concurrent execution.After executive mode is meant that service SOAP request is forwarded to the realization of a professional service synchronously, need to wait for that corresponding service response result could continue repeating process next time.Executive mode is applicable to the situation that strict logical order is arranged between the service that needs wait service response results or twice forwarding synchronously.Asynchronous executive mode does not need the wait service response results just can continue repeating process next time after being meant that service SOAP request is forwarded to the realization of a professional service.Asynchronous executive mode is applicable to the situation that does not have strict logical order between the service that does not need wait service response results or twice forwarding.According to the different service demand, take the combination of different executive mode or executive mode, can shorten the mutual time on the whole with system.
For the sales order request; Shown in Fig. 5 B; Different executive modes is taked in two kinds of service combinations can dividing according to practical business: synchronous executive mode is taked in the sales service 1 to being used for shops, with provide can be real-time processing shops in the ability of retail transaction; Sales service 2 to being used to examine is taked asynchronous executive mode with sales service 3, to provide the less demanding batch trading ability of real-time.
Transmit operation complete after, the registration management unit judges whether that according to predefined executive mode in the service registry information needs extract service SOAP response immediately and it is transferred to the Web service unit handle.For returning service SOAP response immediately and having the systemic-function of the realization of a plurality of services; Need specify a realization that is used to provide the service of this service SOAP response through the registration management unit, this service SOAP responds and finally returns to adapter through the Web service unit.For the sales order request; When filtercondition " amount of money greater than 50,000 yuan or stock greater than 500 " is satisfied in service SOAP request; Sales service 2 is supported asynchronous disposal ability with sales service 3, and the service SOAP response message of sales service 2 will be chosen as the answer to service SOAP request in the registration management unit according to service registry information.
Response process according to the overall operation situation of system, will be served the SOAP response by the Web service unit and reply to adapter through monitoring the network connection of setting up once more.So far, accomplish the processing of whole service logic.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.

Claims (9)

1. a system that realizes composite services is characterized in that, this system comprises: Web service unit and registration management unit, wherein,
Said Web service unit is used to receive services request;
Said registration management unit is used for searching in the service registry information of storage according to said services request, according to the service registry information list control Web service unit that searches services request is handled;
This system further comprises: the service encapsulates unit is used for according to WSDL WSDL service being encapsulated, and the service registry information of packaged service is registered in the registration management unit; Said service the encapsulation according to WSDL is specially: to each service interface it is encapsulated as one or more services according to applicable cases, each service interface adopts identical platform technology encapsulation or adopts the encapsulation of different platforms technology;
Said registration management unit is further used for said service registry information is stored.
2. system according to claim 1 is characterized in that, said registration management unit is further used for the said service registry information of storage is added, revised or deletes.
3. system according to claim 2 is characterized in that, said registration management unit comprises: information storage module and service publishes interface, or information storage module and registration management module, wherein,
Said information storage module is used to store said service registry information;
Said service publishes interface is used for searching in the said service registry information of storage according to said services request, according to the service registry information list control Web service unit that searches services request is handled;
Said registration management module is used for said service registry information is added, revised or deletes.
4. according to the arbitrary described system of claim 1 to 3, it is characterized in that said service registry information includes but not limited to: WSDL information, execution sequence, filtercondition, executive mode and need the specified services of respond services request.
5. system according to claim 4 is characterized in that, said WSDL information includes but not limited to: the NameSpace of Web service, service name, method name, method parameter and address of service.
6. method that realizes composite services is characterized in that the method includes the steps of:
The services request that A, basis are received is searched in the service registry information of storage, obtains the service registry information list;
The service registry information list that B, basis search is handled services request;
Further comprise before the said steps A: the service encapsulates unit encapsulates service according to WSDL, through the registration management unit service registry information of packaged service is registered and is stored then; Said service the encapsulation according to WSDL is specially: to each service interface it is encapsulated as one or more services according to applicable cases, each service interface adopts identical platform technology encapsulation or adopts the encapsulation of different platforms technology.
7. method according to claim 6 is characterized in that,
Said services request is service Simple Object Access Protocol SOAP request,
Said steps A comprises: the corresponding with service interface of confirming to describe this service SOAP request according to the content of the Action action node under the Header head node of service SOAP request; And search for the service registry information of the corresponding one or more services that realize of this service interface, obtain the service registry information list.
8. method according to claim 6 is characterized in that, said step B comprises:
B1, judge in the service registry information list search whether contain pending service registry information,, then continue execution in step B2,, then continue execution in step B5 if do not contain if contain according to execution sequence;
B2, judge whether this service registry information has been set up filtercondition, if be provided with, then continues execution in step B3,, then continue execution in step B4 if be provided with;
B3, judge whether filtercondition satisfies services request,, then continue execution in step B4,, then return execution in step B1 if do not satisfy if satisfy;
B4, registration service information resolved after, according to the address of service in executive mode of having set and the WSDL information services request is transmitted, judge whether the services request that need make an immediate response then; If desired; Then continue execution in step B5,, then return execution in step B1 if do not need;
B5, services request is responded.
9. method according to claim 8 is characterized in that,
Said services request is service SOAP request,
Judge described in the step B3 whether filtercondition satisfies services request; Comprise: extract concrete business information from the Body body part of service SOAP request; Carry out logical calculated with predefined filtercondition, logical calculated result that and if only if satisfies service SOAP request for true time shows filtercondition; Otherwise do not satisfy.
CN2008102253019A 2008-10-29 2008-10-29 System and method implementing combined service Expired - Fee Related CN101388910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102253019A CN101388910B (en) 2008-10-29 2008-10-29 System and method implementing combined service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102253019A CN101388910B (en) 2008-10-29 2008-10-29 System and method implementing combined service

Publications (2)

Publication Number Publication Date
CN101388910A CN101388910A (en) 2009-03-18
CN101388910B true CN101388910B (en) 2012-05-30

Family

ID=40478082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102253019A Expired - Fee Related CN101388910B (en) 2008-10-29 2008-10-29 System and method implementing combined service

Country Status (1)

Country Link
CN (1) CN101388910B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882073A (en) * 2009-05-04 2010-11-10 谭家辉 Service-oriented application system and communication method, creator and creating method thereof
CN102521661A (en) * 2011-11-29 2012-06-27 曙光信息产业(北京)有限公司 Method capable of extending user application type in cloud computing environment
US10229093B2 (en) 2012-01-31 2019-03-12 Oracle International Corporation Method and system for implementing a common data interface to web services
CN109901936B (en) * 2017-12-11 2021-09-10 航天信息股份有限公司 Service cooperation method and device applied to distributed system
CN108965431B (en) * 2018-07-17 2020-11-10 中国建设银行股份有限公司 Method and device for realizing event-driven architecture by IBM (International Business machines corporation) host
CN113077241B (en) * 2021-04-21 2024-06-18 北京沃东天骏信息技术有限公司 Approval processing method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1671137A (en) * 2004-03-16 2005-09-21 中兴通讯股份有限公司 HTTP based network slave equipment management method and system
CN1852170A (en) * 2006-03-21 2006-10-25 华为技术有限公司 Method and system for realizing apparatus management based on standard platform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1671137A (en) * 2004-03-16 2005-09-21 中兴通讯股份有限公司 HTTP based network slave equipment management method and system
CN1852170A (en) * 2006-03-21 2006-10-25 华为技术有限公司 Method and system for realizing apparatus management based on standard platform

Also Published As

Publication number Publication date
CN101388910A (en) 2009-03-18

Similar Documents

Publication Publication Date Title
CN101388910B (en) System and method implementing combined service
Erasala et al. Enterprise Application Integration in the electronic commerce world
CN101976414B (en) System for realizing massive clothes customization supply chain grid model
US20050182768A1 (en) Web browser as web service server in interaction with business process engine
CN104361424A (en) Master data system integration method based on enterprise service bus (ESB)
CN101667272A (en) Enterprise self-help informationization construction system and method
US20090171758A1 (en) Architectural design for physical inventory application software
CN101917394A (en) Middleware system for sharing data in mobile phone equipment and working method
CN112418784B (en) Service arranging and executing system and method
Kärkkäinen et al. Integrating material and information flows using a distributed peer-to-peer information system
CN110334101A (en) Method, apparatus, system and the server of processing and transmission order data
US20030126043A1 (en) Management of decentralized production and centralized material distribution
US20120166392A1 (en) Registering and Discovering Unique Identifiers
KR102368720B1 (en) Integrated system including new proposal menu and explorer
CN101321076A (en) Wireless check system and method
Min et al. Construction supply chain visualization through web services integration
Yan et al. A web services-enabled B2B integration approach for SMEs
JP5693638B2 (en) Communication relay system with split / combine functions such as XML tags
Liu et al. Information integration: A review of emerging e-business technologies
Moon et al. Transformation algorithms between BPEL4WS and BPML for the executable business process
JP2000353190A (en) Delivery date answering system
KR100955230B1 (en) Methof and system for transmission service of freight information using the web service
CN108242009A (en) A kind of mall system based on the management of B2C stores+ERP rear ends
Yuewei et al. Research and development on lean collaborative software system for sales activity management
Ghannam Business integration unit (BIU) adapter for industrial global value chain on the web

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120530

Termination date: 20151029

EXPY Termination of patent right or utility model