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

