CN102223380A - 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
CN102223380A
CN102223380A CN2011101902023A CN201110190202A CN102223380A CN 102223380 A CN102223380 A CN 102223380A CN 2011101902023 A CN2011101902023 A CN 2011101902023A CN 201110190202 A CN201110190202 A CN 201110190202A CN 102223380 A CN102223380 A CN 102223380A
Authority
CN
China
Prior art keywords
file
client
webservice
auto
upgrade
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.)
Granted
Application number
CN2011101902023A
Other languages
Chinese (zh)
Other versions
CN102223380B (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

Images

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 the computer system updating technology, the software product of especially a kind of client-side program complexity of a great variety carries out the framework and the method thereof of auto-update.
Background technology
By the forms application program or the FTP client FTP of CD or installation procedure issue, in edition upgrading,, therefore there is more difficulty in the computer software application owing to need upgrade separately respectively by CD in each client.And the software systems of employing C/S structural design exploitation are 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, and upgrading is convenient separately respectively by CD but this is also than client.This upgrading mode has to upgrade before starting or start installs two kinds of patterns when the next time operation is upgraded promptly in the back, but the client certificate of necessity when using, can not do File Compress before download handles, can not given client end file installation path, can only can not issue the file of disposing other type, as data library file, non-assembly file etc. at the .NET procedure set, therefore lack application flexibility, also exist simultaneously to download to account for the broadband, the shortcoming of taking time and taking local resource when using is installed.
Ftp file server updating pattern once was used as a software automatic updating pattern early, and this pattern is handled the upgrade request of client by the ftp server that sets up upgrading, thereby finishes escalation process.But the upgrade mode of FTP need dispose to a upgrading of each client number of the account, to be connected to ftp server, the software upgrading management of the inconvenient large user's amount of this mode.And FTP is the standard of a public use, therefore, if adopt general transmission method, then will not have good privacy functions for the content that needs the safety encipher transmission.
Summary of the invention
The objective of the invention is in order to solve client under the C/S model inefficient problem of upgrading, provide a kind of C/S system auto-update to handle framework and method.With original Smart Client upgrading, the ftp file server updating is compared has higher upgrading efficient.
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, this method is the method that programming language is write, and deposits in server end, is used to handle the connection request of client and server end and the connection request of handling 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, the file compression method definition comprises:
None: not compressing processing, is the 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.
The document handling method definition then comprises:
Override: cover or increase, no matter whether client exists this document, forces to cover;
NewFile: download this document when client is not deposited, be used for new file publishing;
Version: first comparison program collection, if non-procedure set then 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) after client-side program starts the auto-update module, the upgrade file inventory that the Webservice proxy class detects server end will be called;
(2) the of the same name file relatively local according to the upgrade file inventory determines which file needs down loading updating, and carries out the file download process according to the content of the derived class file of customization;
(3) define according to the upgrade file inventory, use the upgrade file of calling the preservation download under the corresponding document folder of client;
(4) after escalation process is finished, carry out post-processed and withdraw from according to the auto-update module definition.
The auto-update module is according to standard interface provided by the present invention and agreement, carries out customized development at actual conditions.After the auto-update module is finished according to employed standard interface of framework of the present invention and protocol development, together be deployed to client with software main program, demand according to customized development, the startup that the auto-update module is in good time according to demand, by the interface that defines, communicate according to agreement and framework of the present invention, enter the auto-update process, and after upgrading is finished, carry out post-processed according to demand and withdraw from.
In the present invention, the document handling method of derived class file can be specified multiple upgrading mode, and version relatively 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 the server updating lists of documents, then upgrading; If select File covers, then directly replace original client-side program file, if select new add file, then append server and download the new file of coming in corresponding file path back, realize that file upgrades flexibly, updating operation.Compression processing method then can use the GzipStream/DeflateStream compressed file, also can customize the File Compress algorithm of oneself, among the comparatively nervous environment of network broadband, can improve reliability, the fail safe of transmission, save bandwidth, and the physical resource of client, server end.
But lists of documents are given client end file then, installation folder that can given client end file in the upgrade file inventory, each upgrades the file destination of upgrading control that can be careful, and their storage address, accomplish the controllability maximum, ensure system upgrade and renewal under the complex situations.
Framework of the present invention has 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 system, 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 the standard and the occupation mode of each class interface, allow the process of software upgrading can automation, intellectuality and oversimplify.
In the present invention, used and can expand the 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, the rename ancient deed is that new file adds 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 all is 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, the water source then is our upgrade server, the 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. are also, factory, agricultural production, field, ordinary student reviver etc., the present invention all can deliver to the water user from the source with 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 concrete form of service end or client.
Description of drawings
Fig. 1 is the class-hierarchy structure gragh of framework.
Fig. 2 is a frame application flow chart of the present invention.
Embodiment
Embodiment 1: a kind of Design of beneficiation process system, this system is based on the renewal of upgrading of the Client Auto Update framework of Webservice.During upgrading at this, need upgrade to the master program file MainForm.exe of system and a picture file Logo.ico of program.
This framework comprises:
The upgrade file inventory of an establishment;
The 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 the MainForm.exe file is deposited is " UpgradeFiles Program ", and file name is " MainForm.exe "; The file that the 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, the transmission of master program file employing Deflate compress mode is CompressKind=Deflate in the defined particular content, and the upgrading mode is a version contrast UpgradeKind=Version mode.Picture file then adopts self-defining compression transmission means, i.e. CompressKind=Custom, and the upgrading mode is UpgradeKind=Override for covering original.
Webservice service, in order to calling ready server method, and the connection request of handling client.
The concrete steps of this time upgrading comprise:
(1) client user manually started the auto-update module earlier before opening main program, and the auto-update module is then called the corresponding auto-update framework of the present invention.
(2) upgrade framework is linked up by the WebService service with the remote upgrade server behind client terminal start-up.
(3) obtain the upgrade file inventory of remote server, the result is returned client.
(4) client is according to inventory, and the contrast local file need to judge whether upgrading.
(5) judged result is for upgrading to the master program file MainForm.exe of system and a picture file Logo.ico of program.Download corresponding file from the remote upgrade server, method for down loading uses the transmission means of Deflate compression to download master program file MainForm.exe to this locality from server end according to the indication of upgrade file inventory; And the Logo.ico picture file uses self-defining compression transmission means to download to this locality from server end.
(6) after download is finished, the auto-update framework is indicated according to the upgrade file inventory, document handling method according to the inventory requirement, newly downloaded MainForm.exe master program file and original master program file are carried out the version comparison, need then being saved under " UpgradeFiles Program " file of upgrading with filename " MainForm.exe "; Newly downloaded Logo.ico picture file is then covered under " UpgradeFiles Icos " file for " Logo.ico " with file name.
(7) withdraw from upgrade framework, the demand according to the auto-update module that customizes starts a bat order line script, the temporary file that produces in the escalation process is cleared up, and started software main program automatically.
Embodiment 2: a kind of inner TALKER, this program is upgraded based on the Client Auto Update framework of WebService.During upgrading at this, need upgrade to the database file BlackList.mdb of system and a class library file WebTalk.dll of program.
This framework comprises:
The upgrade file inventory of an establishment;
The following form of inventory then:
<?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 and be " Name ", transmission means is " CompressKind ", the 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 the upgrading mode is the Override mode for replacing original, it is CompressKind=None that the class library file adopts the normal transmission mode, the mode of not compressing, the upgrading mode is UpgradeKind=NewFile for file of new adding.
Webservice service, in order to calling ready server method, and the connection request of handling client.
Concrete steps comprise:
(1) client user starts the auto-update module, and the auto-update module is then called the corresponding auto-update framework of the present invention.
(2) upgrade framework is linked up by the WebService service with the remote upgrade server behind client terminal start-up.
(3) obtain the upgrade file inventory of remote server, the result is returned client.
(4) client is according to inventory, and the contrast local file need to judge whether upgrading.
(5) judged result is for upgrading to a class library file WebTalk.dll of data library file BlackList.mdb and program, download corresponding file from the remote upgrade server, method for down loading is according to the indication of upgrade file inventory, use the transmission means of GZip compression, download the BlackList.mdb database file to this locality from server end; Use the normal transmission mode, download WebTalk.dll class library file to this locality from server end.
(6) after download is finished, the auto-update framework is indicated according to the upgrade file inventory, document handling method according to the inventory requirement, newly downloaded BlackList.mdb database file is covered original database file under the respective paths, newly downloaded WebTalk.dll class library file is added under the respective paths.
(7) withdraw from upgrade framework, restart main program, use the program of latest edition.

Claims (4)

1. Client Auto Update framework based on Webservice 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, this method is the method that programming language is write, and deposits in server end, is used to handle the connection request of client and server end and the connection request of handling 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.
2. the application of a kind of Client Auto Update framework based on Webservice as claimed in claim 1 is characterized in that concrete applying step is:
(1) after client-side program starts the auto-update module, the upgrade file inventory that the Webservice proxy class detects server end will be called;
(2) the of the same name file relatively local according to the upgrade file inventory determines which file needs down loading updating, and carries out the file download process according to the content of the derived class file of customization;
(3) define according to the upgrade file inventory, use the upgrade file of calling the preservation download under the corresponding document folder of client;
(4) after escalation process is finished, carry out post-processed and withdraw from according to the auto-update module definition.
3. a kind of Client Auto Update framework based on Webservice as claimed in claim 1 is characterized in that the file compression method definition comprises:
None: not compressing processing, is the 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.
4. a kind of Client Auto Update framework based on Webservice as claimed in claim 1 is characterized in that the document handling method definition then comprises:
Override: cover or increase, no matter whether client exists this document, forces to cover;
NewFile: download this document when client is not deposited, be used for new file publishing;
Version: first comparison program collection, if non-procedure set then comparison document version, otherwise this configuration 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 true CN102223380A (en) 2011-10-19
CN102223380B 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)

Cited By (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
CN111008030A (en) * 2019-12-10 2020-04-14 厦门中控智慧信息技术有限公司 Software online updating system and method based on xml file list and related device
CN111124465A (en) * 2019-11-28 2020-05-08 武汉虹信技术服务有限责任公司 Cross-network C/S program remote upgrading method and system
CN111147272A (en) * 2018-11-06 2020-05-12 厦门雅迅网络股份有限公司 Single server and multi-server operation platform upgrading method
CN111736883A (en) * 2020-05-11 2020-10-02 山东浪潮通软信息科技有限公司 Computer management system hot upgrading method and device based on data delay upgrading

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090198801A1 (en) * 2008-02-06 2009-08-06 Qualcomm Incorporated Self service distribution configuration framework
CN101834845A (en) * 2010-03-26 2010-09-15 南京联创科技集团股份有限公司 SOAP client protocol encapsulating method based on TCP short connection

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090198801A1 (en) * 2008-02-06 2009-08-06 Qualcomm Incorporated Self service distribution configuration framework
CN101834845A (en) * 2010-03-26 2010-09-15 南京联创科技集团股份有限公司 SOAP client protocol encapsulating method based on TCP short connection

Cited By (10)

* 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
CN111124465A (en) * 2019-11-28 2020-05-08 武汉虹信技术服务有限责任公司 Cross-network C/S program remote upgrading method and system
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

Also Published As

Publication number Publication date
CN102223380B (en) 2014-12-10

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
CN102129378B (en) A kind of software menu updating method and device
CN102782650B (en) For the method and system of the configuration of system management agent in managing distributed environment
EP2696532A2 (en) Method, server and system for starting application
CN103841155A (en) Software download method and software download device
CN103095838A (en) Method for upgrading Android smartphone software through downloading incremental upgrade package
CN103353845A (en) Method and device for uploading and pushing script
CN102799473A (en) Method and device for managing third-party applications of intelligent display equipment
CN102682014A (en) Open-type plug-in module management platform implemented on browser and open-type plug-in module management method
CN104657174A (en) Method and device for dynamically realizing application function
CN104063239A (en) Application program update method of mobile terminal, server and client
CN102006333A (en) Method, system and device for installing software component
CN103984573A (en) Installation method and device of application program
CN103019757A (en) Method, device and system for synchronizing software among multiple clients
CN102523268A (en) Client side upgrading method and system
CN101834887B (en) Internet-based method and system for providing remote service for mobile terminal
KR101541112B1 (en) FOTA system and the method
CN107637110B (en) Method for loading configuration files
CN102591678A (en) Method and system for allocating identifier of software component
CN109495433A (en) Data download method and device, storage medium and electronic device
CN102750176A (en) Software upgrading method and device for network TV
CN102231163B (en) System and method for synchronously and preferentially updating specified file
CN101557584A (en) Method for realizing application authority control of mobile terminal and device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141210

Termination date: 20160707