we have output XMLs from SOAP, which we need to download to a folder with the same filename that we find in the XML. I file IMG hanno un accesskey:
<?xml version="1.0" encoding="UTF-8"?>
<TableResult>
<Product>
<FDI_0843>https://ws.farmadati.it/WS_DOC/GetDoc.aspx?accesskey=xxxxxxx&tipodoc=TE009&nomefile=001536.jpg</FDI_0843>
<FDI_0840>908872245</FDI_0840>
</Product>
<Product>
<FDI_0843>https://ws.farmadati.it/WS_DOC/GetDoc.aspx?accesskey=xxxxxxx&tipodoc=TE009&nomefile=005075.jpg</FDI_0843>
<FDI_0840>908057906</FDI_0840>
</Product>
How can we create a script to download these images in Woocommerce or in a folder in our FTP?
Thank you for those who will respond
2
Answers
As the URLS within the XML file are protected the following cannot be tested fully but you can try like this, note that the XML as been modified slightly
can you explain me how i get list of product with soap and php on wsdl farmadati? I get username and password from it’s helpdesk, but the response from wsdl it’s wrong parameter input (‘Valori in input non validi’)
Thanks