用webService吧,远程调用...唔唔..
解决方案 »
- 不按Ctrl实现Multiple Select多选
- 关于 easyui-datagrid 合计行问题
- 如何获取ifream某个元素所对应的浏览窗口的屏幕坐标
- 简单问题:javascript创建的对象引用不冲突的问题。
- 为何输出一个对象不存在的属性,并不会报错呢?见代码
- JAVASCRIPT如何既能在“火狐”中又能在IE中获取系统字体的方法或代码?
- FashJson().deal(json)是什么意思
- 失恋了,不想活了,能放多少放多少!js的朋友安慰安慰我,求版主别删,就到明天晚上
- ?????
- 关于bootstrap和zTree的整合问题
- JS中获取CheckBoxList的奇怪问题???
- 大家都用什么工具写JavaScript呢?
也可以自己设计:
//客户端的service请求:
try {
$client = new SoapClient(null,
array('location' => 'http://localhost/mvc/application/soap/soap_server.php',//存放service服务端处理地址
'uri' => 'http://wso2.org/wsf/php/helloService'));
$result = $client->__soapCall('includeFiles', array('../models/testModel.php'));//函数调用方法一
$result .= $client->test();//函数调用方法二
printf("Result = %s", $result);
} catch (SoapFault $e) {
printf("Message = %s",$e->getMessage());
}//--------------------------------------------------------------- //服务端的service处理:
function includeFiles($param) {
require_once("{$param}");
}function test(){
return "<b>xxx</b>";
}$server = new SoapServer(null, array('uri' => 'http://wso2.org/wsf/php/helloService'));
$server->addFunction(array('includeFiles','test'));
$server->addFunction('includeFiles');
$server->addFunction('test');
$server->handle();