Re: [SOAP] some soap focus
| From: | Shane Caraveo | Date: | Mon, 14 Apr 2003 17:29:54 +0000 |
| Subject: | Re: [SOAP] some soap focus | ||
| References: | 1 2 3 4 5 6 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-555@lists.php.net to get a copy of this message | ||
Jan Schneider wrote:
First of all, a small fix to package.xml:Go ahead and commit fixes like this.
Quoting Shane Caraveo <shane@caraveo.com>: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: 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? ShaneJan Schneider wrote: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.Where can I specify what method to use instead of either a globalfunctionor 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.