欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

soap远程服务

程序员文章站 2024-02-05 08:35:28
...

无详细内容 无 ?phptry{$soapcfg=array("location"="http://localhost/OOP/SOAP/backSoap1.php","uri"="phpjs");$soap=new SoapClient(NULL,$soapcfg);echo $soap-toAlert('Notice!');echo $soap-toOpen('http://www.baidu.com','_blank');}catch(Exception $

"http://localhost/OOP/SOAP/backSoap1.php",
	"uri"=>"phpjs"
	);
	
	$soap=new SoapClient(NULL,$soapcfg);
	
	echo $soap->toAlert('Notice!');
	echo $soap->toOpen('http://www.baidu.com','_blank');
	
}catch(Exception $e){
	echo $e->getMessage();
}
?>

		       alert('$str');
			   ";
	}
	
	function toOpen($url,$style){
	return "";
	}
}

$soap=new SoapServer(NULL,array('uri'=>'phpjs'));
$soap->setClass('PHPjs');
$soap->handle();
?>