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

Re: [soaplite] daemon server dispatch_to problem

Expand Messages
  • Juan Jose Natera Abreu
    Hi, ... I feel you, most of the time I can dissect a module just fine, but SOAP::Lite s style doesn t help. ... AFAIK, you can dispatch to a path, a module, or
    Message 1 of 2 , Feb 16, 2005
    • 0 Attachment
      Hi,

      > I've been hacking around in the code and so far it appears that the
      > dispatch_to method default of sub {return} is never being replaced with
      > something more... useful ;) However, I'm somewhat baffled by the code

      I feel you, most of the time I can dissect a module just fine, but
      SOAP::Lite's style doesn't help.

      > and haven't figured out where a more useful version of dispatch_to would
      > come from.
      >
      > $self->{'daemon'} = SOAP::Transport::HTTP::Daemon
      > ->new(LocalAddr => 'localhost', LocalPort => 9191)
      > ->dispatch_to('ws::handlers::authenticate');
      > print "SOAP server (pid=$$) started at ",
      > $self->{'daemon'}->url, "\n";
      > $self->{'daemon'}->handle();
      >
      > The ws::handlers package is in the same file; the authenticate method is
      > never called. Instead I get the

      AFAIK, you can dispatch to a path, a module, or a mix of both, but not
      to a method, try dispatch_to('ws::handlers'),

      --
      Juan Jose Natera Abreu <juanjose@...>
    Your message has been successfully submitted and would be delivered to recipients shortly.