problem description
client calls to methods in the controller are prohibited
the environmental background of the problems and what methods you have tried
Middleware verification is not used in routing, csrf excludes
related codes
/ / Please paste the code text below (do not replace the code with pictures)
client:
$url = "http://192.168.0.165:8088/web123/public/SyncUserController.wsdl";
$client = new SoapClient ($url);
var_dump ($client- > syncUser ());
server:
$procClass = "web123\ Http\ Controllers\ SyncUserController";
$classNameFull = explode("\\", $procClass);
$className = array_pop($classNameFull);
if (! file_exists($className.".wsdl")) {
$soapDiscovery = new \SoapDiscovery($procClass, "soap");
file_put_contents($className.".wsdl", $soapDiscovery->getWSDL());
}
$server = new \SoapServer($className.".wsdl", array("soap_version" => SOAP_1_2));
$obj = new $procClass();
$server->setObject($obj);
$server->setClass($procClass);
$server->handle();
what result do you expect? What is the error message actually seen?
Uncaught SoapFault exception: [HTTP] Method Not Allowed