XML Import-Export Forum :: XML recordset from the same website

This thread was displayed: 0 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
lazlo
04-11-2007 23:10:39 GMT +2

HI,

two questions:

I have created an xml export (in browser)

http://www.divinegardencompany.com/001.php

it works fine

if I try and import it to a different php page at the same domain

I get an error

http://www.divinegardencompany.com/Untitled-4.php

IF I try exactly the same exercise of importing but at a different domain, it works fine

http://www.theredworks.net/test.php

Q1

is it possible/how can I import the XML back into the same domain, I am trying to get ready for the SPRY feature of DWCS2, so I need a solution to take data from a mysql db, export it to XML so I can create the correct recordsets for SPRY

Q2

How can I change the container XML tag of the exported items from <export> to something else, e.g <names>

Many Thanks

 

 

 

 

 

 

 

Back | Reply | Quote | Top
Razvan Racasanu[InterAKT]Adobe Systems Romania staff
04-12-2007 16:40:18 GMT +2

Hello,

When trying to import the XML, the function fopen is used to read the data. For this to work, allow_url_fopen needs to be enabled. Since this is working on the other domain, you could try there the test to read from the same domain as it should work.

For changing the name of the root element, you need to edit the file /includes/xml/XML_Export.class.php and replace export with the name that you desire on lines 80 and 132.

Regards,
Razvan RACASANU

Reply | Quote | Top
Razvan Racasanu[InterAKT]Adobe Systems Romania staff
04-16-2007 14:35:06 GMT +2

Hello,

Sorry for replying so late. When I enabled the original error messages I got:

"Connection refused"

This means that the host to which you are trying to connect is refusing the connection. This usually happens when a firewall is blocking it. This error is very strange in your case as both the source and destination of your connection is on the same machine. This could be happening if, for example the host has 2 or more network interfaces, and PHP does not use the external one.

For this problem, you should contact your system administrator as he has access to the machine and the log files. The web server's and system's log files should contain more info about this error.

Regards,
Razvan RACASANU
 

Reply | Quote | Top
© Adobe Systems Romania. All rights reserved.