Ver Mensaje Individual
  #8  
Antiguo 10-07-2025
edari edari is offline
Miembro
 
Registrado: jun 2021
Posts: 332
Reputación: 6
edari Va por buen camino
Yo también he conseguido respuesta desde un xml llamado con curl


xml
Código PHP:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:urn="urn:ec.europa.eu:taxud:vies:services:checkVat:types">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:checkVat>
         <urn:countryCode>DE</urn:countryCode>
         <urn:vatNumber>813518999</urn:vatNumber>
      </urn:checkVat>
   </soapenv:Body>
</soapenv:Envelope>

curl
Código PHP:
curl.exe -X POST https://ec.europa.eu/taxation_customs/vies/services/checkVatService -H "Content-Type: text/xml; charset=UTF8" -d @\AEAT\VIESNIF.XML -o \AEAT\RESPVIES.XML 

Gracias por vuestra ayuda o empujón
Responder Con Cita