我正在尝试访问发布伦敦黄金和白银定价的“免费”网络服务。
我找到了以下两个服务,但我无法让这些服务返回任何有用的数据。
我做错了什么还是服务器没有发布任何数据?有人知道任何其他“免费”的伦敦黄金和白银修复服务器可以工作吗?
客户代码:
<pre>
<?php
$c = new soapclient('http://www.restfulwebservices.net/wcf/LondonGoldFixService.svc?wsdl');
print_r($c->GetMarketData());
?>
</pre>
<br />
<pre>
<?php
$c = new soapclient('http://www.webservicex.net/londongoldfix.asmx?wsdl');
print_r($c->GetLondonGoldAndSilverFix());
?>
</pre>
服务器输出:
stdClass Object
(
[GetMarketDataResult] => stdClass Object
(
[Gold_AM_USD] => 0
[Gold_AM_STG] => 0
[Gold_AM_EUR] => 0
[Gold_PM_USD] => 0
[Gold_PM_STG] => 0
[Gold_PM_EUR] => 0
[Silver_CENTS] => 0
[Silver_PENCE] => 0
[Silver_EUR] => 0
[Status] => Failed
)
)
stdClass Object
(
[GetLondonGoldAndSilverFixResult] => stdClass Object
(
[Gold_AM_USD] => 0
[Gold_AM_STG] => 0
[Gold_AM_EUR] => 0
[Gold_PM_USD] => 0
[Gold_PM_STG] => 0
[Gold_PM_EUR] => 0
[Silver_CENTS] => 0
[Silver_PENCE] => 0
[Silver_EUR] => 0
[Status] => Failed
)
)