PermaLink Version Checker Web Service05/30/2006 12:11 PM
Written By : Vince SchuurmanCategory : Site update
Location : Oirschot, NL
Chris came up with the idea and sample code for adding a version checker webservice.
This service will enable the projectchefs to add a simple agent to their template which allows users to check whether a newer version is availlable.

I created the webservice today and allthough it's not 100% finished yet, but feel free to check it out:

http://www.openntf.org/projects/pmt.nsf/CheckVersion?WSDL

Example codesnippet to consume this webservice below:

sWSDL = "http://www.openntf.org/projects/pmt.nsf/CheckVersion?WSDL" Set Client = CreateObject("MSSOAP.SoapClient") Call Client.mssoapinit(sWSDL) wsTemplateBuildNumber = Client.getLatestBuildNumber(_ thisProject, thisTemplateBuildNumber, thisTemplateBuildName, thisURL) '=> check if we got a valid response If wsTemplateBuildNumber = 0 Then Msgbox "Unable to determine the latest version" Exit Sub End If '=> compare the buildnumbers If wsTemplateBuildNumber > thisTemplateBuildNumber Then wsTemplateBuildName = Client.GetLatestBuildName(thisProject) Messagebox "There is a newer version available: "_ & wsTemplateBuildName, MB_OK, "Update check" '=> Open the new release document for download. projURL$ = Client.GetLatestURL(thisProject) w.URLOpen(projURL$) Else Messagebox "Your are using the latest version.", MB_OK, "Update check" End If

Note: thisProject is the OpenNTF projectname, theTemplateBuildNumber/name and thisURL are variables for request logging (not implemented yet) and should reflect the current buildname & number
Comments :v

1. Jorge Gonzales08/04/2007 11:51:16 PM
Homepage: http://26





Disclaimer & Copyright
Disclaimer: This site is in no way affiliated, endorsed, sanctioned, supported, nor blessed by Lotus Software nor IBM Corporation, nor any of our past or future clients. The opinions, theories, facts, etc. presented here are our own and in no way represent any official pronouncement by us on behalf of any other entity.

© 2005 OpenNTF - all rights reserved as listed below.

Creative Commons License
Unless otherwise labeled by its originating author, the content found on this site is made available under the terms of an Attribution/NonCommercial/ShareAlike Creative Commons License , with the exception that no rights are granted -- since they are not mine to grant -- in any logo, graphic design, trademarks or trade names, especially the Lotus name.
Blogroll
Search
Contact
By Category
Monthly Archive
Lotus Domino ND7 RSS News Feed RSS Comments Feed Podcast Feed Blog Admin Lotus Geek Open Notes Picture Database OpenNTF CoComment Integrated BlogSphere
Powered by
Blogsphere
Advertisement