guidamedia2
14 years agoVisitor
Web Service Not Returning Data
I have a simple ruURLTransfer script that returns no data. I am developing for a Roku XD|S running version 3.1 build 1017.
The urls that come with the examples work well, but not my urls. I have tried a myriad of things. Your help is appreciated.
I have tried dynamically generating the XML, and also linked directly to an xml file. I have used my data and data from one of the examples. I have also tried with and without a query string. Nothing works.
Here is my code:
Here is the result
I thought it was my xml, but nothing is returned at all.
Thanks in advance for your help,
Rob
The urls that come with the examples work well, but not my urls. I have tried a myriad of things. Your help is appreciated.
I have tried dynamically generating the XML, and also linked directly to an xml file. I have used my data and data from one of the examples. I have also tried with and without a query string. Nothing works.
Here is my code:
api = CreateObject("roUrlTransfer")
api.setUrl("http://MYSERVER/roku_web_service.php?task=menus")
'api.setUrl("http://MYSERVER/menus.xml")
'debug
print "Sending Request"
content = api.GetToString()
if content = "" then
print "failure reason: " + api.GetFailureReason()
else
print "success: " + content
end if
print "end result"
Here is the result
------ Running ------
SUCCESSFUL
result from the api call:
fail:
end result
I thought it was my xml, but nothing is returned at all.
Thanks in advance for your help,
Rob