summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlrpc.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/xmlrpc.cgi')
-rw-r--r--httemplate/misc/xmlrpc.cgi17
1 files changed, 17 insertions, 0 deletions
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;
+
+%>