Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > 1ae5cb58e1365c927d51e61ff8ac47fb > files > 94

perl-SOAP-Lite-0.710.10-1.fc13.noarch.rpm

#!perl -w
#!d:\perl\bin\perl.exe 

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

use SOAP::Transport::MQ;

my $server = SOAP::Transport::MQ::Server
  ->new('mq://server:port?Channel=CHAN1;QueueManager=QM_SOAP;RequestQueue=SOAPREQ1;ReplyQueue=SOAPRESP1')
  ->dispatch_to('add')
;

print "Contact to SOAP server\n";
  
do { $server->handle } while sleep 1;

sub add { $_[1] + $_[2] };