欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

javascript - 调用接口报错Uncaught SoapFault exception 是什么问题?

程序员文章站 2022-03-28 13:57:28
...
1,在调用接口的时候报错如下

2,

Fatal error:  Uncaught SoapFault exception: [HTTP] Could not connect to host in D:\xampp\htdocs\price\index1.php:36
Stack trace:
#0 [internal function]: SoapClient->__doRequest('__call('GetDXCSList', Array)
#2 D:\xampp\htdocs\price\index1.php(36): SoapClient->GetDXCSList('2016-10-21')
#3 {main}
  thrown in D:\xampp\htdocs\price\index1.php on line 36

3,源代码如下

";


var_dump($client->GetDXCSList('2016-10-21'));


echo "
";
?>

回复内容:

1,在调用接口的时候报错如下

2,

Fatal error:  Uncaught SoapFault exception: [HTTP] Could not connect to host in D:\xampp\htdocs\price\index1.php:36
Stack trace:
#0 [internal function]: SoapClient->__doRequest('__call('GetDXCSList', Array)
#2 D:\xampp\htdocs\price\index1.php(36): SoapClient->GetDXCSList('2016-10-21')
#3 {main}
  thrown in D:\xampp\htdocs\price\index1.php on line 36

3,源代码如下

";


var_dump($client->GetDXCSList('2016-10-21'));


echo "
";
?>

Could not connect to host,这还不明显么?

相关标签: php javascript