4
=head1 Simple SOAP TCP Server
6
Simple SOAP TCP Server with test class (just to check things are working)
8
Before you run this test server you will need some perl classes, namely:
10
Hook::LexWrap (if you want to see some debugging)
12
Flee off to the CPAN if you need them :)
14
To run type 'perl <filename>' and if you dont get any errors, it's time
15
to go write some code to connect.
18
use SOAP::Transport::TCP qw(trace);
23
## if you want to see incoming/outgoing raw xml
24
## uncomment the following.
27
#wrap *IO::SessionData::read, post => \&show_read;
28
#wrap *IO::SessionData::write, post => \&show_write;
34
my $daemon = SOAP::Transport::TCP::Server->new(
35
LocalAddr => '127.0.0.1',
42
$daemon->dispatch_to('SOAP_Example_Server');
46
## callback functions for Hook::LexWrap;
51
print $/,'## read ##',$/;
57
print $/,'## write ##',$/;
60
################################################################################
64
################################################################################
66
# Simple test class, method test returns double what you send to it, thats all!
67
################################################################################
68
package SOAP_Example_Server;