SOAP Server method registration
| From: | Mike Carter | Date: | Tue, 21 Jan 2003 13:09:47 +0000 |
| Subject: | SOAP Server method registration | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3387@lists.php.net to get a copy of this message | ||
Hi,
Can anybody tell me how you register methods as being available via the SOAP
server interface?
Is it simply a case of using:
$soapclass = new SOAP_RedBox();
$server->addObjectMap($soapclass,'urn:SOAP_RedBox');
Because I noticed in the PEAR documentation
(http://pear.php.net/manual/en/pecl.soap.soapserver.php)
some example code using:
@dl('soap.so');
$server = new SoapServer("urn:HelloWorld");
$server->addFunction("hello_soap");
BTW - what is the 'soap.so' ? I was unaware of any SOAP extension?
Bye,
--
Mike Carter [web developer]
tel: 01925 758229 // fax: 01925 758023 // web: www.koa.uk.com
This message is confidential.
Unless you are the named addressee or their delegated representative you may
not use, disclose, or copy the contents of the e-mail. If you are not the
named addressee please notify the sender immediately and delete the material
from your computer. Any views or opinions contained in this e-mail are
solely those of the author unless expressly stated otherwise
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________