Unable to load WSDL File/Location in Delphi for VIES SOAP Service

ⅰ亾dé卋堺 提交于 2019-12-23 13:02:56

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/14177991/unable-to-load-wsdl-file-location-in-delphi-for-vies-soap-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!