
February 21st, 2004, 10:38 AM
|
|
Contributing User
|
|
Join Date: Jan 2003
Location: Bournemouth
Posts: 37
Time spent in forums: < 1 sec
Reputation Power: 6
|
|
|
PHP & Nusoap
Hi All,
I am just getting started with nusoap and the whole concept and spec of wsdl, soap and web services and am currently trying to create my own dummy web service. I've decided to make a simple web service that returns names of my colleagues and am completing this with the use of a class that contains all the required functions, a service file that creates the web service and a client file that calls the service.
The trouble i'm having is when I register the function in my class to nusoap. How should this be completed, i've done it like so (which obviously doesn't work!) $soapserver->register('$names->getNames');
$names = class object
getNames = function in class
...or should I be creating my service in my class...
PHP Code:
class names extends mysql {
$ed2kSOAP = new soap_server;
$ed2kSOAP->register('getLinkonName');
/* ... all required functions ... */
$ed2kSOAP->service($HTTP_RAW_POST_DATA);
}
any advice will be greatly appreciated...
cheers,
Harvey
|