Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > 3f070fffbf27156852f88d0547d8fff0 > files > 157

perl-SOAP-Lite-0.712.0-2.noarch.rpm

#!/usr/bin/perl -w


# -- SOAP::Lite -- soaplite.com -- Copyright (C) 2001 Paul Kulchenko --

use SOAP::Transport::TCP;

$SIG{PIPE} = $SIG{INT} = 'IGNORE'; # don't want to die on 'Broken pipe' or Ctrl-C

my $daemon = SOAP::Transport::TCP::Server
  -> new (LocalAddr => 'localhost', LocalPort => 82, Listen => 5, Reuse => 1)
  -> objects_by_reference(qw(My::PersistentIterator My::SessionIterator My::Chat))
  # specify path to My/Examples.pm here
  -> dispatch_to('/Your/Path/To/Deployed/Modules', 'Module::Name', 'Module::method') 
;
print "Contact to SOAP server at ", join(':', $daemon->sockhost, $daemon->sockport), "\n";
$daemon->handle;