Invoke web services

Discuss RoboTask here
Post Reply
spasobn
Posts: 4
Joined: Wed May 13, 2009 12:17 am

Invoke web services

Post 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.
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Invoke web services

Post 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.
Last edited by Oleg on Wed May 13, 2009 4:44 am, edited 1 time in total.
spasobn
Posts: 4
Joined: Wed May 13, 2009 12:17 am

Invoke web services

Post 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.
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Invoke web services

Post 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)
spasobn
Posts: 4
Joined: Wed May 13, 2009 12:17 am

Invoke web services

Post 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
Post Reply