麻辣堂|资源主站|开发论坛|在线手册
首页 Apache Linux Java MySQL 注册帮助 
PHP项目开发组是PHP开发资源网于2007组年建成立的项目开发团队,目前核心开发成员有27人, 项目协作成员8名.下设7个开发组,主要承接大/中型网站项目开发任务。

    由于开发任务较多,人员比较紧张,现面向社会招聘全职或者兼职开发人员,不管你是在校大学生,还是全职开发人员,以及SOHO都可以联系本站,我们可以长期合作,并为您带来丰厚的报酬。
  您现在的位置:PHP开发资源网 > 麻辣堂 > 详细资料
待解决
php+soap的程序运行不了一般是什么问题啊?
悬赏分:20 - 2007年08月22日

我用的php扩展的soap写了一个web服务,但是运行不了,不知道是什么问题.我现在把我的服务器的代码和客户端的代码给出来~~非常的简单,我的wsdl文件是用ZD自动生成的

我的服务器端的代码:
<?php
/**
* A simple math utility class
* @author John Coggeshall john@zend.com
*/
class math {
/**
* Add two integers together
*
* @param integer $a The first integer of the addition
* @param integer $b The second integer of the addition
* @return integer The sum of the provided integers
*/
public function add($a, $b) {
return $a + $b;
}

/**
* Subtract two integers from each other
*
* @param integer $a The first integer of the subtraction
* @param integer $b The second integer of the subtraction
* @return integer The difference of the provided integers
*/
public function sub($a, $b) {
return $a - $b;
}
}
$soapserver = new SoapServer('moxSearch.wsdl');

$soapserver->setClass('Math');
$soapserver->handle();
//$soap->service($HTTP_RAW_POST_DATA);
?>


我的客户端的代码:
<?php
$client = new SoapClient("http://127.0.0.1:81/Math/moxSearch.wsdl");
echo $client->add(1,2);
?>

能给个思路不,谢谢

提问者:85667511   08-22 14:02
答复
路过。。。顺便帮顶:)
回答者:玉米づ冰冻可乐 - 瓦岗村民 8-22 09:10
我也来回答:
不管你有没有帮助我们,瓦岗寨8万村民将感谢你。。。。。

为防止灌水,您需要计算一道数学题: 答案:
97 + 44 = ? 请将计算结果填在上面

 
[]
©2007 PhpRes.COM