Getting a list of available methods from XMLRPC::Server


#1

Hi all,

Does the XMLRPC::Server class from Ruby’s xmlrpc lib automatically
provide a method to list all available methods being served? Or do I
have to roll that myself?

Thanks,

Dan

This communication is the property of Qwest and may contain confidential
or
privileged information. Unauthorized use of this communication is
strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
destroy
all copies of the communication and any attachments.


#2

It does include it, but the xmlrpc documentation makes it difficult to
find. It’s hidden in the BasicServer class. The method is called
addIntrospection:

http://www.ruby-doc.org/stdlib/libdoc/xmlrpc/rdoc/classes/XMLRPC/BasicServer.html

It adds:

  • system.listMethods
  • system.methodSignature
  • system.methodHelp

which are the defacto xmlrpc standard for introspection.

-tim