CN104657124A - Method for integrating PDM system based on XML RPC - Google Patents
Method for integrating PDM system based on XML RPC Download PDFInfo
- Publication number
- CN104657124A CN104657124A CN201310598097.6A CN201310598097A CN104657124A CN 104657124 A CN104657124 A CN 104657124A CN 201310598097 A CN201310598097 A CN 201310598097A CN 104657124 A CN104657124 A CN 104657124A
- Authority
- CN
- China
- Prior art keywords
- function
- pdm system
- client
- service processes
- xml
- 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.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The method for integrating a PDM system based on XML RPC relates to the field of integration of computer application systems and is applicable to the function integration and information integration method of the PDM system. The method comprises the following steps: step 1, a service process is established on the server of the PDM system, a service port is allocated to the service process and the service process is started; when the service process is occupied during start-up, the starting of the service process is failed; a new service port is allocated to the service process till the service process is started successfully; step 2, the service process calls a PDM system interface, establishes a communication link with the PDM system and acquires an access session authorized by the PDM system; step 3, the service process waits a request of a client side; step 4, if the service process receives the requirement from the client side, the service process executes the corresponding function of the PDM system interface and synchronously returns the result to the client end; step 5, the third step and the fourth step are repeated; step 6, the service process receives a shutdown command and shuts down the communication link with the PDM system and then logs out.
Description
Technical field
This method relates to computer application system integration field, is applicable to function i ntegration and the information integration method of PDM system.
Background technology
Current machinery manufacturing industry have employed the data such as design, production, manufacture that PDM system carrys out management enterprise substantially, for realizing sharing and getting through the Digital production line of whole industry design, production, manufacturing process of business data, just need to realize PDM system and other system is carried out integrated.In order to reach PDM system and other system carries out integrated requirement, when designing PDM system integration interface, mainly contain two kinds of design ways: one is that each interface function of the PDM system integration is designed to a batch program, the result of this interface function is preserved in one file by the form of agreement, perform this batch program by the mode of a service routine utility command row, the content of analysis result file obtains returning results of interface function; Another kind is that each interface function of the PDM system integration is designed to a control desk batch program, is caught the character string that control desk shows by a service routine, and the content of resolving the character string that this is caught obtains returning results of interface function.
There are following shortcomings in these two kinds of integrated approaches:
1) when the interface function of each execution PDM system, all need the License obtaining PDM system, in design peak period, exist and do not cause interface function not run because there is no License.
2) interface function of PDM system can only the mode with batch processing on PDM server run, all need the Session obtaining PDM system to set up to be connected with the access of PDM system at every turn, time is general all at 5 ~ 7 seconds, response efficiency is low, and client-side program needs the result to PDM system interface function returns resolve or judge, execution efficiency is not high.
Summary of the invention
Object of the present invention:
In order to overcome the above problems, provide a kind of based on the practical approach of the integrated PDM system of the communication mechanism of XML RPC, the method principle is simple, programming is succinct, improves response speed and the stability of system integration interface.
Technical scheme of the present invention:
For achieving the above object, the present invention proposes a kind of method based on the integrated PDM system of XML RPC, and this method comprises the following steps:
The first step, sets up service processes on the server in PDM system, to this service processes distribution services port, opens this service processes; If this serve port is occupied during unlatching, then this service processes is opened unsuccessfully, redistributes serve port to this service processes, until this service processes is opened successfully;
Second step, this service processes calls PDM system interface, sets up the communication link with PDM system, obtains the access Session authorized through PDM;
3rd step, this service processes waits for the request of client;
4th step, if this service processes receives the request from client, then performs the function of corresponding PDM system interface, synchronously result is returned client;
5th step, repeats the 3rd step and the 4th step;
6th step, service processes receives out code, closes the communication link with PDM system, exits service processes.
Said PDM system interface comprises with minor function: set up the contiguous function of service processes and PDM system, close function, read documentation function, set up file object function, reading object attribute function, write object properties function and download file function.
In the said first step as required, multiple service processes can be set up, and distribute different serve ports to it, perform the first step step by step rapid to the 6th, realize multi-process service.
Advantage of the present invention:
Owing to have employed above scheme, following advantage can be realized:
1) after service processes of the present invention starts, a License of meeting active obtaining PDM system, can always be further interface and use is provided, can not because of design peak period because License quantity causes the non-serviceable situation of interface not, shorten the time that interface obtains the Session of access PDM system simultaneously, improve the time that interface returns results;
2) PDM system interface of the present invention provides result directly to caller, and caller does not need to resolve result, directly can be used, improve interface service efficiency and stability.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of this method.
Embodiment
Based on a method for the integrated PDM system of XML RPC, this method comprises the following steps:
The first step, write PDM system contiguous function, close function, read documentation function, set up file object function, reading object attribute function, write object properties function and download file function, and be encapsulated in service processes program; Setting up Shell script or the service routine of this service processes on the server in PDM system, is this service processes distribution services port, runs this script or service routine opens this service processes; If this serve port is occupied during unlatching, then this service processes is opened unsuccessfully, redistributes serve port to this service processes, until this service processes is opened successfully;
Second step, this service processes calls PDM system interface, first calls contiguous function and call other function again when calling, finally call closedown function, set up the communication link with PDM system, obtain the access Session authorized through PDM, eliminate the tie-time that each interface function calls;
Said PDM system interface comprises with minor function:
Contiguous function: the connection of setting up this service processes and PDM system by calling OpenSession function, during owing to often calling an OpenSession function, service processes can take the License of a PDM system automatically, all need to take License when therefore often can not access a PDM system as original, and the result that this function returns passes to client in the form of an xml, for client directly;
Close function: the connection of setting up this service processes and PDM system by calling CloseSession function, during owing to often calling a CloseSession function, service processes can take the License of a PDM system automatically, all need to take License when often accessing a PDM system therefore can not resembling originally, and the result that this function returns passes to client in the form of an xml, for client directly;
Read documentation function: obtained by the ID of this file in PDM system and read the URL of file, then browse this file by URL; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly;
Set up file object function: provide establishment of standard file object function to by PDM system, by the selected file object type be predefined in PDM, set up corresponding file object, said file object type comprises technological document, test documentation, CO is mono-, EO is mono-, ECO is mono-; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly;
Reading object attribute function: according to the predefined object in PDM system, provide the extraction object properties function of standard by calling PDM system, obtain one or more property values of each object, this property value comprises monodrome or many-valued; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly;
Write object properties function: according to the predefined object in PDM system, write object properties function by what call that PDM system provides standard, the character according to object properties provides monodrome or many-valued as required; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly;
Download file function: the download file function providing standard by calling PDM system, realizes download file from PDM system; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly;
3rd step, this service processes waits for the request of client, and this client can be an application program, a client process or dll dynamic link libraries etc., and this client may operate on server or other computing machine of being connected with this server;
4th step, if this service processes receives the request from client, then performs the function of corresponding PDM system interface, synchronously result is returned client;
5th step, repeats the 3rd step and the 4th step;
6th step, service processes receives out code, calls closedown function, closes the communication link with PDM system, exits service processes.
In the said first step as required, set up multiple service processes, and distribute different serve ports to it, perform the first step step by step rapid to the 6th, realize multi-process service.
Claims (10)
1., based on a method for the integrated PDM system of XML RPC, it is characterized in that, this method comprises the following steps:
The first step, sets up service processes on the server in PDM system, to this service processes distribution services port, opens this service processes; If this serve port is occupied during unlatching, then this service processes is opened unsuccessfully, redistributes serve port to this service processes, until this service processes is opened successfully;
Second step, this service processes calls PDM system interface, sets up the communication link with PDM system, obtains the access Session authorized through PDM;
3rd step, this service processes waits for the request of client;
4th step, if this service processes receives the request from client, then performs the function of corresponding PDM system interface, synchronously result is returned client;
5th step, repeats the 3rd step and the 4th step;
6th step, service processes receives out code, closes the communication link with PDM system, exits service processes.
2. a kind of method based on the integrated PDM system of XML RPC as claimed in claim 1, is characterized in that, in the said first step as required, multiple service processes can be set up, and distribute different serve ports to it, perform the first step step by step rapid to the 6th, realize multi-process service.
3. a kind of method based on the integrated PDM system of XML RPC as claimed in claim 1, it is characterized in that, said PDM system interface comprises with minor function: set up the contiguous function of service processes and PDM system, close function, read documentation function, set up file object function, reading object attribute function, write object properties function and download file function.
4. a kind of method based on the integrated PDM system of XML RPC as claimed in claim 3, it is characterized in that, said contiguous function: the connection of setting up this service processes and PDM system by calling OpenSession function, during owing to often calling an OpenSession function, service processes can take the License of a PDM system automatically, all need to take License when therefore often can not access a PDM system as original, and the result that this function returns passes to client in the form of an xml, for client directly.
5. a kind of method based on the integrated PDM system of XML RPC as claimed in claim 3, it is characterized in that, said closedown function: the connection of setting up this service processes and PDM system by calling CloseSession function, during owing to often calling a CloseSession function, service processes can take the License of a PDM system automatically, all need to take License when often accessing a PDM system therefore can not resembling originally, and the result that this function returns passes to client in the form of an xml, for client directly.
6. a kind of method based on the integrated PDM system of XML RPC as claimed in claim 3, is characterized in that, saidly reads documentation function: obtained by the ID of this file in PDM system and read the URL of file, then browse this file by URL; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly.
7. a kind of method based on the integrated PDM system of XML RPC as claimed in claim 3, it is characterized in that, saidly set up file object function: provide establishment of standard file object function to by PDM system, by the selected file object type be predefined in PDM, set up corresponding file object, said file object type comprises technological document, test documentation, CO is mono-, EO is mono-, ECO is mono-; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly.
8. a kind of method based on the integrated PDM system of XML RPC as claimed in claim 3, it is characterized in that, said reading object attribute function: according to the predefined object in PDM system, the extraction object properties function of standard is provided by calling PDM system, obtain one or more property values of each object, this property value comprises monodrome or many-valued; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly.
9. a kind of method based on the integrated PDM system of XML RPC as claimed in claim 3, it is characterized in that, saidly write object properties function: according to the predefined object in PDM system, write object properties function by what call that PDM system provides standard, the character according to object properties provides monodrome or many-valued as required; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly.
10. a kind of method based on the integrated PDM system of XML RPC as claimed in claim 3, is characterized in that, said download file function: the download file function providing standard by calling PDM system, realizes download file from PDM system; Owing to obtaining License when calling contiguous function, therefore this function does not need to take new License again, and the result that this function returns passes to client in the form of an xml, for client directly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310598097.6A CN104657124A (en) | 2013-11-25 | 2013-11-25 | Method for integrating PDM system based on XML RPC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310598097.6A CN104657124A (en) | 2013-11-25 | 2013-11-25 | Method for integrating PDM system based on XML RPC |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104657124A true CN104657124A (en) | 2015-05-27 |
Family
ID=53248313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310598097.6A Pending CN104657124A (en) | 2013-11-25 | 2013-11-25 | Method for integrating PDM system based on XML RPC |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104657124A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108346031A (en) * | 2018-01-18 | 2018-07-31 | 北京汽车研究总院有限公司 | A kind of data interactive method and system |
CN109284433A (en) * | 2018-09-04 | 2019-01-29 | 西北工业大学 | The information sharing method and device of Product Data Oriented management system |
CN109582651A (en) * | 2018-11-14 | 2019-04-05 | 中国直升机设计研究所 | A kind of UAV TT & C's data processing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0706685B1 (en) * | 1993-06-28 | 1997-12-03 | Dow Benelux N.V. | An integrated plant environment system having a PROGRAM-TO-PROGRAM COMMUNICATION SERVER and method |
CN1567834A (en) * | 2003-06-11 | 2005-01-19 | 华为技术有限公司 | A method for dynamically adjusting system service performance on service management point |
CN102137162A (en) * | 2011-03-22 | 2011-07-27 | 上海交通大学 | CAD (Computer Aided Design) integrated system based on mode of software used as service |
-
2013
- 2013-11-25 CN CN201310598097.6A patent/CN104657124A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0706685B1 (en) * | 1993-06-28 | 1997-12-03 | Dow Benelux N.V. | An integrated plant environment system having a PROGRAM-TO-PROGRAM COMMUNICATION SERVER and method |
CN1567834A (en) * | 2003-06-11 | 2005-01-19 | 华为技术有限公司 | A method for dynamically adjusting system service performance on service management point |
CN102137162A (en) * | 2011-03-22 | 2011-07-27 | 上海交通大学 | CAD (Computer Aided Design) integrated system based on mode of software used as service |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108346031A (en) * | 2018-01-18 | 2018-07-31 | 北京汽车研究总院有限公司 | A kind of data interactive method and system |
CN108346031B (en) * | 2018-01-18 | 2021-03-09 | 北京汽车集团越野车有限公司 | Data interaction method and system |
CN109284433A (en) * | 2018-09-04 | 2019-01-29 | 西北工业大学 | The information sharing method and device of Product Data Oriented management system |
CN109582651A (en) * | 2018-11-14 | 2019-04-05 | 中国直升机设计研究所 | A kind of UAV TT & C's data processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103064738B (en) | The method and system of local application forms embedding browser under Linux | |
CN110704521A (en) | Interface data access method and system | |
CN112162915B (en) | Test data generation method, device, equipment and storage medium | |
CN107491334B (en) | Method for organizing and loading preloaded files | |
CN110895471A (en) | Installation package generation method, device, medium and electronic equipment | |
CN114465937B (en) | Network card testing method, device, server and medium | |
CN110213113B (en) | WEB configuration management method of base station and base station | |
CN110825594B (en) | Data reporting and issuing method, client and server | |
CN112650529A (en) | System and method capable of configuring generation of mobile terminal APP code | |
CN104657124A (en) | Method for integrating PDM system based on XML RPC | |
CN105550179A (en) | Webpage collection method and browser plug-in | |
CN112214250A (en) | Application program assembly loading method and device | |
CN113076095A (en) | Service implementation method and system based on separation of basic and logic functions | |
CN108153745B (en) | Application data calling method and application development system | |
CN114745146A (en) | Skip interception method and device, readable storage medium and equipment | |
CN112559027A (en) | Method, system, device and readable storage medium for creating and managing functional components | |
CN116775613A (en) | Data migration method, device, electronic equipment and computer readable medium | |
CN116737693A (en) | Data migration method and device, electronic equipment and computer readable storage medium | |
CN110825622A (en) | Software testing method, device, equipment and computer readable medium | |
US20120117258A1 (en) | Techniques to deploy and undeploy content to and from web servers | |
CN110673835A (en) | Dynamic assembly type development system, method, computer and computer program | |
CN114356433B (en) | Automatic running method and system for code injection browser plug-in | |
CN106648565B (en) | Request sending method and device | |
US11843679B2 (en) | Automated dependency management based on page components | |
US9189633B2 (en) | Download management method and device based on android browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150527 |