dynamic loading per namespace

From: Date: Mon, 19 Jan 2004 11:18:28 +0000
Subject: dynamic loading per namespace
Groups: php.soap 
Request: Send a blank email to php-soap+get-1319@lists.php.net to get a copy of this message
hi all, i am working on a little php soap application (using Pear::SOAP). These application will have several namespaces (the first part is fixed) - each namespace gets handled by a php class with the specific methods for this namespace (eg. namespace mozsoapapp#User or mozsoapapp#State). At time i am loading all the php classes - and i am registering every class to my SOAP Server. But, normally not every class is needed - so its wasting ressources with unneeded classes. So, is it possible to load the classes on demand ? - Or, simple pass the POST_DATA to the soap server, get back the namespace which is needed - load the corresponding class - pass it to the soap server - and then execute the soap server ? Is this somehow possible - or do i have to hack into PEAR:SOAP to get it working ? best regards Wolfgang

« previous php.soap (#1319) next »