Re: nuSoap -method '' not defined in service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>:

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);



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux