proposal for extending XML/RPC.php (part II)
| From: | Sebastien Person | Date: | Wed, 07 Apr 2004 15:29:50 +0000 |
| Subject: | proposal for extending XML/RPC.php (part II) | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-27127@lists.php.net to get a copy of this message | ||
[...]
I use the XML-RPC functions of the pear lib. I saw that there were possibility
to ask xml webservices for documentation and signature string.
If the XML_RPC_Client class could provide an easy way to find all available
method from a web service and also provide it's documentation and signature it
would be an interesting function for developpers involving with xml rpc.
[...]
hi, don't know if you remeber my precedent mail so I just quote the beginning.
last time, I proposed an extension to XML/RPC.php to make developper
life easier but my modifications wasn't following pear policy.
So I tried to follow pear policy and pear-dev list advices. The changes are
the following :
- function are now documented
- I tried to respect alignement in variable assignement
- my function name follow the studly caps style
- I have made a discover method wich return an assoc array
of discovered infos
- another method called discoverHTML for people who want to
output to browser (output is conform to the HTML reocmmendation)
- methods for each of the three rpc methods (listMethods, methodsHelp,
methodSignature) wich return an array of the result.
You could find attached my patch. Let me know if there is any problem with
my patch ...
Thanks