setClass("handleReport");//注册ThirdOrder类的所有方法 $objSoapServer->handle();//处理请求 }catch (\think\Exception $e) { var_dump($e);die; } }else{ include("handleReport.php"); include("SoapDiscovery.class.php"); $disc = new SoapDiscovery('handleReport', 'handleReport');//api类文件名,service接口目录 $res = $disc->getWSDL(); }