Re: [PEPr] Call for votes on Web Services::Services_Webservice
| From: | Philippe Jausions | Date: | Mon, 11 Jul 2005 05:34:16 +0000 |
| Subject: | Re: [PEPr] Call for votes on Web Services::Services_Webservice | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38527@lists.php.net to get a copy of this message | ||
Ok, I think there's a misunderstanding here. I'm not trying to extend a class that has been exposed as a webservice, or include a webservice as a member of another class.
I'm trying to tell you that because your implementation requires to extend the Services_Webservice class then it makes it impossible to really use class inherintance for the class you want to expose.
An example may help:
abstract class vehicle
{
function steer()...
}
class bicycle extends vehicle
{
function pedal()...} class motorized extends vehicle {
function startEngine()...} With your implementation it is not *easily* possible to expose bicycle and motorized classes as web services. You should be able to take *any* class and simply expose it as a web service (given of course that the class could actually be used as a web service) -Philippe