Loading ...
Sorry, an error occurred while loading the content.

4293... trying to derive from SOAP::Transport::HTTP::Daemon, new() method

Expand Messages
  • jmzorko@mac.com
    Jan 6, 2005
      Hello, all ...

      OK, i'm trying to expand my SOAP::HTTP::Transport::Daemon subclass,
      with its' own new() method that will allow me to do other things.
      However, i've not had good results so far (though i'm still trying).
      I'm pretty new to Perl in general (perhaps a year or so, on and off),
      so i'm sure i'm missing something simple.

      Here is what i've got:

      package EventBus;

      use strict;
      use SOAP::Lite;
      use IO::Select;
      use SOAP::Transport::HTTP;
      use XML::Simple;
      use Data::Dumper;

      our @ISA = qw(SOAP::Transport::HTTP::Daemon);

      sub new
      print "new called\n";
      my ($invocant, $target) = @_;
      my $class = ref($invocant) || $invocant;

      my %defaults = (Reuse => 1, LocalAddr => 'localhost', LocalPort =>

      print "calling superclass ..."; # . Dumper( $class->SUPER );
      #my $self = $class->SOAP::Transport::HTTP::Daemon::new( %defaults );
      my $self = $class->SUPER::new( %defaults );
      bless $self, $class;

      return $self;

      ... and here is the client:


      use lib( "../../common/lib/perl" );
      use strict;
      use EventBus;

      my $listener = new EventBus();
      print "after new\n\n\n";

      ... what happens is this:

      PugsleyButt:~/ctv/eng/issp/rmm/packagelistener jmzorko$ perl
      new called
      calling superclass ...new called
      calling superclass ...new called
      calling superclass ...new called
      calling superclass ...new called
      calling superclass ...new called

      ... so it's somehow looping, calling the EventBus::new() method (which
      calls SOAP::HTTP::Transport::Daemon::new), ad infinitum. I am still
      looking, but so far I really don't have a clue as to why this is


      John, _so_ much more comfy in C++, but wanting to get the hang of

      Falling You - exploring the beauty of voice and sound
      New album, "Touch", available now
    • Show all 2 messages in this topic