skip to Main Content

Extrapolate and download from xml images asp link in WooCommerce

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>…

VIEW QUESTION

Php – Using EU VIES REST Service to check VAT Number

So i'm trying to check VAT Numbers using the REST Service the EU provides. Here is some documentation about it: https://ec.europa.eu/taxation_customs/vies/#/technical-information I'm using Postman for a check. Using this URL: https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-test-service The request body JSON example: { "countryCode": "DE", "vatNumber":…

VIEW QUESTION

How to get element(responsecode) value from XML SOAP response in PHP?

Here is the response in SOAP: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://sdsds.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <ns0:ServiceResponse xmlns:ns0="ababa.co.ke/Schemas/SAFService.xsd"> <ns0:ResponseHeader> <ns0:ResponseCode>1</ns0:ResponseCode> <ns0:ResponseMsg>999</ns0:ResponseMsg> </ns0:ResponseHeader> </ns0:ServiceResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> And now I am trying to get ResponseCode value as below //not working $obj = simplexml_load_string($xml); $result = $obj->body->ServiceResponse->ResponseHeader->ResponseCode; echo $result[0]; print_r($result);…

VIEW QUESTION
Back To Top
Search