| |
1 |
1 |
ns_xmlrpc -- adds XML-RPC server and client features to |
| |
2 |
2 |
AOLserver/OpenACS |
| |
3 |
3 |
|
| |
4 |
|
Requirements: ns_xml 1.3 |
| |
|
4 |
Requirements: ns_xml 1.4 |
| |
5 |
5 |
AOLserver 3. using nsd8x |
| |
6 |
6 |
OpenACS 3.2.5 |
| |
7 |
7 |
|
| |
8 |
8 |
Setup: Copy the Tcl files into your private Tcl library, ie. /web/yoursite/tcl |
| |
9 |
9 |
and start/restart AOLserver |
| |
10 |
10 |
|
| |
11 |
11 |
To test the server go to http://validator.xmlrpc.com. Enter the |
| |
12 |
12 |
domain of your server and click the validate button. Hopefully |
| |
13 |
13 |
everything works. If it doesn't, check your server error log. |
| |
14 |
14 |
|
| |
15 |
15 |
Call xmlrpc_register_proc with the procedure name for every Tcl |
| |
16 |
16 |
procedure you want to be made available via XML-RPC. |
| |
17 |
17 |
|
| |
18 |
18 |
How it works: A registered proc is setup in validator.tcl that sends all |
| |
19 |
19 |
HTTP requests to /RPC2 to the XML-RPC handler. It checks to |
| |
20 |
20 |
make sure the methodName is registered as available via |
| |
21 |
21 |
XML-RPC. If the methodName is valid the XML-RPC request is |
| |
22 |
22 |
parsed and the parameters are passed to the procedure. |
| |
23 |
23 |
|
| |
24 |
24 |
The procedure does whatever processing is necessary and returns |