Go Back   Forum Care Forums > Development Reference Area > Php Development

Reply
 
LinkBack Thread Tools Display Modes
nuSoap -method '' not defined in service
Old
  (#1)
blackwater dev
Guest
 
Posts: n/a
Default nuSoap -method '' not defined in service - 05-14-2007, 03:35 AM

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

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: [PHP] nuSoap -method '' not defined in service
Old
  (#2)
Martin Alterisio
Guest
 
Posts: n/a
Default Re: [PHP] nuSoap -method '' not defined in service - 05-14-2007, 03:35 AM

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 <EMAIL REMOVED>:
>
> 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);
>
>


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top