Hello guys,

I'm following up on an old post on this same issue, where the good guys in this mailing list suggested running shutdown() to stop the daemon. I'm trying to make it work on my test script...

The following is my code to start the daemon:

   ...
   my $daemon = SOAP::Transport::HTTP::Daemon
       -> new (LocalPort => 7070)
       -> dispatch_to('scheduler');
   print "SOAP server at ".$daemon->url."\n";
   $daemon->handle;
   # nothing gets executed beyond this line
   ...

package scheduler;
use strict;
use warnings;

sub quit
{
   print "shutdown NOW!!!\n";
#    exit;
#    throw BadCallException (-text=>'method shutdown');
}

Can anyone tell me how to write the function in the above 'scheduler' package, that
will shut down the daemon? Basically, a SOAP client will shutdown the server.


Thanks!
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to