Results 1 to 4 of 4

Thread: WebService Q

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    WebService Q

    Hi there.

    I have made a webservice which basically tells the caller if an update is available and sets a global value to the link of the file if an update is available

    the caller end, the code basically is:

    (globally created the webservice method:

    Webservice.something = new Webservice() etc...)

    Then to check if there is an update:

    something.CheckUpdate(1);

    at this point the webservice checks for some stuff, returns true if there is an update else false if there is no update

    client (caller) side: if its true then it calls another method to the webservice to get the link to the file (that link to the file has been set by the global variable on the webservice end)

    thing is, when I do:

    something.GetLinkToFile()

    I get returned nothing, just blank string. Any ideas?

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: WebService Q

    How about you return an empty string from CheckUpdate if there is no update, otherwise returns the link to the file if there is.
    This would reduce the overhead in serialisation too
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: WebService Q

    That is a good suggestion. Also, we'd need to see the code in GetLinkToFile and how you're calling it to see what's wrong. I suggest implementing plenderj's suggestion first.

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: WebService Q

    well yeh thats what I did straight after posting this topic... and it works fine its just annoying... you would prefer to do a check to see if there is an update and IF SO then get the link....

    but yeh

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