无法在Delphi中为VIES SOAP服务加载WSDL文件/位置 [英] Unable to load WSDL File/Location in Delphi for VIES SOAP Service
问题描述
我正在尝试创建一个Delphi XE2函数,以通过VIES的SOAP服务检查增值税号: http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
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
当我将Delphi X2的WSDL导入器与上述URL一起使用时默认值时,出现以下错误:
无法加载WSDL文件/位置: http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl 。错误[找不到请求的标头-URL:http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl-SOAPAction:
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:""
什么是
推荐答案
将wsdl文件保存到光盘并导入保存的xml文件。
生成pas文件后,更改(_1,_2)中的行matchCode =(1,2)。
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).
这篇关于无法在Delphi中为VIES SOAP服务加载WSDL文件/位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!