If you are asking how to set up a timer event handler, then there should be
plenty of examples on the web. Usually though I would call the routine
because I need to, not because I can.
Is something in your client's state changing all the time that calling the
webservice is necessary this frequently? An example of this might be a model
that needs to report home that it is a gps readout and here is where I am....
Is something in the webservice state changing that frequently that you need
to call it so often? An example of this would be that the webservice is the
track of a FedEx package and you are trying to react to where to intercept
your neighbor's goodie bag...
One of those questions should answer how often to call it.
"Gregory A Greenman" wrote:
In article <MP************************@news.verizon.net>, Gregory
A Greenman <se*@sig.belowdeclared...
I have a program that accesses a web service. One of the terms of
use of this web service is that I am not supposed to call it more
than about once per second. My program currently runs much too
fast, so I need to add some sort of timer to bring it into
compliance with their terms. Here's what my program looks like
now:
Sub ProcessData
While MoreData
PrepareWebServiceRequest
SubmitRequest
ProcessWebServiceResponse
End While
End Sub
I need to change this so that SubmitRequest waits until a second
has elapsed since it last ran. Can someone tell me how I should
do this?
I should add that I am using VB in VS.Net 2003.
--
Greg
----
http://www.spencerbooksellers.com
greg00 -at- spencersoft -dot- com