Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2010-05-13 15:49:37

alessio
Member
Registered: 2009-08-07
Posts: 27

Zend_XmlRpc_Server

I have a problem whit zend xmlrpc server:

i create a server :

<?php
require_once 'Zend/Loader.php';


function __autoload($class)
{
    Zend_Loader::loadClass($class);
}

        require_once 'spot.php';




        $server = new Zend_XmlRpc_Server();
        $server->setClass('spot', 'spot'); 
        echo $server->handle();

and create class spot.php

class spot
{

    public function getSpotsFromSport(){
        
        return 'try';
    }    

    
    
}


if I call the method works

but i try insert a parameters of call in this mode


class spot
{

    public function getSpotsFromSport($variable){
        
        return $variable;
    }    

    
    
}

and try Method Call with Parameters not worked
why???

thanks

Offline

Board footer

Powered by FluxBB