problem connecting with XML data
Posted: Mon Jul 25, 2011 4:56 pm
I want to call a web service with parameters. To do that, I understand I have to edit the file database_xml.php so that it returns the schema and xml data.
The problem is I always get a blank report when trying to set the xml/schema path from the php file, but not when I call the URLs directly from flash.
When using the URLs to the xml/schema from inside the report
it works fine. But I can't set the parameter dynamically...
When using the same URLs from database_xml.php, with
... and ...
I get a blank result.
Any ideas?
The problem is I always get a blank report when trying to set the xml/schema path from the php file, but not when I call the URLs directly from flash.
When using the URLs to the xml/schema from inside the report
Code: Select all
True
True
When using the same URLs from database_xml.php, with
Code: Select all
False
False
Code: Select all
function sti_xml_get_columns($data_path, $schema_path)
{
$data = file_get_contents("http://www.mydomain.com/xml/testXml.xsd");
return $data;
}
function sti_xml_get_data($data_path, $schema_path)
{
$data = file_get_contents("http://www.mydomain.com/xml/testXml.php?myId=1001"); // myId will be dynamic but for testing it is hand coded here
return $data;
}
I get a blank result.
Any ideas?