我正在尝试为我的PHP(Codeigniter)项目使用一些第三方SOAP API服务。
可以使用浏览器查看提供给我的The WSDL link。但是,当我尝试使用SoapClient
访问它时,出现以下错误。
An uncaught Exception was encountered
Type: SoapFault
Message: SOAP-ERROR: Parsing Schema: can't import schema from 'https://apphubdev.mobitel.lk/services/mCashServices/mCashServices.xsd1.xsd'
Filename: /home/duvolaca/apiServer.duvolacapital.lk/application/controllers/McashService.php
Line Number: 103
Backtrace:
File: /home/duvolaca/apiServer.duvolacapital.lk/application/controllers/McashService.php
Line: 103
Function: SoapClient
File: /home/duvolaca/apiServer.duvolacapital.lk/index.php
Line: 294
Function: require_once
这是我的PHP代码
public function getClient(){
$client = new SoapClient("https://apphubdev.mobitel.lk/services/mCashServices/mCashServices?wsdl");
return $client;
}