System integration method and device thereof
[technical field]
The present invention relates to Distributed Calculation, and relate in particular to method and apparatus integrated between heterogeneous system.
[background technology]
Existing system integration technology is conventional following three kinds of modes:
The first is the mode that adopts intermediate database.This mode is arranging an intermediate database layer between two or more systems, after intermediate database layer is responsible for data to extract from source database, imports target database again.But this mode need to provide a kind of data to transform and the foundation structure of transmission, to shield the difference of data model between disparate databases.This is the application integration mode that a kind of risk is lower, and it is the application based on interface level and the conversion of the data between system and transmission mainly.
The second is the mode that adopts interface.It is integrated to what apply that this mode utilizes defined good application interface to realize.This method is widely used in some ERP external members integrated.For example, adopt the method for interface in order to connect application bag and client, to realize integratedly from the adapter of Application and Development by providing, by it, open or privately owned interface extracts information these adapters from apply.Other solution, by the abstract natural quality with shielding adapter of interface, promotes information interaction, thereby realization and application is mutual.
The third is the mode that adopts Web Service.Web service provides an abstract interface, and system can be undertaken mutual rather than come regulation system how to carry out communication with other system by agreement and the self-defining DLL (dynamic link library) of low layer by these interfaces.Therefore, the application in system only need to occur with the form of service.Select to carry out other mutual system with the system that has configured Web service and can find simply those services, and in operation or design with these service bindings.Towards the integration mode of Web service, can realize dynamic application integration shares with large-scale service logic.Web service is based on following standard UDDI, WSDL and SOAP.Those skilled in the art will appreciate that Web service model straightforward, such as there being an application need to call a Web service, it needs this service of location so, creates and send service request, then waits for service response.UDDI has defined issue and has located the mechanism of relevant Web service.WSDL has defined the universal method of the service of describing.SOAP has defined the normal structure of message, comprises request and the response of Web service, and can manage the communication process of receiving-transmitting sides.
According to above-mentioned, although existing system integration mode can solving practical problems, still there are separately some defects.For example, adopt the implementation of intermediate database cannot meet the integrated needs of service logic, and can not carry out real-time, interactive between system.Adopt the mode of interface to lack clear and definite process model and service-oriented frame structure, this makes its application be subject to limitation.Therefore, adopt the mode of interface not to be suitable for complicated process automation and dynamic Service integrated.Adopt the mode of Web Service except will revising internal system applied logic, also will test the application of revising, integrated and reshuffle, job costs are very large.
Therefore need to a kind ofly can realize method and apparatus integrated between system with low-cost, high efficiency.
[summary of the invention]
For addressing the above problem, the invention provides a kind of system integration device, a kind of system integration device, it is characterized in that, this device comprises SOAP server, task delegation manager and method server, and this device is arranged in the first system, wherein, described method server is configured to define the method in this first system, and wherein, the method for described method server definition is the method for the first system inside, described SOAP server is configured to the method based in this first system of Web Service standard definition, and wherein, the method for described SOAP server definition can be called with the form of Web Service by second system, described task delegation manager is configured to set up task delegation relation between the method for described SOAP server definition and the method for described method server definition, when this second system calls the method in described SOAP server, described SOAP server sends to described task delegation manager by call request, described task delegation manager is mapped to this call request according to predefined task delegation relation the method for described method server definition, then call the method defining in the method server corresponding to this call request, Fang Suoshu method server is carried out corresponding to the method for this call request and the result of calling is back to described task delegation manager, described task delegation manager is back to described SOAP server by this result, described SOAP server calls result by this and is back to this second system.
Preferably, described device also comprises Web service center, and described Web service center is configured to manage concentratedly the method for SOAP server definition.
Preferably, described Web service center provides the method description about the method for SOAP server definition with the form of catalogue.
Preferably, described method is described and is comprised method name, method parameter, method return type.
Preferably, described task delegation pass is the mapping relations of the method name between the method for described SOAP server definition and the method for described method server definition.
According to another object of the present invention, a kind of system integration method is also provided, a kind of system integration method, it is characterized in that, by comprising SOAP server, the device of task delegation manager and method server is realized the integrated of the first system and second system, wherein this device is arranged in the first system, the method comprises the following steps: in described method server, define the method in this first system, wherein, the method of described method server definition is the method for the first system inside, method based in this first system of WebService standard definition in described SOAP server, wherein, the method of described SOAP server definition can be called with the form of Web Service by second system, in described task delegation manager, set up the task delegation relation between the method for described SOAP server definition and the method for described method server definition, when this second system calls the method in described SOAP server, described SOAP server sends to described task delegation manager by call request, described task delegation manager is mapped to this call request according to predefined task delegation relation the method for described method server definition, then call the method defining in the method server corresponding to this call request, Fang Suoshu method server is carried out corresponding to the method for this call request and the result of calling is back to described task delegation manager, described task delegation manager is back to described SOAP server by this result, described SOAP server calls result by this and is back to this second system.
The mode that the present invention has adopted Web Service to combine with interface, in the issue of service, the mode that aspect has utilized Web Service such as find, call, when realizing the concrete service logic of service by the mode of interface, realized directly calling original system method, thereby simplified the process realizing, reduced difficulty and the cost realized.
Technical scheme of the present invention has been avoided due to system update or has upgraded calling of other system exerted an influence, and has avoided system to widely apply the change of logic.
Technical scheme of the present invention implements more simply, lower, the integrated efficiency of cost is higher.
[accompanying drawing explanation]
After having read the specific embodiment of the present invention with reference to accompanying drawing, those skilled in the art will become apparent various aspects of the present invention.Those skilled in the art should be understood that: these accompanying drawings are only for coordinating embodiment that technical scheme of the present invention is described, and are not intended to protection scope of the present invention to be construed as limiting.Wherein,
Fig. 1 is according to the schematic diagram of the device of the system integration of the embodiment of the present invention;
Fig. 2 is according to the schematic diagram of the task delegation manager devices of the embodiment of the present invention;
Fig. 3 is the flow chart of the method for the system integration according to an embodiment of the invention.
[embodiment]
With reference to the accompanying drawings, the specific embodiment of the present invention is described in further detail.
Below in conjunction with Fig. 1 and Fig. 2, system integration device of the present invention is described.With reference to figure 1, Fig. 1 is according to the schematic diagram of the device of the system integration of the embodiment of the present invention.As shown in the figure, this device comprises SOAP server, task delegation manager and method server, and this device is arranged in the first system.For example, the first system can be PDM system, second system can be ERP system or MES system wherein.But it will be understood by those of skill in the art that the present invention is not limited to these systems.As shown in the figure, method server can be configured to define the method in the first system, and wherein, the method for method server definition is the method for the first system inside, can directly call for the functional module of the first system inside.SOAP server is configured to the method based in Web Service standard definition the first system, and wherein, the method for SOAP server definition can be called with the form of Web Service by second system.Task delegation manager is configured to set up task delegation relation between the method for SOAP server definition and the method for method server definition.
Fig. 2 is according to the schematic diagram of the task delegation manager devices of the embodiment of the present invention.With reference to figure 2, when second system calls the method in SOAP server, SOAP server sends to task delegation manager by call request, and task delegation manager is mapped to call request according to predefined task delegation relation the method for method server definition.As example, can in task management by delegation device, be provided for defining associated between the method that the method for SOAP server definition defines with method server, for example appoint the title of relationship module can define the name map of the method for SOAP server definition method to method server, so appoint relationship module predefined, to search method in corresponding method server in appointing relation table according to the method name of request call.Then task delegation manager calls the method defining in the method server corresponding to call request.As example, can task processing module be set in task management by delegation device and call for the method for the other side's method server.Those skilled in the art will appreciate that this task processing module is configured to the method for calling in the first system interface is provided.Subsequently, method server is carried out corresponding to the method for call request and the result of calling is back to task delegation manager, and task delegation manager is further configured to execution result to be back to SOAP server.For example, the task processing module in task delegation manager can further be configured to describe and according to the standard of Web service, execution result changed into the discernible form of SOAP server according to the SOAP method in relationship module of appointing.SOAP server will call result and be back to second system.What it will be appreciated by those skilled in the art that is that SOAP server can provide service to second system by Web service adapter.
Thus, by SOAP server, method server and task delegation manager are set in the first system, and the method that the collaborative work by three makes the method for SOAP server definition can be automatically converted to the method server in the first system is carried out.
According to another preferred embodiment, system integration device can also comprise that Web service center is to manage concentratedly Web service, simplification external system is called the first system method, avoids because the first system upgrades or upgrades, calling of external system being exerted an influence.For example, task delegation manager is as intermediate, and external service and the first system internal services of being responsible for SOAP server to provide are set up the relation of appointing.When second system is during to the first system request service, first by the first system in entry corresponding to Web service center finding, the definition according to Web service center for institute's request service, second system is directly set up communication with SOAP server, realizes calling of serving.
Preferably, Web service center is configured to manage concentratedly the method for SOAP server definition.
Preferably, Web service center provides the method description about the method for SOAP server definition with the form of catalogue.Preferably, described method is described and is comprised method name, method parameter, method return type.
Fig. 3 is the flow chart of the method for the system integration according to an embodiment of the invention.This embodiment system integration device above-mentioned according to the present invention realized the renewal of product information in PDM system.
In the first step, the method in definition SOAP server.For example, method name is UpdateWafer, and the function that the method completes is upgrading products information.Set up WSDL to the mapping of UpdateWafer, generate wsdl document, wsdl document comprises altogether the content of WSDL message, WSDL operation, WSDL Binding and tetra-parts of WSDL Service, is defined as follows respectively:
(1) WSDL message
(2) WSDL operation
(3)WSDL?Binding
(4)WSDL?Service
At second step, the service logic of the WaferUpdate method in define method server, its specific implementation step is as follows:
(1) program initialization.First, call the internalist methodology " Start-Session " of PDM system and set up session connection with method server, " Start-Transaction " method of then calling starts the atomicity that affairs guarantee business operation.
(2) detect product object.Internalist methodology " CheckOut-Objects " method of calling PDM system detects the product object that will upgrade.
(3) upgrading products information.Call the base attribute information of internalist methodology " Update-Objects " the upgrading products object of PDM system.
(4) as running succeeded, program calls internalist methodology " Commit-Transaction " the method submission affairs of PDM system, as program, carry out internalist methodology " Rollback-Transaction " the rollback affairs of unsuccessfully calling PDM system, then call internalist methodology " End-Session " disconnection of PDM system and the session connection of method server.
In the 3rd step, in task management by delegation device, set up definition in WaferUpdate method and SOAP service UpdateWafer appoint relation.Such as in configuration, the WaferUpdate method in UpdateWafer method in SOAP server and method server being set up to corresponding relation according to method name.
In the 4th step, Web service is deployed to Web service center.The requestor of Web Services can, by access Web service center, call the service that it needs.Below the example that external system is called:
Above-described embodiment has been set up the integrated framework centered by PDM system by system integration device, realized the seamless integrated of PDM system and other system, shielded the difference between PDM system and other system, and by increasing SOAP server and task delegation administration module, the method of PDM internal system is come out by Web service, for outside other system call.
It will be appreciated by those skilled in the art that, each part and the said method step of said system device of the present invention can realize by computer program.
Above, describe the specific embodiment of the present invention with reference to the accompanying drawings.But those skilled in the art can understand, without departing from the spirit and scope of the present invention in the situation that, can also do various changes and replacement to the specific embodiment of the present invention.These changes and replacement all drop in the claims in the present invention book limited range.