in reply to Re: Re: dispatch_to problems setting up soap server
in thread dispatch_to problems setting up soap server

You're right. I think the problem may be with the client.

From soaplite cookbook:
Dynamic

As you can see in both Static internal and Static external modes the name of the module is hardcoded in the server's code. But what if you want to be able to add new modules dynamically without changing the code? Dynamic dispatch allows you to do that. Specify the directory and any module in this directory becomes available for dispatching: 3.c. server (Dynamic) (hibyedyn.cgi)
#!perl -w use SOAP::Transport::HTTP; SOAP::Transport::HTTP::CGI -> dispatch_to('/home/soaplite/modules') -> handle;
Then put Demo.pm in /home/soaplite/modules directory:

That's it. The any module you put in /home/soaplite/modules is now available, but don't forget that the URI on the client side should match the module/class name you want to dispatch your call to.

Hope this helps.

-Lee

"To be civilized is to deny one's nature."

Replies are listed 'Best First'.
Re: Re: Re: Re: dispatch_to problems setting up soap server
by VicBalta (Scribe) on Aug 10, 2001 at 00:32 UTC

    HI

    Thanks for the help, sorry that im still confused but im new at perl. So i have my modules here "c:\perl\site\lib" So how should i write it? ie) -> dispatch_to('c:/perl/site/lib') I am runing Windows 2000 So im not sure if this plays into how i specify my directory. Also so im am tring to set it up with http daemon not cgi. Not sure if that could be the problem. If any one can clue me in here it would be a big help

    Thanks, Victor