0
I have a client-Soap in Laravel and I would like to know how to save errors coming back from Soap-server in a file. Below is the code of my client-Soap and where does the request for Soap-server.
try {
print("<pre>".print_r($client->INC($array),true)."</pre>");
}
catch (SoapFault $fault){
echo 'Requesição : <br/><xmp>',
print_r($client->getLastRequest()),
'</xmp><br/>';
echo "</br>";
echo 'Resposta da ACM : <br/> <br/><xmp>',
print_r($client->getLastResponse()),
$fault->faultstring,
'</xmp>';
}
I would like to take the $fault->faultstring error and record, as I would do it?
OK thank you very much. It worked.
– Agner Souza Bezerra