太粗心了,这样写<?php class test{ function show(){ return 'the data you request'; } } function getUserInfo($name){ return 'fbbin'; } $server = new SoapServer(null, array('uri'=>'http://soap/','location'=>'http://localhost/test/serverSoap.php')); $server->setClass('test'); $server->handle(); ?>
补充下 <?php class test{ function show(){ return 'the data you request'; } function getUserInfo($name){ return 'fbbin'; } } $server = new SoapServer(null, array('uri'=>'http://soap/','location'=>'http://localhost/test/serverSoap.php')); $server->setClass('test'); $server->handle(); ?>
class test{
function show(){
return 'the data you request';
}
}
function getUserInfo($name){
return 'fbbin';
}
$server = new SoapServer(null, array('uri'=>'http://soap/','location'=>'http://localhost/test/serverSoap.php'));
$server->setClass('test');
$server->handle();
?>
<?php
class test{
function show(){
return 'the data you request';
} function getUserInfo($name){
return 'fbbin';
}
}
$server = new SoapServer(null, array('uri'=>'http://soap/','location'=>'http://localhost/test/serverSoap.php'));
$server->setClass('test');
$server->handle();
?>