.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Apache::XMLRPC 3pm" .TH Apache::XMLRPC 3pm "2021-01-03" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Apache::XMLRPC \- serve XML\-RPC requests from Apache .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 8 \& ## \& ## Directives for your Apache config file. \& ## \& \& SetHandler perl\-script \& PerlHandler Apache::XMLRPC \& PerlSetVar XMLRPC_Config /usr/local/apache/xml\-rpc/services \& \& \& \& ## \& ## In the \*(Aqservices\*(Aq file referenced above by \*(AqXMLRPC_Config\*(Aq \& ## \& sub foo { \& ... \& } \& \& sub bar { \& ... \& } \& \& $map = { \& foo => \e&foo, \& bar => \e&bar, \& }; \& \& 1; .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fIApache::XMLRPC\fR serves Userland XML-RPC requests from Apache/mod_perl using the Frontier::RPC2 module. .PP Configuring Apache::XMLRPC to work under mod_perl is a two step process. First, you must declare a \f(CW\*(C`\*(C'\fR directive in your Apache configuration file which tells Apache to use the content handler found in the Apache::XMLRPC module and defines a variable which tells the module where to find your services. Then, you must define the services. .SS "Apache Configuration" .IX Subsection "Apache Configuration" Apache configuration is as simple as the \f(CW\*(C`\*(C'\fR directive shown in the synopsis above. Any directive allowed by Apache inside a \&\f(CW\*(C`\*(C'\fR block is allowed here, but the three lines shown above are required. Pay close attention to the 'PerlSetVar XMLRPC_Config \&...' line as this is where you tell Apache where to find your services. This file may reside anywhere accessible by Apache. .SS "Defining Services" .IX Subsection "Defining Services" To actually define the XML-RPC routines that will be served, they \fImust\fR reside in the file referenced by the 'PerlSetVar XMLRPC_Config ...' directive in the Apache configuration file. In this file you may place as many Perl subroutines as you like, but only those which are explicitly published will be available to your XML-RPC clients. .PP To \fIpublish\fR a subroutine, it must be included in the hash reference named \f(CW$map\fR (the hash reference \fImust\fR have this name as this is the variable that the \fIApache::XMLRPC\fR passes to \fIFrontier::RPC2::serve\fR to actually service each request) The hash reference \fImust\fR be defined in this \f(CW\*(C`services\*(C'\fR file. .PP The keys of the hash are the service names visible to the XML-RPC clients while the hash values are references to the subroutines you wish to make public. There is no requirement that the published service names match those of their associated subroutines, but it does make administration a little easier. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBperl\fR\|(1), \fBFrontier::RPC2\fR\|(3) .PP .SH "AUTHOR" .IX Header "AUTHOR" Ed Hill is the original author. .PP Tim Peoples added a few tweaks and all the documentation.