"http://soap/")); echo $client->show(); ?">
时间:2021-07-01 10:21:17 帮助过:3人阅读
$client = new SoapClient(null, array('location'=>"http://192.168.1.100/test/serverSoap.php",'uri' =>"http://soap/"));
echo $client->show();
?>
class test{
function show(){
return 'the data you request';
}
}
function getUserInfo($name){
return 'fbbin';
}
$soap = new SoapServer(null, array('uri'=>'http://soap/','location'=>'http://localhost/test/serverSoap.php'));
$server->serClass('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();
?>
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();
?>