I am trying to create a Delphi XE2 function to check VAT numbers via the SOAP service of VIES: http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
When I use Delphi X2's WSDL importer with the above URL taking the default values, I get the following error: Unable to load WSDL File/Location: http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl. Error [The requested header was not found - URL:http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl - SOAPAction:""
What am I doing worng?
Save the wsdl file to disc and import the saved xml file. After generating the pas file, change the line matchCode = (1, 2) in (_1, _2).
Thank you, saving it to disk avoided the issue. However, it was not necessary to change (1, 2) to (_1, _2) because it was already generated with (_1, _2)
Thank you @Arjen van der Spek this solved the problem for XE3 as well!
This solve the issue in Delphi 10 too. Thanks. No need to rename (1,2) in (_1, _2). The generated code now is "matchCode = (_1, _2, _3);"
Solved the same problem in 10.4 Sydney, no need to change anything