未捕获的SoapFault异常:[WSDL] SOAP-ERROR:解析WSDL:无法从&https://wallet.advcash.com/wsm/merchantWebService加载?wsdl' :

时间:2017-04-23 04:59:22

标签: php soap wsdl

我正在尝试使用AdvCash API,它在我的服务器上显示错误。我不知道如何解决它。请帮助我

API详情链接:https://advcash.com/en/solutions/developers/

检查图像此错误显示在我的服务器上。

我的服务器链接:https://skycallbd.com/tg/php-client/GetBalanceExample.php enter image description here

我的代码::

<?php


error_reporting(E_ALL);
ini_set('display_errors', '1');
ini_set('max_execution_time', 100);
require_once("MerchantWebService.php");

$merchantWebService = new MerchantWebService();

$arg0 = new authDTO();
$arg0->apiName = "apiname";
$arg0->accountEmail = "account@gmail.com";
$arg0->authenticationToken = $merchantWebService->getAuthenticationToken("password");

$getBalances = new getBalances();
$getBalances->arg0 = $arg0;

try {
    $getBalancesResponse = $merchantWebService->getBalances($getBalances);

    echo print_r($getBalancesResponse, true)."<br/><br/>";
    echo print_r($getBalancesResponse->return, true)."<br/><br/>";
} catch (Exception $e) {
    echo "ERROR MESSAGE => " . $e->getMessage() . "<br/>";
    echo $e->getTraceAsString();
}
?>

1 个答案:

答案 0 :(得分:0)

转到图书馆脚本(MerchantWebService.php)和2436行

当前libxml_disable_entity_loader(false); 将其更改为libxml_disable_entity_loader(true);