I am wanting to call or open a URL which is a Web Service and have the XML that results from the call written to a file.
How do I do this with RoboTask?
The example I have is a web service that gets TV Guides.
I want to call the Web Service on a daily schedule and retrieve the XML results of all the programs on TV.
Currently when I open a URL with RoboTask it launches my default browser.
Is there a way to just run the URL and have the resulting XML from the call saved locally to a file?
Writing XML from a WebService to file
-
- Posts: 51
- Joined: Wed Oct 01, 2003 4:55 pm
- Contact:
Writing XML from a WebService to file
Brian, please try to use the Internet->Download Files action.
-
- Posts: 46
- Joined: Tue Apr 27, 2004 7:50 pm
Writing XML from a WebService to file
I have included my RoboTask below and the error message that I get when I run it. This URL when run in a browser returns an XML document but the RoboTask is trying to just download the URL where I think what I need is the URL to be called and the result that would normally be POSTED back to the browser to be saved as a local file.
ERROR Message:
I: 05/05/2004 08:14:21: ****** Starting task... ******************
I: 05/05/2004 08:14:21: Task started with priority: Normal
I: 05/05/2004 08:14:21: Executing "Download files and save in "C:\TEMP""
I: 05/05/2004 08:14:21: Downloadind http://d1.com.au/D1xmltv.asmx/GetFreeCh ... ion=sydney ...
E: 05/05/2004 08:14:22: Cannot create file "C:\TEMP\GetFreeChannels?region=sydney". The filename, directory name, or volume label syntax is incorrect (file GetFreeChannels?region=sydney)
I: 05/05/2004 08:14:22: 0 files downloaded
E: 05/05/2004 08:14:22: Task is aborted
E: 05/05/2004 08:14:22: Task executed abnormally
;********************
; RoboTask Task file
; Do not edit!
;********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1035358726
ExternalName=STRING|"Task2"
Hide=INTEGER|0
ID=INTEGER|439917479
Name=STRING|"Download TV Guide"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
[Actions\Action1]
ActionID=STRING|"A_INET_DOWNLOAD"
Enabled=INTEGER|-1
Name=STRING|"Download files and save in ""C:\TEMP"""
Params=FOLDER
[Actions\Action1\Params]
action=STRING|"0"
file0=STRING|"http://d1.com.au/D1xmltv.asmx/GetFreeChannels? region=sydney"
filecount=STRING|"1"
savedir=STRING|"C:\TEMP"
ERROR Message:
I: 05/05/2004 08:14:21: ****** Starting task... ******************
I: 05/05/2004 08:14:21: Task started with priority: Normal
I: 05/05/2004 08:14:21: Executing "Download files and save in "C:\TEMP""
I: 05/05/2004 08:14:21: Downloadind http://d1.com.au/D1xmltv.asmx/GetFreeCh ... ion=sydney ...
E: 05/05/2004 08:14:22: Cannot create file "C:\TEMP\GetFreeChannels?region=sydney". The filename, directory name, or volume label syntax is incorrect (file GetFreeChannels?region=sydney)
I: 05/05/2004 08:14:22: 0 files downloaded
E: 05/05/2004 08:14:22: Task is aborted
E: 05/05/2004 08:14:22: Task executed abnormally
;********************
; RoboTask Task file
; Do not edit!
;********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1035358726
ExternalName=STRING|"Task2"
Hide=INTEGER|0
ID=INTEGER|439917479
Name=STRING|"Download TV Guide"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
[Actions\Action1]
ActionID=STRING|"A_INET_DOWNLOAD"
Enabled=INTEGER|-1
Name=STRING|"Download files and save in ""C:\TEMP"""
Params=FOLDER
[Actions\Action1\Params]
action=STRING|"0"
file0=STRING|"http://d1.com.au/D1xmltv.asmx/GetFreeChannels? region=sydney"
filecount=STRING|"1"
savedir=STRING|"C:\TEMP"