php web services框架
时间:2008-07-30 来源:Snow-Angel
nuSOAP
文件:nusoap-0[1].7.3.zip
大小:171KB
下载:
下载
纯php代码,包括服务器端和客户端,支持soap1.1、1.2,自动生成wsdl
使用很简单,解压lib到要使用它的应用程序目录,include进来代码:configureWSDL('hellowsdl', 'urn:hellowsdl');
$server->register('hello',
array('name' => 'xsd:string'),
array('return' => 'xsd:string'),
'urn:hellowsdl',
'urn:hellowsdl#hello',
'rpc',
'encoded',
'Says hello to the caller'
);
function hello($name) {
return 'Hello, ' . $name;
}
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$server->service($HTTP_RAW_POST_DATA);
?>
文件:nusoap-0[1].7.3.zip
大小:171KB
下载:
下载
纯php代码,包括服务器端和客户端,支持soap1.1、1.2,自动生成wsdl
使用很简单,解压lib到要使用它的应用程序目录,include进来代码:configureWSDL('hellowsdl', 'urn:hellowsdl');
$server->register('hello',
array('name' => 'xsd:string'),
array('return' => 'xsd:string'),
'urn:hellowsdl',
'urn:hellowsdl#hello',
'rpc',
'encoded',
'Says hello to the caller'
);
function hello($name) {
return 'Hello, ' . $name;
}
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$server->service($HTTP_RAW_POST_DATA);
?>
相关阅读 更多 +