1#!perl -w 2#!d:\perl\bin\perl.exe 3 4# -- SOAP::Lite -- soaplite.com -- Copyright (C) 2001 Paul Kulchenko -- 5 6use SOAP::Transport::HTTP; 7 8$SIG{PIPE} = $SIG{INT} = 'IGNORE'; # don't want to die on 'Broken pipe' or Ctrl-C 9 10# change LocalPort to 81 if you want to test it with soapmark.pl 11 12my $daemon = SOAP::Transport::HTTP::Daemon 13 # if you do not specify LocalAddr then you can access it with 14 # any hostname/IP alias, including localhost or 127.0.0.1. 15 # if do you specify LocalAddr in ->new() then you can only access it 16 # from that interface. -- Michael Percy <mpercy@portera.com> 17 -> new (LocalAddr => 'localhost', LocalPort => 80) 18 # you may also add other options, like 'Reuse' => 1 and/or 'Listen' => 128 19 20 # specify list of objects-by-reference here 21 -> objects_by_reference(qw(My::PersistentIterator My::SessionIterator My::Chat)) 22 23 # specify path to My/Examples.pm here 24 -> dispatch_to('/Your/Path/To/Deployed/Modules', 'Module::Name', 'Module::method') 25 26 # enable compression support 27 -> options({compress_threshold => 10000}) 28; 29print "Contact to SOAP server at ", $daemon->url, "\n"; 30$daemon->handle; 31