File: mqserver.pl

package info (click to toggle)
soap-lite 0.69-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,412 kB
  • ctags: 583
  • sloc: perl: 9,194; makefile: 59; cs: 16
file content (17 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!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] };