delphi 调用Webservice 引入wsdl 报错 document empty

delphi 调用Webservice 引入wsdl 报错 document empty

直接引入wsdl 地址报错 document empty

解决办法:在浏览器里保存为xml文件,然后在开发环境里load  xml文件解决!

地址格式是

http://1.2.3.4:8080/abc/?wsdl

生成pas文件后,调用方法

aaaService.GetaaaServicePortType().function1(p1,p2);

aaa是类名

生成的pas文件里找  GetaaaServicePortType函数即可。

https://blog.csdn.net/word_joke/article/details/80864579

https://www.cnblogs.com/workherd/p/6421999.html

这2个地址都可以被WebserviceStudio识别到

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl

原文地址:https://www.cnblogs.com/cb168/p/8536962.html