SOAP练习。致命错误:未捕获的SoapFault异常:[WSDL] SOAP-ERROR:解析

时间:2011-08-19 08:16:48

标签: php soap

我正在根据此示例进行一些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 Settings\USER\Desktop\Dropbox\wamp\soap\index.php:5 Stack trace:
#0 C:\Documents and Settings\USER\Desktop\Dropbox\wamp\soap\index.php(5): SoapClient->SoapClient('http://football...') 
#1 {main} thrown in C:\Documents and Settings\USER\Desktop\Dropbox\wamp\soap\index.php on line 5

第5行是:$client = new SoapClient("http://footballpool.dataaccess.eu/data/info.wso?WSDL");

谷歌叔叔不知道答案。任何建议都非常感谢。

1 个答案:

答案 0 :(得分:2)

该主机上的端口8080似乎已关闭,这将是问题所在。联系他们。

实际上,尝试使用这样的代理服务器:

$client = new SoapClient(“http://someaddress?WSDL”, array(‘proxy_host’ => “example.proxy.com”,’proxy_port’ => portnumber));