Page 1 of 1

problem connecting with XML data

Posted: Mon Jul 25, 2011 4:56 pm
by pier
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

Code: Select all

True
True
it works fine. But I can't set the parameter dynamically...


When using the same URLs from database_xml.php, with

Code: Select all

False
False
... and ...

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?

problem connecting with XML data

Posted: Mon Jul 25, 2011 6:24 pm
by pier
I've downloaded the latest version but I'm having the same problem.

Stimulsoft Reports.Fx for PHP 2011.07.21

It seems the problem is that when FlexAdapterXmlData is sert to False, the functions sti_xml_get_data and sti_xml_get_columns in database_xml.php are never read.

problem connecting with XML data

Posted: Tue Jul 26, 2011 3:00 am
by Vladimir
Hello, Pier

We tested work of this mode on the latest version and found no problems. In the attached archive, we will send you the latest version, which we tested. Please update all files on your server.

Thank you.


problem connecting with XML data

Posted: Tue Jul 26, 2011 10:11 am
by pier
Thanks Vladimir!

It works now!

problem connecting with XML data

Posted: Tue Jul 26, 2011 11:50 pm
by Andrew
Hello,

Great!