1.非wsdl模式
(1)函数文件
testphp/ServiceFunctions.class.php
<?php /** * @author 左小兵 * */ class ServiceFunctions { public function getDisplayName($f,$l) { $name=''; $name.=$f; $name.=$l; return $name; } public function countWords($c){ return count($c); } } ?>