gsoap 的wsdl2h 命令执行失败:connection failed
执行命令如下:$ wsdl2h.exe -o edDateService.h http://211.136.202.19:8080/ElectronDiscountDataInterface/edDataService.ws?wsdl
这个后面的URL是局域网的一个web服务。在IE浏览器是可以打开查看这个wsdl的。
命令执行后有如下错误:
Connecting to 'http://211.136.202.19:8080/ElectronDiscountDataInterface/edDataService.ws?wsdl' to retrieve WSDL/XSD...
Connection failed
SOAP 1.1 fault: SOAP-ENV:Client
"Connection timed out"
Detail: connect failed in tcp_connect()
同样的命令,连接天气预报服务就没有问题:wsdl2h.exe -o weather.h http://www.ayandy.com/Service.asmx?WSDL 就是成功的。
请懂gsoap的指点下,为什么会connection failed 把gsoap的安装包ftp到linux服务器上,执行上面的命令就OK了。
页:
[1]