VicBalta has asked for the wisdom of the Perl Monks concerning the following question:
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 !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: dispatch_to problems setting up soap server
by jeffa (Bishop) on Aug 09, 2001 at 22:50 UTC | |
|
Re: dispatch_to problems setting up soap server
by shotgunefx (Parson) on Aug 09, 2001 at 22:59 UTC | |
by VicBalta (Scribe) on Aug 09, 2001 at 23:12 UTC | |
by shotgunefx (Parson) on Aug 09, 2001 at 23:45 UTC | |
by VicBalta (Scribe) on Aug 10, 2001 at 00:32 UTC |