我正在尝试从此网络服务调用一个函数:
http://www.zulutrade.com/WebServices/Performance.asmx?WSDL
我正在发送所有请求的参数,但出现此错误:值不能为空。参数名称:source 我认为这是服务器问题,但也许我需要更改代码中的某些内容:
$client = new SoapClient('http://www.zulutrade.com/WebServices/Performance.asmx?WSDL',
array('location' => "http://www.zulutrade.com/WebServices/Performance.asmx",
'trace'=>1,
"cache_wsdl" => 0));
$params = array
(
'providerId' => 109206,
'fromDateStr' => "1985-12-19",
'toDateStr' => "2013-05-06",
'validTrades' => true,
'lotSize' => "Mini",
'start' => 0,
'length' => 20,
'sortBy' => "buy",
'sortAscending' => true
);
try
{
$result = $client->GetProviderTrades($params);
}
catch (SoapFault $fault)
{
print_r($fault);
}
有任何想法吗?谢谢