MAm taki serwer:
to jest 127.0.0.1/public/services/getartists - i ten skrypt dziala ok bo po wejsciu pokazuje kog xml ktory zraca metoda getartist z webservices klasy
<?php class ServicesController extends Zend_Controller_Action { public function init() { /* Initialize action controller here */ } public function indexAction() { // action body } public function getartistsAction() { require_once APPLICATION_PATH . "/models/webservices/webservices.php"; $server = new Zend_Rest_Server(); $server->setClass('webservices'); } }
a nastepnie mam klient :
?php class TestController extends Zend_Controller_Action { public function init() { /* Initialize action controller here */ } public function indexAction() { // action body } public function clientwsAction() { $Client = new Zend_Rest_Client("http://localhost"); try{ $results = $Client->get("public/services/getartists"); if($results->isSuccess()){ } }catch(Zend_Service_Exception $e){ throw $e; } //Suppress the view $this->_helper->viewRenderer->setNoRender(); } }
i po wywolaniu 127.0.0.1/public/test/clientws nic nie zwraca ani xml ani bledu
czy ktos moglby mi pomoc bo w sumie dopiero probuje sie uczyc i utknalem w tym punkcie
dzieki z gory za podpowiedzi