snafui has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; use SOAP::Lite; my $soap = SOAP::Lite->uri('http://localhost/Test')->proxy('http://loc +alhost:8089/'); print 'Returned: ', $soap->return1()->result(), "\n";
#!/usr/bin/perl use strict; use warnings; use SOAP::Transport::HTTP; SOAP::Transport::HTTP::Daemon -> new (LocalPort => 8089, Reuse => 1) -> dispatch_to('/opt/scripts/SOAP/lib') -> handle;
package Test; use DBI; sub return1 { return 1; } 1;
#!/usr/bin/perl use strict; use warnings; use lib '/opt/scripts/SOAP/lib'; use Test; print Test::return1(), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Soap::Transport::HTTP vs DBI
by Corion (Patriarch) on Jul 02, 2010 at 15:53 UTC | |
by snafui (Initiate) on Jul 02, 2010 at 16:36 UTC | |
by Pickwick (Beadle) on Jul 06, 2010 at 06:01 UTC | |
|
Re: Soap::Transport::HTTP vs DBI
by jethro (Monsignor) on Jul 02, 2010 at 16:18 UTC | |
by snafui (Initiate) on Jul 02, 2010 at 16:38 UTC |