CN102223380B - Client terminal automatic updating frame based on Webservice and application thereof - Google Patents

Client terminal automatic updating frame based on Webservice and application thereof Download PDF

Info

Publication number
CN102223380B
CN102223380B CN201110190202.3A CN201110190202A CN102223380B CN 102223380 B CN102223380 B CN 102223380B CN 201110190202 A CN201110190202 A CN 201110190202A CN 102223380 B CN102223380 B CN 102223380B
Authority
CN
China
Prior art keywords
file
client
upgrade
auto
webservice
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
CN201110190202.3A
Other languages
Chinese (zh)
Other versions
CN102223380A (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.)
Kunming Engineering & Research Institute Of Nonferrous Metallurgy Co Ltd
KUNMING BOERRUI TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
Kunming Engineering & Research Institute Of Nonferrous Metallurgy Co Ltd
KUNMING BOERRUI TECHNOLOGY DEVELOPMENT 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 Kunming Engineering & Research Institute Of Nonferrous Metallurgy Co Ltd, KUNMING BOERRUI TECHNOLOGY DEVELOPMENT Co Ltd filed Critical Kunming Engineering & Research Institute Of Nonferrous Metallurgy Co Ltd
Priority to CN201110190202.3A priority Critical patent/CN102223380B/en
Publication of CN102223380A publication Critical patent/CN102223380A/en
Application granted granted Critical
Publication of CN102223380B publication Critical patent/CN102223380B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technology of computer system updating, in particular to a client terminal automatic updating frame based on a Webservice and application thereof, which are used for automatically updating various and complex software products of a client terminal program. The frame disclosed by the invention comprises a customized derived file meeting requirements, the Webservice and a compiled updating file list. The frame provided by the invention uses an independent application frame structure, the independent Webservice updating file server, an independent log authentication mode and independent client terminal application, and can be applied to a variety of client terminal application systems.

Description

A kind of Client Auto Update framework and application thereof of service Network Based
Technical field
The present invention relates to computer system updating technology, the software product of especially a kind of client-side program complexity of a great variety carries out framework and the method thereof of auto-update.
Background technology
In computer software application, by window application or the FTP client FTP of CD or installation procedure issue, in edition upgrading, because needs are upgraded separately respectively by CD in each client, therefore there is more difficulty.And adopt the software systems of C/S structural design exploitation with respect to the program of installing by CD, because Microsoft provides Smart Client technology on its .NET platform, even if therefore when client-side program upgrades, server end also needs to go to each user's loom to dispose, but this also distinguishes upgrading facility separately than client by CD.This upgrading mode have upgrade before starting or start after two kinds of patterns are installed while upgrading next time operation, but the client certificate of necessity while using, can not before download, do compressing file processes, can not given client end file installation path, can only, for .NET procedure set, can not issue the file of disposing other type, as database file, non-assembly file etc., therefore lack application flexibility, also exist download to account for broadband simultaneously, the shortcoming that takies local resource when taking time and using is installed.
Ftp file server updating pattern, as a software automatic updating pattern early, was once used, and this pattern is processed the upgrade request of client by setting up the ftp server of upgrading, thereby completes escalation process.But the upgrade mode of FTP need to configure to upgrading account of each client, to be connected to ftp server, the software upgrading management of the inconvenient large user's amount of this mode.And FTP is an open standard of using, therefore, if adopt general transmission method, for needing the content of safety encipher transmission will not have good privacy functions.
Summary of the invention
The object of the invention is, in order to solve client under the C/S model inefficient problem of upgrading, provides a kind of C/S system auto-update to process framework and method.With original Smart Client upgrading, ftp file server updating is compared has higher upgrading efficiency.
A kind of Client Auto Update framework based on Webservice of the present invention, is characterized in that this framework comprises:
The derived class file of a customization, comprises compressed file method and document handling method;
A Webservice service, in order to call ready server method, the method is the method that programming language is write, and deposits in server end, for the treatment of the connection request of client and server and the connection request of processing client;
The upgrade file inventory of an establishment, file is deposited in server end, upgrading content, the file that file is deposited and the title of these files of definition server end.
Wherein, file compression method definition comprises:
None: not compressing processing, is acquiescence mode;
GZip: use the GZipCompress assembly compression of .NET;
Deflate: use the compression of DeflateCompress assembly;
Custom: the data compressing method that uses customization.
Document handling method definition comprises:
Override: cover or increase, no matter whether client exists this document, forces to cover;
NewFile: download this document when client is not deposited, for new file publishing;
Version: first comparison program collection, if non-procedure set, comparison document version, otherwise this configuration item is invalid, is acquiescence upgrading mode.
The concrete applying step of framework of the present invention is:
(1) client-side program starts after auto-update module, will call the upgrade file inventory of Webservice proxy class detection server end;
(2) the of the same name file more local according to upgrade file inventory, determines which file needs down loading updating, and carries out file download process according to the content of the derived class file of customization;
(3) according to upgrade file inventory, define, the upgrade file that uses another name to preserve download arrives under the corresponding document folder of client;
(4), after escalation process completes, according to auto-update module definition, carry out post-processed and exit.
Auto-update module is according to standard interface provided by the present invention and agreement, for actual conditions, carries out customized development.After the standard interface that auto-update module is used according to framework of the present invention and protocol development complete, together be deployed to client with software main program, according to the demand of customized development, the in good time startup according to demand of auto-update module, by the interface defining, according to agreement and framework of the present invention, communicate, enter auto-update process, and after upgrading completes, carry out according to demand post-processed and exit.
In the present invention, the document handling method of derived class file can be specified multiple upgrading mode, and version comparison comprises that procedure set version or FileVersion, file cover or new add file.If source file or procedure set version are lower than the version in server updating lists of documents, upgrading; If select File covers, directly replace original client-side program file, if select new add file, after corresponding file path, append server and download the new file of coming, realize file update, updating operation flexibly.Compression processing method can be used GzipStream/DeflateStream compressed file, also the compressing file algorithm of oneself can be customized, among the comparatively nervous environment of network broadband, reliability, the fail safe of transmission can be improved, save bandwidth, and the physical resource of client, server end.
Lists of documents can given client end file, installation folder that can given client end file in upgrade file inventory, each upgrades the file destination of upgrading control that can be careful, and their storage address, accomplish that controllability is maximum, ensure system upgrade and renewal under complex situations.
Framework of the present invention has been used the application framework structure of independence, independently based on Webservice upgrade file server, independently login authentication mode, client application type independently, can be applied to various types of client application systems, including but not limited to desktop client end application system, mobile device client application system and embedded client application system.The present invention is intended to set up standard set, complete framework for software automatic updating, this framework specification standard and the occupation mode of each class interface, allow the process of software upgrading can automation, intellectuality and simplify.
In the present invention, used and can expand reading and writing of files method, by rewriteeing server end and client approach, can expand the read-write behavior of upgrade file, as new folder, rename ancient deed is that new file adds the operations such as read only attribute.And used and can expand compression processing method, the reading and writing of files method of compression method class is all protected virtual, all can rewrite.Can redefine or newly-increased compression algorithm according to client's demand, adapt to the demand of all kinds of business scenarios, keep flexibility of the present invention and extensibility.
Framework of the present invention is as a water supply piping system, water source is our upgrade server, water user is exactly our client, no matter be which type of water source, which type of water user no matter reservoir water, river, underground water, rainwater etc., be also, factory, agricultural production, field, ordinary student reviver etc., the present invention all can deliver to water user from source by water, and it does not rely on water source or water user.The present invention is a bridge block in the middle of service end and client, the content no matter service end provides is any type, no matter how client is used, and the present invention all can build channel easily for communication between the two, does not rely on the form that service end or client are concrete.
Accompanying drawing explanation
Fig. 1 is the class-hierarchy structure gragh of framework.
Fig. 2 is frame application flow chart of the present invention.
Embodiment
Embodiment 1: a kind of Design of beneficiation process system, the renewal of upgrading of the Client Auto Update framework of this system based on Webservice.During upgrading at this, need to upgrade to a picture file Logo.ico of the master program file MainForm.exe of system and program.
This framework comprises:
The upgrade file inventory of an establishment;
Inventory form is as follows:
< xml version="1.0" encoding="utf-8" >
<FileList>
<File Name = "\UpgradeFiles\Program\MainForm.exe" CompressKind = "Delflate" UpgradeKind = "Version" />
<File Name = "\UpgradeFiles\Icos\Logo.ico" CompressKind = "Custom" UpgradeKind = "Override" />
</FileList>
In inventory, defined file path " Name ", transmission means " CompressKind ", upgrading mode " UpgradeKind ".The file that MainForm.exe file is deposited is " UpgradeFiles Program ", and file name is " MainForm.exe "; The file that Logo.ico file is deposited is " UpgradeFiles Icos ", and file name is " Logo.ico ".
The derived class file of satisfying the demand of a customization, in defined particular content, the transmission of master program file employing Deflate compress mode is CompressKind=Deflate, and upgrading mode is version contrast UpgradeKind=Version mode.Picture file adopts self-defining compression transmission means, i.e. CompressKind=Custom, and upgrading mode is UpgradeKind=Override for covering original.
A Webservice service, in order to call ready server method, and the connection request of processing client.
The concrete steps of this upgrading comprise:
(1) client user, before opening main program, first manually boots auto-update module, and auto-update module is called the corresponding auto-update framework of the present invention.
(2) upgrade framework, after client terminal start-up, is served and is linked up by WebService with remote upgrade server.
(3) obtain the upgrade file inventory of remote server, result is returned to client.
(4) client is according to inventory, and contrast local file, judges whether to need upgrading.
(5) judgment result is that and need to upgrade to a picture file Logo.ico of the master program file MainForm.exe of system and program.From remote upgrade server, download corresponding file, method for down loading, according to the indication of upgrade file inventory, is used the transmission means of Deflate compression to download master program file MainForm.exe to this locality from server end; And Logo.ico picture file is used self-defining compression transmission means to download to this locality from server end.
(6) after having downloaded, auto-update framework is indicated according to upgrade file inventory, the document handling method requiring according to inventory, newly downloaded MainForm.exe master program file and original master program file are carried out to version and compare, need being saved under " UpgradeFiles Program " file with filename " MainForm.exe " of upgrading; Newly downloaded Logo.ico picture file be take to file name to be covered as " Logo.ico " under " UpgradeFiles Icos " file.
(7) exit upgrade framework, the demand according to the auto-update module of customization, starts a bat order line script, the temporary file producing is cleared up, and automatically start software main program in escalation process.
Embodiment 2: a kind of inner TALKER, the Client Auto Update framework of this program based on WebService upgraded.During upgrading at this, need to upgrade to a class library file WebTalk.dll of the database file BlackList.mdb of system and program.
This framework comprises:
The upgrade file inventory of an establishment;
The following form of inventory:
< xml version="1.0" encoding="utf-8" >
<FileList>
<File Name = "\UpgradeFiles\BlackList.mdb" CompressKind = "GZip" UpgradeKind = "Override" />
<File Name = "\UpgradeFiles\WebTalk.dll" CompressKind = "None" UpgradeKind = "NewFile" />
</FileList>
In inventory, defined file path for " Name ", transmission means is " CompressKind ", upgrading mode is " UpgradeKind ", the file and the title that do not have defined file to deposit.
The derived class file of satisfying the demand of a customization, comprises compression processing method and document handling method.It is ompressKind=Gzip mode that database file adopts the transmission of GZip compress mode, and upgrading mode is Override mode for replacing original, it is CompressKind=None that class library file adopts normal transmission mode, the mode of not compressing, upgrading mode is UpgradeKind=NewFile for newly adding a file.
A Webservice service, in order to call ready server method, and the connection request of processing client.
Concrete steps comprise:
(1) client user starts auto-update module, and auto-update module is called the corresponding auto-update framework of the present invention.
(2) upgrade framework, after client terminal start-up, is served and is linked up by WebService with remote upgrade server.
(3) obtain the upgrade file inventory of remote server, result is returned to client.
(4) client is according to inventory, and contrast local file, judges whether to need upgrading.
(5) judgment result is that and need to upgrade to database file BlackList.mdb and program class library file WebTalk.dll, from remote upgrade server, download corresponding file, method for down loading is according to the indication of upgrade file inventory, use the transmission means of GZip compression, from server end, download BlackList.mdb database file to this locality; Use normal transmission mode, from server end, download WebTalk.dll class library file to this locality.
(6) after having downloaded, auto-update framework is indicated according to upgrade file inventory, the document handling method requiring according to inventory, newly downloaded BlackList.mdb database file is covered to original database file under respective paths, newly downloaded WebTalk.dll class library file is added under respective paths.
(7) exit upgrade framework, restart main program, use the program of latest edition.

Claims (3)

1. a Client Auto Update method for service Network Based, is characterized in that the method comprises:
(1) client-side program starts after auto-update module, auto-update module is called corresponding auto-update framework, upgrade framework is after client terminal start-up, serve and link up by Webservice with remote upgrade server, will call the upgrade file inventory of Webservice proxy class detection server end; Described Webservice service, in order to call ready server method, the method is the method that programming language is write, and deposits in server end, for the treatment of the connection request of client;
(2) the of the same name file more local according to upgrade file inventory, determines which file needs down loading updating, and carries out file download process according to the content of the derived class file of customization; The derived class file of described customization, comprises compressed file method and document handling method;
(3), according to the upgrading content of the defined server end of upgrade file inventory of establishment, file that file is deposited and the title of these files, the upgrade file that uses another name to preserve to download is under the corresponding document folder of client; The file of described upgrade file inventory is deposited in server end.
(4), after escalation process completes, according to auto-update module definition, carry out post-processed and exit.
2. the Client Auto Update method of a kind of service Network Based as claimed in claim 1, is characterized in that the definition of described compressed file method comprises:
None: not compressing processing, is acquiescence mode;
GZip: use the GZipCompress assembly compression of .NET;
Deflate: use the compression of DeflateCompress assembly;
Custom: the data compressing method that uses customization.
3. the Client Auto Update method of a kind of service Network Based as claimed in claim 1, is characterized in that the definition of document handling method comprises:
Override: cover or increase, no matter whether client exists this document, forces to cover;
NewFile: download this document when client does not exist this document, for new file publishing;
Version: first comparison program collection, if there is no procedure set, comparison document version, otherwise this Version defined item is invalid, is acquiescence upgrading mode.
CN201110190202.3A 2011-07-07 2011-07-07 Client terminal automatic updating frame based on Webservice and application thereof Expired - Fee Related CN102223380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110190202.3A CN102223380B (en) 2011-07-07 2011-07-07 Client terminal automatic updating frame based on Webservice and application thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110190202.3A CN102223380B (en) 2011-07-07 2011-07-07 Client terminal automatic updating frame based on Webservice and application thereof

Publications (2)

Publication Number Publication Date
CN102223380A CN102223380A (en) 2011-10-19
CN102223380B true CN102223380B (en) 2014-12-10

Family

ID=44779808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110190202.3A Expired - Fee Related CN102223380B (en) 2011-07-07 2011-07-07 Client terminal automatic updating frame based on Webservice and application thereof

Country Status (1)

Country Link
CN (1) CN102223380B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541593A (en) * 2011-12-20 2012-07-04 福建星网视易信息系统有限公司 Rapid comparison method of versions of remote files
CN104516877A (en) * 2013-09-26 2015-04-15 江苏智软信息科技有限公司 WEB application quickly releasing method
CN105786532A (en) * 2014-12-19 2016-07-20 江苏融成嘉益信息科技有限公司 Web Service-based version updating method
CN106201571A (en) * 2016-06-23 2016-12-07 浪潮电子信息产业股份有限公司 A kind of method unifying updating client SSR software based on centralized management platform
CN110134408A (en) * 2018-02-08 2019-08-16 鼎捷软件股份有限公司 Data deployment method and data deployment system
CN111147272A (en) * 2018-11-06 2020-05-12 厦门雅迅网络股份有限公司 Single server and multi-server operation platform upgrading method
CN111124465B (en) * 2019-11-28 2023-06-20 武汉虹信技术服务有限责任公司 Cross-network C/S program remote upgrading method and system
CN111008030A (en) * 2019-12-10 2020-04-14 厦门中控智慧信息技术有限公司 Software online updating system and method based on xml file list and related device
CN111736883A (en) * 2020-05-11 2020-10-02 山东浪潮通软信息科技有限公司 Computer management system hot upgrading method and device based on data delay upgrading

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834845A (en) * 2010-03-26 2010-09-15 南京联创科技集团股份有限公司 SOAP client protocol encapsulating method based on TCP short connection

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8060585B2 (en) * 2008-02-06 2011-11-15 Qualcomm Incorporated Self service distribution configuration framework

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834845A (en) * 2010-03-26 2010-09-15 南京联创科技集团股份有限公司 SOAP client protocol encapsulating method based on TCP short connection

Also Published As

Publication number Publication date
CN102223380A (en) 2011-10-19

Similar Documents

Publication Publication Date Title
CN102223380B (en) Client terminal automatic updating frame based on Webservice and application thereof
CN102622241B (en) A kind of method for upgrading software and device
US9116776B2 (en) Updating software objects
CN103309694B (en) Application program update method and apparatus
CN102799473B (en) A kind of method and device managing intelligent display device third-party application
CN103095838A (en) Method for upgrading Android smartphone software through downloading incremental upgrade package
CN103841155A (en) Software download method and software download device
CN101241364B (en) Local controller, remote management controller and method for automatically updating the local controller of an air conditioner system
EP2696532A2 (en) Method, server and system for starting application
KR101198583B1 (en) Apparatus of multimedia middle ware using metadata and management method and storing medium thereof
CN102682014A (en) Open-type plug-in module management platform implemented on browser and open-type plug-in module management method
CN101834887B (en) Internet-based method and system for providing remote service for mobile terminal
CN104063239A (en) Application program update method of mobile terminal, server and client
CN103353845A (en) Method and device for uploading and pushing script
CN105704234A (en) Control method and apparatus for intelligent device
CN103577235A (en) Software deploying method, deploying server, computer to be deployed and system
CN103019757A (en) Method, device and system for synchronizing software among multiple clients
CN105808273B (en) Method for upgrading software and software updating apparatus
KR101541112B1 (en) FOTA system and the method
CN107637110B (en) Method for loading configuration files
CN105824722A (en) Backup restoring system for computer cloud
CN102750176A (en) Software upgrading method and device for network TV
US20150113034A1 (en) Information communication system and information conversion method
CN102722392A (en) Method and system for software operation
CN105468422A (en) Method and system for optimizing operation system

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: 20141210

Termination date: 20160707

CF01 Termination of patent right due to non-payment of annual fee