Re: [SOAP] some soap focus
| From: | Jan Schneider | Date: | Mon, 14 Apr 2003 19:19:30 +0000 |
| Subject: | Re: [SOAP] some soap focus | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-556@lists.php.net to get a copy of this message | ||
Quoting Shane Caraveo <shane@caraveo.com>:
> Jan Schneider wrote:
> > First of all, a small fix to package.xml:
> >
>
> Go ahead and commit fixes like this.
I have no cvs account. ;-)
> > Quoting Shane Caraveo <shane@caraveo.com>:
> >
> >
> >>Jan Schneider wrote:
> >>
> >>
> >>>Where can I specify what method to use instead of either a global
> >>
> >>function
> >>
> >>>or a method of the server class? How do you create a soap server with
> >>>method names that are reserved words in php?
> >>>
> >>>Jan.
> >>
> >>Ok, the current cvs now has function aliases, you can see an example of
> >>it in example/example_server.php. Aliases work with either class
> >>methods or functions.
> >
> >
> > That looks pretty interesting and is a great step towards dynamically
> > created SOAP servers.
> >
> > Is there any way to either pass the original (soap) method name as a
> > parameter to this aliased function/method or to get the method's name
> by a
> > method or property from the server class? This would allow us to define
> a
> > method dispatcher that can handle an arbitrary set of
> methods/functions.
> >
> > If I currently want to create a dynamic server that has its methods
> defined
> > at runtime, I need to create a proxy class with a huge eval() call.
> That
> > works but isn't very elegant.
> >
> > Jan.
>
> My head's not in the right spot to think about this right now (not
> enough coffee yet), but it sounds like you should be using overload with
> the __call method. But I could add a soap overload feature which would:
Overloading is not an option because it requires ZE2.
> a. if the object has the method, use it
> b. if not, see if the object has __soapcall and use it.
> c. otherwise fault
>
> Is this roughly what you are looking for?
That sounds like a neat solution.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft