SoapClient Class does not return response object data

48 Views Asked by At

I have this code, with others services works fine but in one service this class dont return any data.

If I use the __getLastResponse method, the class return XML string, but i need the object data.

$options = array('trace' => 1,'use' => SOAP_LITERAL); 

$soapclient = new SoapClient('http://webservice.host.fantasy/Service/Foto?wsdl', $options);
$res = $soapclient->TramFoto(['id' => '01065']);

print_r($soapclient->__getLastResponse());
0

There are 0 best solutions below