problem connecting with XML data

Stimulsoft Reports.PHP discussion
Post Reply
pier
Posts: 27
Joined: Wed Jun 15, 2011 4:58 pm
Location: Mexico

problem connecting with XML data

Post 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?
pier
Posts: 27
Joined: Wed Jun 15, 2011 4:58 pm
Location: Mexico

problem connecting with XML data

Post 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.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

problem connecting with XML data

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

Attachments
1191.LatestVersion.zip
(3.79 MiB) Downloaded 254 times
pier
Posts: 27
Joined: Wed Jun 15, 2011 4:58 pm
Location: Mexico

problem connecting with XML data

Post by pier »

Thanks Vladimir!

It works now!
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

problem connecting with XML data

Post by Andrew »

Hello,

Great!

Post Reply