負載,同時執行以下行我得到這個錯誤:SOAP的錯誤:解析WSDL:無法從URL
$client = new soapclient('https://example.com/xxx/pgw?wsdl=xyz.wsdl');
錯誤:
SoapFault: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:8080/xxx/pgw?wsdl=xyz.wsdl' : failed to load external entity "http://localhost:8080/xxx/pgw?wsdl=xyz.wsdl" in SoapClient->SoapClient() (line 39 of /var/www/.../myscript.php).
我已經檢查了在我的瀏覽器中的網址,沒關係。 什麼會導致錯誤?
您是否啓用SSL? http://stackoverflow.com/questions/3726242/php-soapclient-unable-to-work-with-https-ws – 2012-03-02 12:31:19
@cillosis是的。 OpenSSL已啓用 – user16948 2012-03-02 12:38:39
您可以將代碼粘貼到問題中... – ManseUK 2012-03-02 13:06:52