<?php
function object_to_array($data)
{
if (is_array($data) || is_object($data)) {
$result = [];
foreach ($data as $key => $value) {
$result[$key] = object_to_array($value);
}
return $result;
}
return $data;
}
$client = new SoapClient("lk-test.cse.ru/1c/ws/web1c.1cws?wsdl", array('login' => "test",
'password' => "2016"));
$response = $client->Calc();
$responseArray = object_to_array($response);
var_dump($responseArray );
?> function object_to_array($data)
{
if (is_array($data) || is_object($data)) {
$result = [];
foreach ($data as $key => $value) {
$result[$key] = object_to_array($value);
}
return $result;
}
return $data;
}
Что у вас возвращает? Если HTTP/1.1 401 Unauthorized, то авторизация не прошла
Если пишет "Неизвестная ошибка. Недостаточно параметров операции по причине: Недостаточно параметров операции", то в Calc нужно передавать какие-то параметры
$client->__getTypes() - можно посмотреть что нужно передавать