1

我有一个 URL:' http ://myurl.com/foo/bar.jws ' 我正在尝试通过 PHP 与此 URL 建立 SOAP 连接,但它似乎不起作用。我错过了什么吗?

<?php
try { $soapObject = new SoapClient('http://myurl.com/foo/bar.jws'); }
catch(Exception $e) { die('SOAP connection failed: ' .$e->getMessage()); }
?>

我收到此错误:

SOAP connection failed: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://myurl.com/foo/bar.jws' : failed to load external entity "http://myurl.com/foo/bar.jws"
4

0 回答 0