m-rau has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I am working with SOAP now. Great! But I am pretty confused about how to get information about the client which connected?
use lib "Message"; use Test; my $daemon = SOAP::Transport::HTTP::Daemon -> new ( LocalAddr => 'localhost', LocalPort => 8080 ); $daemon -> dispatch_to( 'Message/', 'Test' );
How to find out about the client's ip address in my Message/Test.pm? I know how to do this with sockets. But what is the SOAP object/ method to use? Please help!
Test.pm provides i.e. a constructor enqueue:
sub enqueue { my $class = shift; my $self = { }; bless ($self, $class); # # collect identify information about the client, # i.e. IP ==> ??? # # then start working # return $self; }
Thanks in advace.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP client IP
by jhourcle (Prior) on Mar 10, 2005 at 03:44 UTC | |
|
Re: SOAP client IP
by m-rau (Scribe) on Mar 10, 2005 at 13:44 UTC |