Support is offline. We are back Monday 23 November, 09:00.

Fetch xml from url problem #74099

Open infogate opened this topic Wednesday, 14 December 2022 ยท 4 replies
Author

Hello,
I use ROCSVI 7.20.
I try to import a file from a supplier with the following format

https://v2.data-media.gr/data2/products.xml?key=info@gategr_albanid1s

No matter what I tried the component is not fetching the url and the import is not working.
I tried to use "key" as a username field and the "info@gategr_albanid1s" but again it is not working.

Thank you in advanced.

Support

Hello,

This is not a pre-sale question but a support question. Support is only given to users who have an active subscription. As far as I can see you do not have an active subscription.

To help you out, I checked the link and it is a 34MB file you are trying to import, I think that your server may have an issue downloading the file. Also check that your import template is set to use the XML format because from the URL that cannot be determined because it ends with the key. You can also check the import by downloading the file yourself and upload it.

For any further support you will need a subscription.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Thank you Roland for your time.
I have already renewed 2 subscriptions and at the moment I have none active.
But as I did not figured the way I could fetch such an xml I thought maybe to a newer version that is working.
The supplier propose a curl method or some kind of script to automate the process.

Thank you once again for your time and wish you a great day.

Support

Hello,

RO CSVI uses cURL to download but yes you can also have a standalone curl call to download the file and then start the import template to read the file from the server.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

I finally created the following script and seems to work perfect

<?php
$source_url= "remoteurl";
$local_path_with_file_name = "product.xml";

copy($source_url, $local_path_with_file_name);

?>

Thank you once again for your time.

Log in to reply to this topic.