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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.