это мой контроллер:
Код: Выделить всё
public function handleSoapRequest(Request $request)
{
$wsdlPath = storage_path('wsdl/wsdl.xml');
$server = new Server($wsdlPath, [
'soap_version' => SOAP_1_1,
'encoding' => 'UTF-8',
'cache_wsdl' => WSDL_CACHE_NONE,
]);
$server->setObject(new SoapService();
$server->handle();
}
Код: Выделить всё
public function SaveConfirmations($request): array
{
$results = [];
$result = [
'ErrorInfo' => false,
'IsSuccess' => true,
'ReferenceId' => 15
];
$results[] = $result;
return [
'SaveConfirmationsResult' => $results
];
}
Код: Выделить всё
true
15
Код: Выделить всё
?
?
?
Как это исправить и изменить SOAP-ENV, ns2, ns1 и т. д.?
Я уже пробовал разные сценарии реагирования.
Подробнее здесь: https://stackoverflow.com/questions/792 ... ate-format