21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
$soap = new SoapServer(null,array('uri'=>"http://localhost"));//This uri is your SERVER ip.
$soap->addFunction('minus_func'); //Register the function
$soap->addFunction(SOAP_FUNCTIONS_ALL);
$soap->handle();
function minus_func($i, $j){
$res = $i - $j;
return $res;
}
?>
起动tomcat 运行:http://localhost/serverSoap.php 不知怎么?网上查了很多但我配置正确呀,求解
Fatal error: Class 'SoapServer' not found in C:\AppServ\www\serverSoap.php on line 3