Results 1 to 2 of 2

Thread: [RESOLVED] [2005] Web Service Async callback question

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Resolved [RESOLVED] [2005] Web Service Async callback question

    I have a webservice that is consumed by a windows forms app.

    Lets say the method in the WS is called Login

    So I call the LoginAsync method that is created by the WS proxy and call it like so

    WS.LoginAsync()

    and I have a delegate sub waiting to pick up the return call.

    This all works 100% fine except for when the WS is not available.

    For example, if I stop IIS, and then run my windows form app, when it tries to call the method, it simply never returns to the callback. Even if I set a timeout.

    Now the only thing I can think of is using a form timer, however that seems kinda stupid, as I would think the async WS calls would have a way of handling a WS not being available.

    If I don't use the Async call, and just the regular .login call, I will get an exception if the WS is not available. This is not the case though with the async call.

    Any ideas?

  2. #2

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Web Service Async callback question

    Nevermind... I figured out the one routine that I was testing I forgot to setup the callback function..

    In my testing project I had. When I went to the testing project to troubleshoot the issue, it worked as expected. That lead me to look back at my real app, and see my mistake... I think its time to go home

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width