• Publicity: Public Only All

xml-rpc-procs.tcl

Initially created by Dave Bauer 2001-03-30 with inspiration from Steve Ball and help from Aaron Swartz and Jerry Asher.

Modified by Vinod Kurup to

  1. Use the xml abstraction procs in packages/acs-tcl/tcl/30-xml-utils-procs.tcl (which use tDom now)
  2. Fit in OpenACS 5 framework

Location:
packages/xml-rpc/tcl/xml-rpc-procs.tcl
Created:
2003-09-30
Author:
Vinod Kurup [vinod@kurup.com]
CVS Identification:
$Id: xml-rpc-procs.tcl,v 1.20 2024/09/11 06:15:55 gustafn Exp $

Procedures in this file

Detailed information

xmlrpc::enabled_p (public)

 xmlrpc::enabled_p
Returns:
whether the server is enabled

Partial Call Graph (max 5 caller/called nodes):
%3 packages/xml-rpc/www/admin/index.tcl packages/xml-rpc/ www/admin/index.tcl xmlrpc::enabled_p xmlrpc::enabled_p packages/xml-rpc/www/admin/index.tcl->xmlrpc::enabled_p packages/xml-rpc/www/admin/toggle.tcl packages/xml-rpc/ www/admin/toggle.tcl packages/xml-rpc/www/admin/toggle.tcl->xmlrpc::enabled_p xmlrpc::invoke xmlrpc::invoke (private) xmlrpc::invoke->xmlrpc::enabled_p parameter::get_from_package_key parameter::get_from_package_key (public) xmlrpc::enabled_p->parameter::get_from_package_key

Testcases:
No testcase defined.

xmlrpc::list_methods (public)

 xmlrpc::list_methods
Returns:
alphabetical list of XML-RPC procs on this server

Partial Call Graph (max 5 caller/called nodes):
%3 packages/xml-rpc/www/admin/index.tcl packages/xml-rpc/ www/admin/index.tcl xmlrpc::list_methods xmlrpc::list_methods packages/xml-rpc/www/admin/index.tcl->xmlrpc::list_methods system.listMethods system.listMethods (public) system.listMethods->xmlrpc::list_methods

Testcases:
No testcase defined.

xmlrpc::register_proc (public)

 xmlrpc::register_proc proc_name

Register a proc to be available via XML-RPC. proc_name is the name of a proc that is defined in the usual OpenACS way (i.e. ad_proc). The proc_name is added to the xmlrpc_procs nsv array with a value of 1. When an XML-RPC call comes in, this array is searched to see if the proc_name has been registered. Currently, the presence of proc_name in the nsv is enough to indicate that the proc can be called via XML-RPC. At some point we may allow administrators to disable procs, so we could set the value associated with proc_name from 1 to 0.

Parameters:
proc_name (required)
Name of proc to be registered.
Returns:
nothing

Partial Call Graph (max 5 caller/called nodes):
%3 packages/xml-rpc/tcl/system-init.tcl packages/xml-rpc/ tcl/system-init.tcl xmlrpc::register_proc xmlrpc::register_proc packages/xml-rpc/tcl/system-init.tcl->xmlrpc::register_proc packages/xml-rpc/tcl/validator-init.tcl packages/xml-rpc/ tcl/validator-init.tcl packages/xml-rpc/tcl/validator-init.tcl->xmlrpc::register_proc

Testcases:
No testcase defined.

xmlrpc::remote_call (public)

 xmlrpc::remote_call url method [ args ]

Invoke a method on a remote server using XML-RPC

Parameters:
url (required)
url of service
method (required)
method to call
args (optional)
list of args to the method
Returns:
the response of the remote service. Error if remote service returns a fault.

Partial Call Graph (max 5 caller/called nodes):
%3 xml_doc_free xml_doc_free (public) xml_doc_render xml_doc_render (public) xml_parse xml_parse (public) xmlrpc::construct xmlrpc::construct (private) xmlrpc::httppost xmlrpc::httppost (private) xmlrpc::remote_call xmlrpc::remote_call xmlrpc::remote_call->xml_doc_free xmlrpc::remote_call->xml_doc_render xmlrpc::remote_call->xml_parse xmlrpc::remote_call->xmlrpc::construct xmlrpc::remote_call->xmlrpc::httppost

Testcases:
No testcase defined.

xmlrpc::url (public)

 xmlrpc::url
Returns:
the URL that is listening for RPC requests
Author:
Vinod Kurup

Partial Call Graph (max 5 caller/called nodes):
%3 test_xml_rpc_validate xml_rpc_validate (test xml-rpc) xmlrpc::url xmlrpc::url test_xml_rpc_validate->xmlrpc::url apm_package_url_from_key apm_package_url_from_key (public) xmlrpc::url->apm_package_url_from_key packages/xml-rpc/www/admin/index.tcl packages/xml-rpc/ www/admin/index.tcl packages/xml-rpc/www/admin/index.tcl->xmlrpc::url

Testcases:
xml_rpc_validate
[ show source ]