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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |