Мое решение - использовать SoapVar () в $ parametersArray и допустимо для строки XML BaseEncode64:
$ws = new \SoapClient($this->getWSUrl()
, [
//'trace' => true,
'encoding' => 'utf-8',
'connection_timeout' => '10',
'cache_wsdl' => WSDL_CACHE_MEMORY,
]);
$parm = array();
$subparm = array();
$parm[] = new SoapVar($parametersArray['token'], XSD_STRING, null, null, 'token');
$parm[] = new SoapVar($parametersArray['usuario'], XSD_STRING, null, null, 'usuario');
$subparm[] = new SoapVar($parametersArray['archivo']['fileType'], XSD_STRING, null, null, 'fileType');
$subparm[] = new SoapVar($parametersArray['archivo']['nombre'], XSD_STRING, null, null, 'nombre');
$subparm[] = new SoapVar($parametersArray['archivo']['xml'], XSD_STRING, null, null, 'xml');
$parm[] = new SoapVar($subparm, SOAP_ENC_OBJECT, null, null, 'archivo');
$resp = new SoapVar($parm, SOAP_ENC_OBJECT);
$data = json_decode(json_encode($ws->generarSolicitud($resp)->return), true);
//exit(debug($ws->__getLastRequest()));
Альтернатива легкая, недопустима для моего dataArray в «xml», изменить stringBaseCode64; - (
$ws = new \SoapClient($this->getWSUrl()
, [
//'trace' => true,
'encoding' => 'utf-8',
'connection_timeout' => '10',
'cache_wsdl' => WSDL_CACHE_MEMORY,
]);
$data = json_decode(json_encode($ws->generarSolicitud($parametersArray)->return), true);
//exit(debug($ws->__getLastRequest()));