如何从php中的wsdl文件中获取数据

时间:2017-04-21 11:11:36

标签: php web-services soap wsdl soap-client

我有wsdl文件和第三方API。我们想从第三方获取数据并在我的网站上显示我们有用户名和密码,但我们是soap api的新用户。如何在soap api中连接身份验证并从wsdl文件中获取数据。

我们正在尝试提取,但显示错误:

<input type="date" id="levFrom">
<input type="date" id="levTo">

PHP代码:

Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in /home/examin8/public_html/CI/soap/client.php:42 
Stack trace: 
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://119.73....', 'urn://119.73.25...', 1, 0) 
#1 /home/examin8/public_html/CI/soap/client.php(42): SoapClient->__soapCall('RealTimePriceDa...', Array) 
#2 /home/examin8/public_html/CI/soap/sevice.php(11): client->getDetails(Array) #3 {main} thrown in /home/examin8/public_html/CI/soap/client.php on line 42

0 个答案:

没有答案