Unable to load WSDL file / location in Delphi for VIES SOAP service

I am trying to create a Delphi XE2 function for checking VAT numbers through the SOAP VIES service: http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl

When I use the Delphi X2 WSDL importer with the above URL using the default values, I get the following error: Failed to load WSDL file / location: http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl . Error [The requested title was not found - URL: http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl - SOAPAction: ""

What am I doing worng?

+4
source share
1 answer

Save the wsdl file to disk and import the saved XML file. After creating the pas file, change the string matchCode = (1, 2) to (_1, _2).

+6
source

All Articles