There were a large mount of researches on traditional architecture of distributed systems and current popular middlewares put forward in the dissertation, which gave a deep analysis on their shortcomings in the aspects of reusability, extensibility and maintainability. With the design principals of multilayered distributed systems, a model of general distributed foundation class library with the core of Web Service technology for distributed systems was proposed on Delphi platform, appropriate design principles and methods of improving the performance of Web Services in distributed database systems. To integrate Web Service technology into distributed system foundation class library with interface mechanism, and partition the logic structure of class library into two parts: client and server, it is the design that realized the disconnection of presentation layer and application service layer, which can well bring out the advantage of MVC pattern, provide a clear frame for distributed system development, support the team development effectively, speed up the working efficiency, reduce difficulties of system development, and enhance the safety, stability and maintainability of the system. At the same time, it resolved the insufficiency of VCL Framework on team development on Delphi platform, and assoiled the traditional distributed system's architecture.Compared with the existing technology of components, the model didn't need to install a special agreement between the server and the client, and only need the HTTP and XML for mutual communication. In this way, XML and SOAP protocol in realizing the call of the object service on isomerism platform can be used.In order to enhance the reusability, the extension and the maintainability of the model, the technology was adopted which based on the components development, not only realized the reusing of code and function, but also reduced the duplicated work. Moreover, according to the principles of the module interface and the implementation separating, it was this technology that made the modification and the expansion of system easier.Compared with the traditional system class library, the general distributed system class library based on the above model had more advantages: with the flexibility of Delphi VCL Framework, the customized user components had been designed, which greatly raised the efficiency of development. In packaging the business logic with Web Service in the intermediate layer, it can greatly enhance the stability, flexibility and maintainability of the system. In all, a flexible, robust, and extendable distributed application conveniently can be built up with the distributed foundation class library. |