仅限localhost上的SoapFault异常

时间:2013-01-12 16:03:56

标签: php soap easyphp

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

当我尝试通过soap连接到URL时,它在Godaddy VPS上工作正常,但在我的本地服务器(EasyPHP AMP Stack)上失败。在php的ini设置中启用了开放式SSL,但有人知道我错过了什么,因为我认为这是配置问题吗?

我正在运行的代码是

$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"

0 个答案:

没有答案