javascript - 调用接口报错Uncaught SoapFault exception 是什么问题?
怪我咯
怪我咯 2017-04-11 13:31:12
0
1
421

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('<?xml version="...', 'http://218.93.1...', 'http://tempuri....', 1, 0)
#1 D:\xampp\htdocs\price\index1.php(36): SoapClient->__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,源代码如下

<?php

$client = new SoapClient("http://218.93.114.150:12004/WebServiceJGT.asmx?WSDL");

echo "<pre>";


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


echo "</pre>";
?>
怪我咯
怪我咯

走同样的路,发现不同的人生

Antworte allen(1)
洪涛

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

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!