Salve,
non riesco a dialogare con un webservice SOAP via client PHP.
La funzione $client->__getFunctions() mi torna queste funzioni:
codice:
Array ( [0] => opMyFuncResponse opMyFunc(opMyFunc $parameters) )
mentre la funzione $client->__getTypes() mi torna questi tipi:
codice:
Array (
[0] => struct ComplexInput { string VAR1; string VAR2; }
[1] => struct ComplexOutput { string VAR3; string VAR4; }
[2] => struct opMyFunc { ComplexInput ReqServ; }
[3] => struct opMyFuncResponse { ComplexOutput RespServ; }
)
Non riesco bene a capire come strutturare i parametri complex types da passare al server soap, se uso:
codice:
$params = array('ReqServ' => array('VAR1' => '0', 'VAR2' => '0'));
$result = $client->opMyFunc($params);
Non sembra funzionare (la chiamata al wsdl funziona).
Non riesco a capire dove ho sbagliato.
Grazie a chi può darmi una mano.