Funny, i am having the same problem as well . . . i have been following the tutorials at perl.com with moderate success, but the Daemon part is confusing me.

One thing i tried was to include the path where the modules are stored before using Demo:

use lib qw(/perl/site/lib); use Demo;
but this seems . . . wrong. I'll be working on this for the rest of the day, if i find some answers i'll update this node. In the meantime, maybe a SOAP::Lite guru will wander into this thread.

UPDATE:
shotgunefx has the right answer. This tutorial clearly states to use the package, even though you don't need to. If you try my suggestion, the daemon server will run, but clients will not be able to successfully communicate with it (why i don't know yet). Here is my server:

use strict; use SOAP::Transport::HTTP; my $daemon = SOAP::Transport::HTTP::Daemon -> new (LocalPort => 8080) -> dispatch_to('/usr/local/apache/soap') ; print "Contact to SOAP server at ", $daemon->url, "\n"; $daemon->handle;
(Demo.pm is located in /usr/local/apache/soap) and here is the client:
use SOAP::Lite; my $soap = SOAP::Lite ->uri('http://neo.acymtech.com/Demo') ->proxy('http://neo.acymtech.com:8080');
Cool! SOAP rules!!

perl -le '$x="jeff";$x++ for(0..4482550);print $x'


In reply to (jeffa) Re: dispatch_to problems setting up soap server by jeffa
in thread dispatch_to problems setting up soap server by VicBalta

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.