Re: nuSoap -method '' not defined in service

From: Date: Sat, 20 Jan 2007 16:22:07 +0000
Subject: Re: nuSoap -method '' not defined in service
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-247453@lists.php.net to get a copy of this message
Try the following: $server->register('getColumns', array(), array()); The second argument is an array containing an entry for each argument of the webservice call, and the third argument is an array for the return value. Since you don't have either arguments nor return value, empty arrays should be provided. Also I think you should call $server->configureWSDL(<domain>), before registering anything. 2007/1/18, blackwater dev <blackwaterdev@gmail.com>:
I have the following code but when I hit the page, I get the xml error of method '' not defined in service. I don't have a wsdl or anything defined. Is there more I need to do to get the SOAP service set up? Thanks! include("nusoap/nusoap.php"); $server=new soap_server(); $server->register('getColumns'); function getColumns(){
        $search= new carSearch();
        return $search->getSearchColumns();
} $server->service($HTTP_RAW_POST_DATA);


« previous php.general (#247453) next »