SOAP错误:解析架构:无法导入架构

时间:2018-10-18 17:36:23

标签: php soap

我正在尝试为我的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;
}

0 个答案:

没有答案