public function testGetFunctions() { $server = new Zend_Soap_Server(dirname(__FILE__) . '/_files/wsdl_example.wsdl'); $server->setClass('Zend_Soap_Client_TestClass'); $client = new Zend_Soap_Client(dirname(__FILE__) . '/_files/wsdl_example.wsdl'); $client->setLocalServer($server); $this->assertTrue($client->getFunctions() == array('string testFunc1()', 'string testFunc2(string $who)', 'string testFunc3(string $who, int $when)', 'string testFunc4()')); }
public function soapHelpAction() { $serverUrl = str_replace('help', 'server', MAIN_URL . $this->getRequest()->getRequestUri()); $client = new Zend_Soap_Client($serverUrl); echo '<hr />'; echo '<pre>'; echo "Available methods: \n"; print_r($client->getFunctions()); echo '</pre>'; exit; }