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

HI

Thanks for the information

But what if i want to use packages that i have already wrote ie) use test::world; . I was reading some where that you could set it up so that it could dispatch to a directory where the modules that you worte were.

dispatch_to( 'PATH/', # dynamic: load anything from there, any module, + any method 'MODULE', # static: any method from this module 'MODULE::method', # static: specified method from this module 'method', # static: specified method from main:: );

I found this on line telling me how i can specify what method I want. Does any one know if i have a syntax error? Thanks for the Help

Replies are listed 'Best First'.
Re: Re: Re: dispatch_to problems setting up soap server
by shotgunefx (Parson) on Aug 09, 2001 at 23:45 UTC
    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."

      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