【发布时间】:2012-01-23 17:09:03
【问题描述】:
我使用这个网站作为我的网络服务的指南..
http://developer.yahoo.com/answers/V1/questionSearch.html
我使用这个代码:
$client=new SoapClient("http://answers.yahooapis.com/AnswersService/V1/questionSearch");
$resposeArray=$client->__call("query","economics");
var_dump($resposeArray);
显然,我无法检索任何内容.. 并收到此错误:
致命错误:未捕获的 SoapFault 异常:[WSDL] SOAP-ERROR:解析 WSDL:无法从“http://answers.yahooapis.com/AnswersService/V1/questionSearch”加载:无法加载外部实体“http ://answers.yahooapis.com/AnswersService/V1/questionSearch" 在 C:\xampp\htdocs\Unnamed Site 2\untitled1.php:11 堆栈跟踪:#0 C:\xampp\htdocs\Unnamed Site 2\untitled1。 php(11): SoapClient->SoapClient('http://answers....') #1 {main} 在 C:\xampp\htdocs\Unnamed Site 2\untitled1.php 第 11 行抛出
【问题讨论】:
标签: php web-services soap yahoo-api