[Pdx-pm] SOAP::Lite Server

Ovid publiustemp-pdxpm at yahoo.com
Fri Apr 22 10:31:24 PDT 2005

Hi all,

This is profoundly annoying to me, but can anyone point me to a clear,
easy-to-understand example of setting up a SOAP::Lite server AS AN
EASY-TO-TEST MODULE that can use existing classes?  It's driving me
bonkers, but so far, I seem to keep getting all sorts of subtle, hard
to google errors every time I try this.  I'm hoping for something like:

  package My::SOAP::Server;
  use SOAP::Lite;

  sub start { ... }
  sub stop  { ... }

And then be able to have a simple test suite:

  use Test::More qw/no_plan/;
  my $server;
  BEGIN { 
    $server = My::SOAP::Server->start(@server_data);
    use_ok 'My::SOAP::Client' or die;
  my $client = My::SOAP::Client->new(@server_data);
  ok my @records = $client->call('SomeClass.get_some_records', @args),
    '... we should be able to fetch some records';

That seems very straightforward, right?  I can't find a single danged
example of doing something like that.  Being able to interface to
multiple underlying classes via a single SOAP server is rather

I'm used to building clients, not servers.  Any pointers would be
welcome.  And I have the book "Web Services with Perl."  I'm not
terribly impressed.


If this message is a response to a question on a mailing list, please send
follow up questions to the list.

Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

More information about the Pdx-pm-list mailing list