//class generator class SoapActions { /** * Return simple test * * @param Array $params * @return Array */ public function getParams($params) { return $params; } } //wsdl code $autodiscover = new AutoDiscover(); $autodiscover->setClass('SoapActions'); $autodiscover->setUri('/params'); $autodiscover->handle(); //server code $server = new Server('/wsdl'); $server->setClass('SoapActions'); $server->setObject(new SoapActions()); $server->handle(); //client $client = new Client('/wsdl'); $result = $client->getParams(array('opt' => 'test')); return $result;
在$ result中没有...