Level 102
So in phpinfo you see the whole soap section? https://stackoverflow.com/a/11391550
Hey! I get this error when I am using Soap, (Class "SoapClient" not found) the extensions is already enabled in php.ini and in phpInfo it shows that soap is enabled. What could have gone wrong?
namespace App\Providers;
use DOMDocument;
use SoapClient;
class DebugSoapClient extends SoapClient
{
public $sendRequest = true;
public $printRequest = false;
public $formatXML = false;
public function __doRequest($request, $location, $action, $version, $one_way = 0)
{
if ($this->printRequest) {
if (!$this->formatXML) {
$out = $request;
} else {
$doc = new DOMDocument();
$doc->preserveWhiteSpace = false;
$doc->loadxml($request);
$doc->formatOutput = true;
$out = $doc->savexml();
}
echo $out;
}
if ($this->sendRequest) {
return parent::__doRequest($request, $location, $action, $version, $one_way);
} else {
return '';
}
}
}
Please or to participate in this conversation.