SOAP - загрузка локального файла WSDL
Как загрузить локальный файл WSDL в SoapClient
?
$wsdl = __DIR__.'/wsdl.wsdl';
$this->client = new SoapClient($wsdl);
$xsd = __DIR__.'/wsdl/xsd/xmldsig-core-schema.xsd';
Неустранимая ошибка PHP: SOAP-ОШИБКА: Синтаксический анализ WSDL: Не удалось найти никаких полезных служб привязки в WSDL.
Относительный путь к XSD-файлу из файла WSDL: ./xsd/xmldsig-core-schema.xsd
WSDL
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" >
<wsdl:types>
</wsdl:definitions>
6
1 answers
В вашем файле WSDL,
<soap:binding style="document" transport="https://schemas.xmlsoap.org/soap/https"/>
Должно быть
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
6
Author: Guillaume Boudreau, 2018-08-19 23:29:58