NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
register() and scope


Joined: 31 Jul 2006
Posts: 3
Reply with quote
Hi,

We would like to encapsulate the webservice functions in a object, but still present the functions with simple names:

fast and incomplete example:
Code:

class myWS
{
     function doIt()
    {
        return 1;
    }
}
$ws= new myWS() ;
$nuSoapServer->register('doIt', ...) ;



We would like the client to see "doIt" as the function name to call, but we would like $ws->doIt() to be called.

Is this possible? Does the function called necessarily need to be global?
View user's profileFind all posts by frouin2Send private message
register() and scope
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic