Hi

Im trying to set up a soap server uing http daemon instead of the cgi kind. And im having some problems. here is the code for my server:

use Demo; use SOAP::Transport::HTTP; my $daemon = SOAP::Transport::HTTP::Daemon -> new (LocalPort => 9091) -> dispatch_to('/perl/site/lib') ; print "Contact to SOAP server at ", $daemon->url, "\n"; $daemon->handle;

and the code for the client

use SOAP::Lite; print SOAP::Lite -> uri('http://localhost/') -> proxy('http://localhost::9091') -> hi() -> result;

Ok, I know it connect to the server ok, because when the server is not running it gives me an error that it can't find it and times out. But it is not finding my Demo package that i wrote. It is located in "c:\perl\site\lib" . i think i am messing up the dispatch_to part. I have tried different combinations of directories but nothings seems to work.

one thing that might make a difference is that my program in on the e: drive. But when i changed it over to the c: it still didn't work. Any Help will be greatly apprecaite I new at Perl and trying to learn as much as possible. Thanks !


In reply to 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.