in reply to Re^9: Soap::lite - https ?
in thread Soap::lite - https ?

Ok. It finally took a complete uninstall/reinstall of Active Perl to fix whatever was up with my system.
Here's the 'finished' product - for posterity.
use HTTP::Daemon::SSL; use HTTP::Status; use SOAP::Lite; use SOAP::Transport::HTTP; # my soap package use auth; # Make sure you have a certs/ directory with "server-cert.pem" # and "server-key.pem" in it before running this! my $daemon = HTTP::Daemon::SSL->new(LocalPort => 8001) || die; my $soap = SOAP::Transport::HTTP::Server -> new ( ) -> dispatch_to(qw(auth)); print "Please contact me at: <URL:", $daemon->url, ">\n"; while (my $conn = $daemon->accept()) { while (my $request = $conn->get_request()) { $soap->request($request); $soap->handle(); my $response = $soap->response(); $conn->send_response($response); } $conn->close; undef($conn); }
This will 'service' my soap requests at https://<server>:8001.

Thank you very much for your extensive help on this matter. I wouldn't have gotten anywhere without it.

Replies are listed 'Best First'.
Re^11: Soap::lite - https ?
by perlchild (Acolyte) on Aug 12, 2008 at 23:38 UTC
    I have tried to use this code on my linux server and it keeps dieing at the line:
    my $daemon = HTTP::Daemon::SSL->new(LocalPort => 8001) || die;
    I have HTTP::Daemon::SSL installed and I have the pem files in the certs directory.
    Can anyone help me out with getting this working?
    Thanks

    Okay, I got the SSL Soap server working. I had to point the object at the server and cert pem files. When I run a test request though I get the 500 connection refused error.

    Any help is appreciated.