2017-04-23 55 views
0

我試圖使用AdvCash API顯示錯誤在我的服務器上。我不知道如何解決它。請幫我未捕獲的SoapFault異常:[WSDL] SOAP-ERROR:解析WSDL:無法從「https://wallet.advcash.com/wsm/merchantWebService?wsdl」加載:

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 = "[email protected]"; 
$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(); 
} 
?> 

回答

0

去圖書館腳本(MerchantWebService.php)和2436線

當前libxml_disable_entity_loader(假); 將其更改爲libxml_disable_entity_loader(true);

相關問題