由于某种原因,我没有设法使用SoapClient,即使它(如您在图像上看到的)被很好地引用了
<?php
namespace App\Http\Controllers;
use SoapClient;
class InsuranceController extends Controller
{
function createBooking($wsdl){
$ws = new SoapClient($wsdl);
$ret = $ws->transaction($xml);
我收到此错误:找不到类'SoapClient'
我尝试将其添加到app.php
'SoapClient' => SoapClient::class
,我也尝试使用\ SoapClient()代替SoapClient()
有什么主意吗?
非常感谢您