Design for WS Client on a timer

Discussion in 'ASP .Net Web Services' started by Tina, Apr 4, 2007.

  1. Tina

    Tina Guest

    I need to write a client program that wakes up every so often to check local
    databases to see if there is anything to send to web services, check other
    web services to see if there is anything to get, etc.

    My first thought was that I would build this application as a system service
    on server2003. But I was thinking that this functionality could also run in
    our own existing web service hosted by IIS. I could instantiate a timer and
    have methods fire off so often. So my web service would also be a client to
    other web services.

    Is there anything inherently wrong with this design?

    Thanks,
    T
    Tina, Apr 4, 2007
    #1
    1. Advertising

  2. "Tina" <> wrote in message
    news:%...
    >I need to write a client program that wakes up every so often to check
    >local databases to see if there is anything to send to web services, check
    >other web services to see if there is anything to get, etc.
    >
    > My first thought was that I would build this application as a system
    > service on server2003. But I was thinking that this functionality could
    > also run in our own existing web service hosted by IIS. I could
    > instantiate a timer and have methods fire off so often. So my web service
    > would also be a client to other web services.
    >
    > Is there anything inherently wrong with this design?


    An instance of a web service class only exists while there is a request in
    progress. There won't be any instance which could own the timer.

    Use a Windows Service instead.

    John
    John Saunders, Apr 4, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kelsang Wangchuk

    System.Timers.Timer vs. System.Threading.Timer

    Kelsang Wangchuk, Jul 31, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    705
    Kelsang Wangchuk
    Jul 31, 2003
  2. GaryB

    client timer??

    GaryB, Sep 4, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    384
    Steven Cheng[MSFT]
    Sep 4, 2004
  3. Replies:
    1
    Views:
    1,579
    Steve C. Orr [MVP, MCSD]
    Feb 22, 2005
  4. Simon

    page timer, or redirect timer

    Simon, Nov 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    11,187
    Bruce Barker
    Nov 4, 2005
  5. Replies:
    8
    Views:
    481
    Jorgen Grahn
    Jul 15, 2013
Loading...

Share This Page