0

在搜索了与此错误相关的许多问题后,我一直无法找到答案。

当我尝试通过soap连接到一个URL时,它在Godaddy VPS上运行良好,但在我的本地服务器(EasyPHP AMP Stack)上失败了。Open SSL 和 php 的 ini 设置中的 Soap 一样启用,但有人知道我缺少什么,因为我猜这是配置问题吗?

我正在运行的代码是

$gdAuctionsWSURL = 'http://auctions.godaddy.com/gdAuctionsWS/GdAuctionsBiddingWS.asmx?WSDL';
$gdAuctionsWS = new SoapClient($gdAuctionsWSURL);

并且仅在我的本地服务器上发生的错误是

Fatal error: Uncaught SoapFault exception: 
    [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://auctions.godaddy.com/gdAuctionsWS/GdAuctionsBiddingWS.asmx?WSDL' :
    failed to load external entity "http://auctions.godaddy.com/gdAuctionsWS/GdAuctionsBiddingWS.asmx?WSDL"
4

0 回答 0