diff options
author | khoff <khoff> | 2005-03-02 21:00:59 +0000 |
---|---|---|
committer | khoff <khoff> | 2005-03-02 21:00:59 +0000 |
commit | d9649d434ba0955cd079d70e885b9f33f5ad85b5 (patch) | |
tree | c41f3762e0fd68946546c13548a2d38a6f4ac817 /httemplate | |
parent | 64072a17bb590c8e79d5eff409357a04a57a7d3b (diff) |
Initial version of the xmlrpc interface for freeside.
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/docs/install.html | 1 | ||||
-rw-r--r-- | httemplate/misc/xmlrpc.cgi | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/httemplate/docs/install.html b/httemplate/docs/install.html index e77714729..1632fb38d 100644 --- a/httemplate/docs/install.html +++ b/httemplate/docs/install.html @@ -61,6 +61,7 @@ Before installing, you need: <li><a href="http://search.cpan.org/search?dist=Chart">Chart</a> <li><a href="http://search.cpan.org/search?dist=Crypt-PasswdMD5">Crypt::PasswdMD5</a> <li><a href="http://search.cpan.org/search?dist=JavaScript-RPC">JavaScript::RPC (JavaScript::RPC::Server::CGI)</a> + <li><a href="http://search.cpan.org/search?dist=Frontier-RPC">Frontier::RPC</a> <!-- <li><a href="http://search.cpan.org/search?dist=Crypt-YAPassGen">Crypt::YAPassGen</a> --> <li><a href="http://search.cpan.org/search?dist=ApacheDBI">Apache::DBI</a> <i>(optional but recommended for better webinterface performance)</i> </ul> diff --git a/httemplate/misc/xmlrpc.cgi b/httemplate/misc/xmlrpc.cgi new file mode 100644 index 000000000..53ef8fb80 --- /dev/null +++ b/httemplate/misc/xmlrpc.cgi @@ -0,0 +1,17 @@ +<% + + my $request_xml = $cgi->param('POSTDATA'); + + #$r->log_error($request_xml); + + my $fsxmlrpc = new FS::XMLRPC; + my ($error, $response_xml) = $fsxmlrpc->serve($request_xml); + + #$r->log_error($error) if $error; + + http_header('Content-Type' => 'text/xml', + 'Content-Length' => length($response_xml)); + + print $response_xml; + +%> |