|
-
Aug 7th, 2005, 10:15 PM
#1
Thread Starter
PowerPoster
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?
-
Aug 9th, 2005, 10:01 AM
#2
Retired VBF Adm1nistrator
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]
-
Aug 9th, 2005, 11:18 AM
#3
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.
-
Aug 9th, 2005, 01:17 PM
#4
Thread Starter
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|