1) Client Side VB6 Software
2) Server Side WebServices (This will be a ASPx Page)
1) Client Side VB6 Software
In this there will be one form which will have one Timer Control.
In form load initialize all variables like server address, and timer.
In Timer function you have to ensure that it runs only once every 5 minutes.
Every 5 minutes you would then check list of all applications running in memory
- When you are checking list of application for first time you would make an array with appname, starttime, endtime and LogId.
- When you run for second time, you have to see if same application is running then you have to just update the endtime.
Then upload this to the central server using webservice.
Very Important -
- When you upload to the central server, the Web Service will return back list of same application with LogID added to it.
- The log id that you get from Web Service, you should update to the array so that next time when you send data you also send the logid.
To User Webservice
You have to use the function GetUrlContent or something similar, which is used in Webcafe which basically sends data to a url and gets the data back.
-
2) Server Side Component.
- This should be a ASPX page
- It should accept following parameters
http://server.com/Service.asp?Name= <servicename>&Data=<actual data="">
- It will check "NAME" parameter like request.querystring("NAME") and accordingly call a relevant function.
- If the function is AddData then it means from VB client you are uploading data, and in data parameters you have sent data that you want to upload to system, in which case it will take data and upload to server and return back the LogID