我基于这个例子做了一些SOAP练习:http://www.vankouteren.eu/blog/2009/03/simple-php-soap-example/
但是,我不能让它在WAMP上工作。
我得到的错误是:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL:
Couldn't load from 'http://footballpool.dataaccess.eu/data/info.wso?WSDL' :
failed to load external entity "http://footballpool.dataaccess.eu/data/info.wso?WSDL"
in C:Documents and SettingsUSERDesktopDropboxwampsoapindex.php:5 Stack trace:
#0 C:Documents and SettingsUSERDesktopDropboxwampsoapindex.php(5): SoapClient->SoapClient('http://football...')
#1 {main} thrown in C:Documents and SettingsUSERDesktopDropboxwampsoapindex.php on line 5
第五行是:$client = new SoapClient("http://footballpool.dataaccess.eu/data/info.wso?WSDL");
Google大叔不知道答案。任何建议,非常感谢。
该主机上的8080端口似乎已关闭,这将是问题所在。他们联系。
实际上,尝试使用这样的代理服务器:
$client = new SoapClient(“http://someaddress?WSDL”, array(‘proxy_host’ => “example.proxy.com”,’proxy_port’ => portnumber));