|
Posted by Daniel Lieberman on January 17, 2005, 10:08 pm
Please log in for more thread options
I'd like to run an XML-RPC HTTP server using SSL, without involving a
separate web server.
SOAP-Lite's XMLRPC::Transport::HTTP supports integration with
HTTP::Daemon to create a free-standing HTTP server (just requiring the
addition of forking or similar). But since
XMLRPC::Transport::HTTP::Daemon calls HTTP::Daemon->new directly, there
doesn't appear to be a way to get it to use HTTP::Daemon::SSL.
One relatively easy solution is to modify the existing SOAP-Lite
modules to do what I need. This could be done relatively cleanly: I
could create modified versions of XMLRPC::Transport::HTTP and
SOAP::Transport::HTTP (from which most of XMLRPC::Transport::HTTP is
inherited) and create the packages XMLRPC::Transport::HTTP::Daemon::SSL
and SOAP::Transport::HTTP::Daemon::SSL.
XMLRPC::Transport::HTTP::Daemon::SSL would inherit from
SOAP::Transport::HTTP::Daemon::SSL (instead of from
SOAP::Transport::HTTP::Daemon) and SOAP::Transport::HTTP::Daemon::SSL
would call HTTP::Daemon::SSL->new instead of HTTP::Daemon (and the
associated require would change as well).
If this is the best way that's fine, but if there's a good way to do
this using existing packages I'd rather do that. Is there?
Thanks in advance,
-Daniel
Daniel Lieberman
http://www.bitpusher.com/
|