Extending the SoapServer class
| From: | William Bailey | Date: | Thu, 17 Mar 2005 10:17:41 +0000 |
| Subject: | Extending the SoapServer class | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1767@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Morning all,
I'm trying to find out how the SoapServer class handles a soap request
and how it calls the required method/function and weather or not this
can be intercepted/overridden.
I want to extend the SoapServer class so that I can intercept the
request at the point just before the requested method is actioned. I'm
trying to look for a way to extend the SoapServer class so that I know
what method is being requested so that I can then check the application
configuration settings and see if that function has been specifically
disabled and if so throw a SoapFault. I know I could implement this
check in the requested methods directly but I really want a global way
of checking and disabling request methods.
I could probably override the $soapServer->handle() method but I would
then have to look at the raw soap request to find out what method was
being called and then call the original handle() function after which
would then look at the raw soap request again and handle as required. I
want to avoid having to process the raw soap request twice if I can.
Also if anybody has a complete class overview diagram for the
SoapServer class then that would also be useful.
- --
Regards,
William Bailey.
Pro-Net Internet Services Ltd.
http://www.pro-net.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
iD8DBQFCOVlFzSfrYDJMXmERAihFAJ9Zdjsge4HGyRAwrdo+HCqv62vJMACgg8Uz
c3GZW/HUS95piqOadnCkfJM=
=xRDm
-----END PGP SIGNATURE-----