duandang2838 2013-05-08 10:08
浏览 46

SOAP PHP值不能为null。 参数名称:source

I'm trying to call a function from this webservice:

http://www.zulutrade.com/WebServices/Performance.asmx?WSDL

I'm sending all the requested params but I'm getting this error: Value cannot be null. Parameter name: source I think it's a server issue, but maybe I need to change something in my code:

$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);
}

Any ideas? thanks

  • 写回答

2条回答 默认 最新

  • doukuangxiu1621 2013-05-08 10:38
    关注

    I tried with nusoap class and I get this error

    HTTP Error: Couldn't open socket connection to server http://www.zulutrade.com:81/WebServices/Performance.asmx, Error (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

    So maybe it's a bug on their part

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?