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 the heterogeneous system.
[background technology]
The existing systems integrated technology is commonly used has following three kinds of modes:
First kind is the mode that adopts intermediate database.This mode is being provided with an intermediate database layer between two or more systems, import target database again after by the intermediate database layer is responsible data being extracted from source database.But this mode need provide the foundation structure of a kind of data conversion and transmission, with the difference of data model between the shielding disparate databases.This is the lower application integration mode of a kind of risk, and it is mainly based on application and the data conversion between system and the transmission of interface level.
Second kind is the mode that adopts interface.It is integrated to what use that this mode utilizes the application interface that has defined to realize.This method has obtained using widely in some ERP external members integrated.For example, adopt the method for interface to use bag and client and realize integratedly from the adapter of Application and Development through providing in order to connect, open or privately owned interface extracts information these adapters from application through it.The other solution promotes information interaction through the abstract natural quality with the shielding adapter of interface, thereby realization and application is mutual.
The third is the mode that adopts Web Service.Web service provides an abstract interface, and system can carry out agreement and self-defining DLL mutual rather than the use low layer through these interfaces and stipulate how system carries out communication with other system.Therefore, the application in the system only need occur with the form of service.Select to carry out other mutual system and can find those services simply with the system that has disposed Web service, and in operation or design with these service bindings.Can realize that towards the integration mode of Web service dynamic application integration is shared 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 services request, wait service response then.UDDI has defined issue and the mechanism of locating relevant Web service.WSDL has defined the universal method of the service of describing.SOAP has defined the normal structure of message, comprises the request and the response of Web service, and can manage the communication process of receiving-transmitting sides.
According to above-mentioned,, still there are some defectives separately though the existing systems integration mode can solve practical problem.For example, adopt the implementation of intermediate database can't satisfy 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 receive limitation.Therefore, it is integrated to adopt the mode of interface not to be suitable for complicated process automation and dynamic Service.The mode that adopts Web Service also will be tested the application of revising, integrated and reshuffle except will revising the internal system applied logic, and job costs are very big.
Therefore needs are a kind of can be with integrated method and apparatus between low cost, high efficiency realization system.
[summary of the invention]
For addressing the above problem, the present 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, this device is set in first system; Wherein, Said method server is configured to define the method in this first system, and wherein, the method for said method server definition is the method for first internal system; Said SOAP server is configured to based on the method in this first system of Web Service standard definition, and wherein, the method for said SOAP server definition can be called with the form of Web Service by second system; Said task delegation manager is configured between the method for the method of said SOAP server definition and the definition of said method server, set up the task delegation relation; When the method in the said SOAP server of this second system call; Said SOAP server sends to said task delegation manager with call request; Said task delegation manager is mapped to this call request according to predefined task delegation relation the method for said method server definition; Call the method that defines in the method server corresponding to this call request then; Fang Suoshu method server is carried out and is back to said task delegation manager corresponding to the method for this call request and the result that will call, and said task delegation manager is back to said SOAP server with this result, and said SOAP server calls the result with this and is back to this second system.
Preferably, said device also comprises the Web service center, and said Web service center is configured to manage concentratedly the method for SOAP server definition.
Preferably, said Web service center provides about the method for the method of SOAP server definition with the form of catalogue and describes.
Preferably, said method is described and is comprised method name, method parameter, method return type.
Preferably, the mapping relations of the method name between the method that defines for the method for said SOAP server definition and said method server of said task delegation relation.
According to another object of the present invention; A kind of system integration method also is provided; A kind of system integration method; It is characterized in that realize the integrated of first system and second system through the device that comprises SOAP server, task delegation manager and method server, wherein this device is set in first system; This method may further comprise the steps: the method in said method server in this first system of definition; Wherein, the method for said method server definition is the method for first internal system, in said SOAP server based on the method in this first system of WebService standard definition; Wherein, The method of said SOAP server definition can be called with the form of Web Service by second system, and the method for in said task delegation manager, setting up said SOAP server definition concerns with task delegation between the method for said method server definition, when the method in the said SOAP server of this second system call; Said SOAP server sends to said task delegation manager with call request; Said task delegation manager is mapped to the method that said method server defines according to predefined task delegation relation with this call request, calls the method that defines in the method server corresponding to this call request then, and the said method server in side is carried out and is back to said task delegation manager corresponding to the method for this call request and the result that will call; Said task delegation manager is back to said SOAP server with this result, and said SOAP server calls the result with 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 the aspect has utilized Web Service such as find, call; The mode through interface then when realizing the concrete service logic of service; Realized directly the calling of original system method, thereby simplified the process that realizes, reduced difficulty and the cost realized.
Technical scheme of the present invention has been avoided because system update or upgrading exert an influence to calling of other system, and has avoided system is widely applied the change of logic.
Technical scheme of the present invention implements more simply, lower, the integrated efficient of cost is higher.
[description of drawings]
With reference to advantages after the embodiment of the present invention, 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 only are used to cooperate embodiment that technical scheme of the present invention is described, and are not to be intended to protection scope of the present invention is constituted restriction.Wherein,
Fig. 1 is the schematic representation of apparatus according to the system integration of the embodiment of the invention;
Fig. 2 is the sketch map according to the task delegation manager devices of the embodiment of the 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, specific embodiments of the invention is done further to describe in 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 the schematic representation of apparatus according to the system integration of the embodiment of the invention.As shown in the figure, this device comprises SOAP server, task delegation manager and method server, and this device is set in first system.For example, first system can be the 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, the method server can be configured to define the method in first system, and wherein, the method for method server definition is the method for first internal system, can supply the functional module of first internal system directly to call.The SOAP server is configured to based on the method in Web Service standard definition first system, and wherein, the method for SOAP server definition can be called with the form of Web Service by second system.The task delegation manager is configured between the method for the method of SOAP server definition and the definition of method server, set up the task delegation relation.
Fig. 2 is the sketch map according to the task delegation manager devices of the embodiment of the invention.With reference to figure 2; When the method in the second system call SOAP server; The SOAP server sends to the task delegation manager with call request, and the task delegation manager is mapped to call request according to predefined task delegation relation the method for method server definition.As an example; Related between the method that can in the task delegation manager, be provided for defining the definition of SOAP server and the method that the method server defines; For example appoint the relationship module can be with the name map of the method for SOAP server definition title to the method for method server definition, so appoint relationship module according to the method name of request call in predefined method of appointing in the method server of searching correspondence in the relation table.The task delegation manager calls the method that defines in the method server corresponding to call request then.As an example, the method that the task processing module is used for the other side's method server can be set in the task delegation manager calls.Those skilled in the art will appreciate that this task processing module is configured to the method for calling in first system interface is provided.Subsequently, the method server is carried out and is back to the task delegation manager corresponding to the method for call request and the result that will call, and the task delegation manager further is configured to execution result is back to the SOAP server.For example, the task processing module in the task delegation manager can further be configured to describe and according to the standard of Web service execution result is changed into the discernible form of SOAP server according to the SOAP method in the relationship module of appointing.The SOAP server will call the result and be back to second system.What it will be appreciated by those skilled in the art that is that the SOAP server can provide service to second system through Web service adapter.
Thus, through SOAP server, method server and task delegation manager are set in first system, and the method that the collaborative work through the three makes the method for SOAP server definition can be automatically converted to the method server in first system is carried out.
According to another preferred embodiment; System integration device can also comprise that the Web service center is so that manage concentratedly Web service; The simplification external system is called first systems approach, avoids because first system update or upgrading exert an influence to calling of external system.For example, the task delegation manager is as intermediate, and the relation of appointing is set up in external service and the service of first internal system being responsible for the SOAP server is provided.When second system when first system request is served, at first by first system in the corresponding clauses and subclauses of Web service center finding, according to of the definition of Web service center for ask service, second system directly and the SOAP server set up communication, what realization was served calls.
Preferably, the Web service center is configured to manage concentratedly the method for SOAP server definition.
Preferably, the Web service center provides the method description about the method for SOAP server definition with the form of catalogue.Preferably, said 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 the PDM system.
In the first step, the method in the definition SOAP server.For example, method name is UpdateWafer, and the function that this method is accomplished is the upgrading products information.Set up the mapping of WSDL to UpdateWafer, generate wsdl document, wsdl document comprises the content of WSDL message, WSDL operation, WSDL Binding and four parts of WSDL Service altogether, and definition is as follows respectively:
(1) WSDL message
(2) WSDL operation
(3)WSDL?Binding
(4)WSDL?Service
In second step, the service logic of the WaferUpdate method in the define method server, its concrete performing step is following:
(1) program initialization.At first, call the internalist methodology " Start-Session " of PDM system and set up session connection with the method server, " Start-Transaction " method of calling then starts the atomicity that affairs guarantee business operation.
(2) detect the product object.Internalist methodology " CheckOut-Objects " method of calling the 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) internalist methodology " Commit-Transaction " the method submission affairs that run succeeded and then call the PDM system like program; Carry out internalist methodology " Rollback-Transaction " the rollback affairs that the PDM system is then called in failure like program, call internalist methodology " End-Session " disconnection of PDM system and the session connection of method server then.
In the 3rd step, in the task delegation manager, set up the relation of appointing of the UpdateWafer that defines in WaferUpdate method and the SOAP service.Such as in configuration, the WaferUpdate method in UpdateWafer method in the SOAP server and the method server being set up corresponding relation according to method name.
In the 4th step, Web service is deployed to the Web service center.The requestor of Web Services can pass through the accessing Web services center, calls the service that it needs.Below be the instance that external system is called:
It is the integrated framework at center that the foregoing description has been set up with the PDM system through system integration device; Realized the seamless integrated of PDM system and other system; Shielded the difference between PDM system and other system; And through increasing SOAP server and task delegation administration module, the method for PDM internal system is come out through Web service, supply other system call of outside.
What it will be appreciated by those skilled in the art that is that each part and the said method step of said system device of the present invention can realize through computer program.
In the preceding text, illustrate and describe embodiment of the present invention.But those skilled in the art can understand, and under situation without departing from the spirit and scope of the present invention, can also specific embodiments of the invention do various changes and replacement.These changes and replacement all drop in claims of the present invention institute restricted portion.