Page 1 of 1

Invoke web services

Posted: Wed May 13, 2009 12:25 am
by spasobn
Please,
how to invoke method in web services in cycle mode
(every 5 seconds )ie: http://10.1.1.2/Service.asmx/Test1?a=1&b=2&c=3
but without opening web browser.
I use run program/open document but every 5 sec I get
new tab in Web browser.

Invoke web services

Posted: Wed May 13, 2009 12:43 am
by Oleg
You may use Download File action.
Specify the URL address into "File to download"
The action sends the request to server and downloads HTML code of response page.

Invoke web services

Posted: Wed May 13, 2009 2:12 am
by spasobn
Thanks Oleg for fast reply.
This works fine.
But what if I don't want to save result in Temp folder
({TEMPDIR}) because method don't return any value.
If my method don't retun value, file is 0 KB, but how to
avoid creating this file.

Invoke web services

Posted: Wed May 13, 2009 2:31 am
by Oleg
This action downloads and saves the result anyway.
You may overwrite it every time or remove the file after downloading (see "Delete File" action)

Invoke web services

Posted: Wed May 13, 2009 2:37 am
by spasobn
Thanks Oleg.
And just one more question about Web Services. What if
Web Services are unavailable. How to catch that event
and do something